:root {
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17213a;
  background: #f2f6fc;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 112, 186, 0.13), transparent 34rem),
    linear-gradient(145deg, #f8fbff 0%, #edf3fb 100%);
}

.page-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px 20px;
}

.checkout-card {
  width: min(100%, 520px);
  padding: 38px;
  border: 1px solid rgba(23, 33, 58, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(39, 64, 105, 0.16);
}

.eyebrow {
  color: #0070ba;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.75rem, 6vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.intro {
  margin: 0;
  color: #667085;
  line-height: 1.65;
}

.product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 24px;
  padding: 18px;
  border: 1px solid #e4eaf2;
  border-radius: 16px;
  background: #f8fafc;
}

.product-label {
  display: block;
  margin-bottom: 5px;
  color: #7b8497;
  font-size: 0.75rem;
}

.product strong {
  display: block;
}

.price {
  flex: 0 0 auto;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 800;
}

.paypal-container {
  min-height: 48px;
}

.status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 14px;
  border-radius: 12px;
  background: #f2f4f7;
  color: #475467;
  font-size: 0.9rem;
  line-height: 1.45;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  margin-top: 5px;
  border-radius: 999px;
  background: #98a2b3;
  box-shadow: 0 0 0 4px rgba(152, 162, 179, 0.15);
}

.status[data-type="ready"] .status-dot {
  background: #0070ba;
  box-shadow: 0 0 0 4px rgba(0, 112, 186, 0.15);
}

.status[data-type="success"] {
  background: #ecfdf3;
  color: #067647;
}

.status[data-type="success"] .status-dot {
  background: #12b76a;
  box-shadow: 0 0 0 4px rgba(18, 183, 106, 0.15);
}

.status[data-type="warning"] {
  background: #fffaeb;
  color: #b54708;
}

.status[data-type="warning"] .status-dot {
  background: #f79009;
}

.status[data-type="error"] {
  background: #fef3f2;
  color: #b42318;
}

.status[data-type="error"] .status-dot {
  background: #f04438;
}

.result {
  margin: 16px 0 0;
  overflow: hidden;
  border: 1px solid #d1fadf;
  border-radius: 12px;
  background: #f6fef9;
}

.result > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px solid #d1fadf;
}

.result > div:last-child {
  border-bottom: 0;
}

.result dt {
  color: #667085;
  font-size: 0.78rem;
}

.result dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #05603a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
}

.mobile-tip,
.load-error {
  margin: 18px 0 0;
  color: #98a2b3;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.load-error {
  color: #b42318;
}

@media (max-width: 560px) {
  .page-shell {
    align-items: start;
    padding: max(18px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom));
  }

  .checkout-card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .product {
    align-items: flex-start;
  }

  .result > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

