/* ============================================================
   TOTES OF LOVE — Onboarding & Checkout Shared Styles
   ============================================================ */

/* ---------- Onboarding Page Layout ---------- */
.onboarding-page,
.checkout-page {
  background: linear-gradient(135deg, #faf6ee 0%, #f2e9d8 50%, #ede4d3 100%);
  min-height: 100vh;
}

/* ---------- Minimal Nav ---------- */
.ob-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 var(--space-lg);
  background: rgba(250, 246, 238, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.ob-nav-logo {
  color: var(--color-deep-rose);
  text-decoration: none;
}

.ob-nav-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted-taupe);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ob-nav-secure i {
  font-size: 16px;
  color: var(--color-dusty-sage);
}

/* ---------- Main Container ---------- */
.ob-main {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-5xl);
  z-index: 1;
}

/* ---------- Progress Bar ---------- */
.ob-progress-wrap {
  margin-bottom: var(--space-3xl);
}

.ob-progress-track {
  height: 5px;
  background: rgba(194, 48, 95, 0.1);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.ob-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-soft-gold));
  border-radius: var(--radius-pill);
  transition: width 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 25%;
}

.ob-steps-labels {
  display: flex;
  justify-content: space-between;
}

.ob-step-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted-taupe);
  transition: color 0.3s ease;
}

.ob-step-label.active {
  color: var(--color-terracotta);
}

.ob-step-label.done {
  color: var(--color-dusty-sage);
}

/* ---------- Step Sections ---------- */
.ob-step {
  animation: ob-fade-in 0.4s var(--ease-out) both;
}

.ob-step-hidden {
  display: none;
}

@keyframes ob-fade-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ob-step-inner {
  background: var(--color-white-lace);
  border-radius: 24px;
  padding: var(--space-2xl) var(--space-2xl);
  box-shadow: 0 2px 6px rgba(44, 40, 37, 0.04), 0 12px 40px rgba(194, 48, 95, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.12);
}

@media (max-width: 480px) {
  .ob-step-inner {
    padding: var(--space-xl) var(--space-lg);
  }
}

/* ---------- Step Typography ---------- */
.ob-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.ob-headline {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-deep-rose);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

@media (max-width: 600px) {
  .ob-headline {
    font-size: var(--text-2xl);
  }
}

.ob-subhead {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--color-muted-taupe);
  margin-bottom: var(--space-2xl);
  line-height: 1.5;
}

/* ---------- Option Cards Grid ---------- */
.ob-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 640px) {
  .ob-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.ob-option-grid-age {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .ob-option-grid-age {
    grid-template-columns: repeat(4, 1fr);
  }
}

.ob-option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-lg) var(--space-md);
  border-radius: 16px;
  border: 2px solid var(--color-warm-linen);
  background: var(--color-warm-cream);
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ob-option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 107, 90, 0.06), rgba(201, 168, 76, 0.06));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.ob-option-card:hover {
  border-color: var(--color-terracotta);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 107, 90, 0.15);
}

.ob-option-card:hover::before {
  opacity: 1;
}

.ob-option-card.selected,
.ob-option-card[aria-pressed="true"] {
  border-color: var(--color-terracotta);
  background: rgba(201, 107, 90, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 107, 90, 0.18), 0 8px 24px rgba(201, 107, 90, 0.12);
}

.ob-option-card.selected::before {
  opacity: 1;
}

.ob-option-card .ob-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-terracotta);
  color: white;
  font-size: 13px;
  align-items: center;
  justify-content: center;
}

.ob-option-card.selected .ob-check {
  display: flex;
}

.ob-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(194, 48, 95, 0.08);
  color: var(--color-deep-rose);
  font-size: 20px;
  margin-bottom: 4px;
  transition: all 0.22s var(--ease-out);
}

.ob-option-card:hover .ob-option-icon {
  background: rgba(201, 107, 90, 0.12);
  color: var(--color-terracotta);
}

.ob-option-card.selected .ob-option-icon {
  background: var(--color-terracotta);
  color: white;
}

.ob-option-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal-ink);
  line-height: 1.3;
}

.ob-option-sub {
  font-size: 11px;
  color: var(--color-muted-taupe);
  line-height: 1.2;
}

