/* Temple Girl Kids — dedicated checkout (plan summary + auth + Razorpay) */

body.checkout-page {
  background: #faf8f5;
  min-height: 100vh;
}

.checkout-wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 18px 64px;
  box-sizing: border-box;
}

.checkout-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(26, 20, 16, 0.08);
  border: 1px solid rgba(139, 106, 62, 0.12);
  overflow: hidden;
}

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  gap: 16px;
}

.checkout-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--night);
}

.checkout-header__brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.checkout-header__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--saffron);
}

.checkout-header__secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.checkout-header__secure svg {
  flex-shrink: 0;
  opacity: 0.65;
}

.checkout-body {
  padding: 28px 22px 32px;
}

.checkout-back {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.checkout-back:hover {
  color: var(--saffron);
}

.checkout-plan-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
}

.checkout-plan-name {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--night);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.3;
}

.checkout-price {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--night);
  text-align: center;
  line-height: 1;
  margin: 0 0 6px;
}

.checkout-period {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.checkout-desc {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--dim);
  text-align: center;
  line-height: 1.65;
  margin: 0 auto 28px;
  max-width: 400px;
}

.checkout-total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  margin: 0 0 28px;
  border-top: 3px solid var(--night);
  border-bottom: 3px solid var(--night);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--night);
}

.checkout-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--night);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-section-title .checkout-info-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(139, 106, 62, 0.45);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-pay-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

.checkout-signedin {
  background: rgba(232, 114, 42, 0.08);
  border: 1px solid rgba(232, 114, 42, 0.22);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.checkout-signedin__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 4px;
}

.checkout-signedin__id {
  font-size: 15px;
  font-weight: 600;
  color: var(--night);
  margin: 0;
  word-break: break-word;
}

.checkout-active-sub {
  border: 1px solid rgba(232, 114, 42, 0.35);
  border-radius: var(--radius-md);
  padding: 18px 16px 20px;
  margin-bottom: 18px;
  background: rgba(255, 252, 246, 0.9);
}

.checkout-active-sub__plan {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--night);
  margin: 0 0 12px;
}

.checkout-active-sub__meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--night);
  line-height: 1.45;
}

.checkout-active-sub__meta span:first-child {
  color: var(--muted);
  font-weight: 600;
  margin-right: 6px;
}

.checkout-active-sub__note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
  margin: 12px 0 16px;
}

.checkout-active-sub__link {
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.checkout-btn-pay {
  width: 100%;
  justify-content: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
}

.checkout-payment-note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.checkout-error-banner {
  background: #fdecea;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.checkout-error-banner a {
  color: inherit;
  font-weight: 600;
}

/* Reuse subscribe auth controls inside checkout */
.checkout-auth .subscribe-auth-card {
  box-shadow: none;
  border: 1px solid rgba(139, 106, 62, 0.15);
  padding: 22px 18px 26px;
}

.checkout-auth .subscribe-auth__title {
  font-size: 18px;
}

@media (max-width: 480px) {
  .checkout-header {
    flex-wrap: wrap;
  }
  .checkout-price {
    font-size: 2.25rem;
  }
}

/* Manage subscription (Razorpay / website billing) */
.manage-page .checkout-wrap {
  max-width: 560px;
}

.manage-hint {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}

.manage-loading,
.manage-empty {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.manage-sub-card {
  border: 1px solid rgba(139, 106, 62, 0.18);
  border-radius: var(--radius-md);
  padding: 18px 18px 20px;
  margin-bottom: 16px;
  background: rgba(255, 252, 246, 0.65);
}

.manage-sub-card__title {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--night);
}

.manage-sub-card__meta {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--night);
  line-height: 1.45;
}

.manage-sub-card__meta span {
  color: var(--muted);
  font-weight: 600;
  margin-right: 8px;
}

.manage-sub-card__actions {
  margin-top: 14px;
}

.manage-cancel-btn {
  width: 100%;
  justify-content: center;
}

.manage-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}