/* ---------- Plan Duration Card (Redesigned) ---------- */
.ob-plan-card {
  position: relative;
  background: var(--color-white-lace);
  border: 2px solid var(--color-warm-linen);
  border-radius: 24px;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  margin-bottom: var(--space-2xl);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  overflow: visible;
  min-height: 315px;
  box-sizing: border-box;
}

.ob-plan-card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  box-shadow: 0 8px 32px rgba(194, 48, 95, 0.08);
}

.ob-plan-card.ob-slider-pulse {
  animation: plan-card-pulse 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes plan-card-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.012); }
  100% { transform: scale(1); }
}

/* --- Badge / Tag --- */
.ob-plan-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-warm-linen);
  color: var(--color-muted-taupe);
  margin-bottom: var(--space-lg);
  transition: all 0.3s ease;
}

.ob-plan-card-badge i {
  font-size: 14px;
}

/* Badge color variants */
.ob-plan-card-badge--popular {
  background: linear-gradient(135deg, #C96B5A 0%, #d98878 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(201, 107, 90, 0.3);
}

.ob-plan-card-badge--value {
  background: linear-gradient(135deg, #7BA07A 0%, #9BBF9A 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 175, 138, 0.3);
}

.ob-plan-card-badge--best {
  background: linear-gradient(135deg, #B8952F 0%, #D4AF37 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(201, 168, 76, 0.35);
}

/* --- Duration label --- */
.ob-plan-card-duration {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-deep-rose);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.01em;
}

/* --- Price row --- */
.ob-plan-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.ob-plan-card-price {
  font-family: 'Outfit', var(--font-body);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--color-charcoal-ink);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ob-plan-card-per {
  font-family: 'Outfit', var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--color-muted-taupe);
  letter-spacing: -0.01em;
}

/* --- Divider --- */
.ob-plan-card-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-warm-linen), transparent);
  margin: 0 auto var(--space-md);
  border-radius: 2px;
}

/* --- Billing text --- */
.ob-plan-card-billing {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-muted-taupe);
  display: block;
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}



/* --- Redesigned Plan Features List --- */
.ob-plan-features {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-warm-linen);
  text-align: left;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ob-plan-features li {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-charcoal-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.ob-plan-features li i {
  font-size: 16px;
  color: var(--color-dusty-sage);
}

/* --- Premium Segmented Pill Control --- */
.ob-segmented-control-wrap {
  margin-bottom: var(--space-2xl);
  display: flex;
  justify-content: center;
  padding: 0 4px;
}

.ob-segmented-control {
  position: relative;
  display: flex;
  background: var(--color-warm-linen);
  padding: 4px;
  border-radius: 30px;
  width: 100%;
  max-width: 480px;
  box-shadow: inset 0 2px 4px rgba(44, 40, 37, 0.05);
  user-select: none;
}

.ob-segmented-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  background: var(--color-white-lace);
  border-radius: 26px;
  box-shadow: var(--shadow-sm), 0 4px 10px rgba(44, 40, 37, 0.06);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), width 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

.ob-segment-btn {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-muted-taupe);
  background: transparent;
  border: none;
  border-radius: 26px;
  cursor: pointer;
  z-index: 2;
  transition: color 0.25s ease;
  outline: none;
}

.ob-segment-btn:hover {
  color: var(--color-charcoal-ink);
}

.ob-segment-btn.active {
  color: var(--color-terracotta);
}

.ob-segment-btn:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: -2px;
}

/* ---------- Actions Row ---------- */
.ob-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-lg);
}

.ob-actions-row {
  justify-content: space-between;
}

.ob-next-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.ob-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-muted-taupe);
  padding: 14px 20px;
  border-radius: var(--radius-btn);
  transition: color 0.2s ease;
}

.ob-back-btn:hover {
  color: var(--color-deep-rose);
}

/* ---------- Form Fields ---------- */
.ob-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.ob-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .ob-field-row {
    grid-template-columns: 1fr;
  }
}

.ob-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ob-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal-ink);
}

.ob-label-optional {
  font-weight: 400;
  color: var(--color-muted-taupe);
  font-size: 12px;
}

.ob-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal-ink);
  background: var(--color-warm-cream);
  border: 2px solid var(--color-warm-linen);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.ob-input::placeholder {
  color: var(--color-muted-taupe);
  opacity: 0.7;
}

.ob-input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(201, 107, 90, 0.12);
}

.ob-input.error {
  border-color: #d0392b;
  box-shadow: 0 0 0 3px rgba(208, 57, 43, 0.1);
}

.ob-textarea {
  resize: vertical;
  min-height: 100px;
}

.ob-char-count {
  font-size: 11px;
  color: var(--color-muted-taupe);
  text-align: right;
  margin-top: -2px;
}

.ob-field-hint {
  font-size: 12px;
  color: var(--color-muted-taupe);
}

.ob-field-error {
  font-size: 12px;
  color: #c0392b;
  font-weight: 500;
  min-height: 16px;
}

/* ---------- Decorative Blobs ---------- */
.ob-blob {
  position: fixed;
  border-radius: 50%;
  opacity: 0.35;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ob-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 107, 90, 0.25), transparent 70%);
  top: -100px;
  right: -100px;
}

.ob-blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.2), transparent 70%);
  bottom: -150px;
  left: -150px;
}


/* ============================================================
   CHECKOUT PAGE STYLES
   ============================================================ */

.checkout-page .ob-nav {
  border-bottom-color: rgba(201, 168, 76, 0.15);
}

.checkout-main {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg) var(--space-5xl);
  z-index: 1;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-2xl);
  align-items: start;
}

@media (max-width: 860px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Checkout header ---------- */
.checkout-header {
  margin-bottom: var(--space-2xl);
}

.checkout-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
}

.checkout-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-deep-rose);
  line-height: 1.15;
  margin-bottom: 6px;
}

@media (max-width: 600px) {
  .checkout-title {
    font-size: var(--text-2xl);
  }
}

.checkout-subtitle {
  font-family: var(--font-accent);
  font-size: var(--text-lg);
  color: var(--color-muted-taupe);
}

/* ---------- Panel ---------- */
.co-panel {
  background: var(--color-white-lace);
  border-radius: 20px;
  padding: var(--space-xl) var(--space-xl);
  box-shadow: 0 2px 6px rgba(44, 40, 37, 0.04), 0 12px 40px rgba(194, 48, 95, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.12);
  margin-bottom: var(--space-lg);
}

.co-panel-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-deep-rose);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-warm-linen);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.co-panel-edit {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-terracotta);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.co-panel-edit:hover {
  opacity: 0.75;
}

/* ---------- Recipient Summary ---------- */
.co-recipient-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 500px) {
  .co-recipient-grid {
    grid-template-columns: 1fr;
  }
}

.co-recipient-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.co-recipient-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-taupe);
}

.co-recipient-value {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-charcoal-ink);
}

.co-recipient-value.empty {
  color: var(--color-muted-taupe);
  font-weight: 400;
  font-style: italic;
}

/* Note preview */
.co-note-preview {
  margin-top: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.07), rgba(201, 107, 90, 0.05));
  border-radius: 12px;
  border-left: 3px solid var(--color-soft-gold);
}

.co-note-preview-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-soft-gold);
  margin-bottom: 6px;
}

.co-note-preview-text {
  font-family: var(--font-handwriting);
  font-size: 1.1rem;
  color: var(--color-charcoal-ink);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Billing / Contact Fields ---------- */
.co-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .co-field-row {
    grid-template-columns: 1fr;
  }
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.co-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal-ink);
}

.co-input {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal-ink);
  background: var(--color-warm-cream);
  border: 2px solid var(--color-warm-linen);
  border-radius: 10px;
  padding: 13px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.co-input::placeholder {
  color: var(--color-muted-taupe);
  opacity: 0.7;
}

.co-input:focus {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(201, 107, 90, 0.12);
}

/* ---------- Stripe Payment Element Container ---------- */
.co-stripe-wrap {
  background: var(--color-warm-cream);
  border: 2px solid var(--color-warm-linen);
  border-radius: 10px;
  padding: 16px;
  min-height: 56px;
  transition: border-color 0.2s ease;
}

.co-stripe-wrap:focus-within {
  border-color: var(--color-terracotta);
  box-shadow: 0 0 0 3px rgba(201, 107, 90, 0.12);
}

.co-stripe-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted-taupe);
  font-size: var(--text-sm);
}

.co-stripe-placeholder i {
  font-size: 20px;
  color: var(--color-dusty-sage);
}

/* Stripe element will be mounted here */
#stripe-card-element,
#stripe-payment-element {
  /* Stripe injects an iframe here */
}

/* ---------- Order Summary Sidebar ---------- */
.co-summary {
  position: sticky;
  top: 84px;
}

.co-summary-inner {
  background: var(--color-white-lace);
  border-radius: 20px;
  padding: var(--space-xl) var(--space-xl);
  box-shadow: 0 2px 6px rgba(44, 40, 37, 0.04), 0 12px 40px rgba(194, 48, 95, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.12);
}

.co-summary-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-deep-rose);
  margin-bottom: var(--space-lg);
}

/* Plan badge in summary */
.co-plan-badge {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(194, 48, 95, 0.05), rgba(201, 168, 76, 0.08));
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: var(--space-lg);
}

.co-plan-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-deep-rose);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  overflow: hidden;
}

.co-plan-img-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.co-plan-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-plan-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-charcoal-ink);
}

.co-plan-desc {
  font-size: 12px;
  color: var(--color-muted-taupe);
}

/* Line items */
.co-line-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-warm-linen);
}

.co-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--color-charcoal-ink);
}

.co-line-label {
  color: var(--color-muted-taupe);
}

.co-line-value {
  font-weight: 600;
}

.co-line-value.free {
  color: var(--color-dusty-sage);
  font-weight: 700;
}

.co-line-value.savings {
  color: var(--color-terracotta);
}

/* Total */
.co-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.co-total-label {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-deep-rose);
  font-weight: 700;
}

.co-total-amount {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-deep-rose);
  font-weight: 700;
}

.co-total-period {
  font-size: var(--text-xs);
  color: var(--color-muted-taupe);
  font-family: var(--font-body);
  font-weight: 400;
  margin-top: 2px;
  text-align: right;
}

/* Submit button */
.co-submit-btn {
  width: 100%;
  padding: 18px;
  font-size: var(--text-md);
  border-radius: 12px;
  gap: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.co-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.co-submit-btn:hover::after {
  transform: translateX(100%);
}

/* Trust badges under submit */
.co-trust-row {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.co-trust-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--color-muted-taupe);
  font-weight: 500;
}

.co-trust-item i {
  color: var(--color-dusty-sage);
  font-size: 14px;
}

/* ---------- Spinner for loading state ---------- */
.co-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error alert */
.co-error-alert {
  display: none;
  padding: var(--space-md) var(--space-lg);
  background: rgba(208, 57, 43, 0.08);
  border: 1px solid rgba(208, 57, 43, 0.2);
  border-radius: 10px;
  color: #c0392b;
  font-size: var(--text-sm);
  margin-top: var(--space-md);
}

.co-error-alert.visible {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Success overlay */
.co-success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(250, 246, 238, 0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: var(--space-xl);
  backdrop-filter: blur(8px);
}

.co-success-overlay.visible {
  display: flex;
  animation: ob-fade-in 0.4s ease both;
}

.co-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-dusty-sage), #6a9b69);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: white;
  margin-bottom: var(--space-xl);
  box-shadow: 0 8px 30px rgba(139, 175, 138, 0.4);
}

.co-success-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-deep-rose);
  margin-bottom: var(--space-md);
}

.co-success-body {
  font-size: var(--text-lg);
  color: var(--color-muted-taupe);
  max-width: 420px;
  margin-bottom: var(--space-2xl);
}

/* Shipping address section */
.co-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.co-address-span {
  grid-column: 1 / -1;
}

@media (max-width: 480px) {
  .co-address-grid {
    grid-template-columns: 1fr;
  }
  .co-address-span {
    grid-column: 1;
  }
}

/* Billing checkbox toggle styling */
.co-billing-toggle-wrap {
  transition: all 0.3s ease;
}

.co-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-charcoal-ink);
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.co-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-terracotta);
  border-radius: 4px;
  cursor: pointer;
}

.co-checkbox-label:hover {
  color: var(--color-deep-rose);
}
