/* ── Design tokens ── */
    :root {
      --shaklee-green:   #173E35;
      --shaklee-green-l: #1f5448;
      --shaklee-green-x: #e6eeec;
      --shaklee-gold:    #c9a227;
      --shaklee-gold-l:  #f5e8c0;
      --text-dark:       #1a1a1a;
      --text-mid:        #555;
      --text-light:      #888;
      --border:          #e2e2e2;
      --bg-page:         #f4f6f5;
      --bg-card:         #ffffff;
      --radius:          14px;
      --shadow:          0 4px 24px rgba(0,0,0,.07);
    }

    /* ── btn-dark-green (reused from WhatsApp Order) ── */
    .btn-dark-green {
      background-color: var(--shaklee-green);
      color: #fff;
      border: none;
      border-radius: 8px;
      font-weight: 600;
      font-size: .9rem;
      padding: 10px 20px;
      transition: background-color .2s, box-shadow .2s, transform .1s;
      box-shadow: 0 3px 10px rgba(23,62,53,.3);
      cursor: pointer;
      display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    }
    .btn-dark-green:hover {
      background-color: var(--shaklee-green-l);
      box-shadow: 0 5px 18px rgba(23,62,53,.4);
      transform: translateY(-1px);
      color: #fff;
    }
    .btn-dark-green:active { transform: translateY(0); }

    /* ── Base ── */
    *, *::before, *::after { box-sizing: border-box; }
    body {
      font-family: 'DM Sans', sans-serif;
      background: var(--bg-page);
      color: var(--text-dark);
      min-height: 100vh;
    }
    h1, h2, h3, h4, h5 { font-family: 'Playfair Display', serif; }

    /* ── Topbar ── */
    .topbar {
      background: var(--shaklee-green);
      padding: 12px 0;
      position: sticky; top: 0; z-index: 1030;
      box-shadow: 0 2px 12px rgba(23,62,53,.3);
    }
    .topbar-brand { display: flex; align-items: center; gap: 10px; }
    .topbar-brand img { height: 36px; object-fit: contain; }
    .topbar-steps { display: flex; align-items: center; gap: 6px; }
    .step-pill {
      font-size: .72rem; font-weight: 600; letter-spacing: .5px;
      padding: 4px 12px; border-radius: 99px;
      background: rgba(255,255,255,.15); color: rgba(255,255,255,.7);
      white-space: nowrap;
    }
    .step-pill.active { background: var(--shaklee-gold); color: #fff; }
    .step-pill.done   { background: rgba(255,255,255,.9); color: var(--shaklee-green); }
    .step-sep { color: rgba(255,255,255,.4); font-size: .7rem; }

    /* ── Section cards ── */
    .section-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 28px 28px;
      margin-bottom: 20px;
    }
    .section-title {
      font-size: 1.05rem; font-weight: 700;
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 20px;
      padding-bottom: 12px;
      border-bottom: 2px solid var(--shaklee-green-x);
      color: var(--shaklee-green);
    }
    .section-title .badge-num {
      width: 26px; height: 26px; border-radius: 50%;
      background: var(--shaklee-green); color: #fff;
      font-size: .75rem; font-weight: 700;
      display: inline-flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }

    /* ── Form controls ── */
    .form-label { font-size: .82rem; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; }
    .form-control, .form-select {
      border: 1.5px solid var(--border);
      border-radius: 9px; font-size: .9rem; padding: 10px 14px;
      transition: border-color .2s, box-shadow .2s;
    }
    .form-control:focus, .form-select:focus {
      border-color: var(--shaklee-green-l);
      box-shadow: 0 0 0 3px rgba(23,62,53,.15);
    }
    .form-control::placeholder { color: #bbb; }
    .input-group-text {
      background: var(--shaklee-green-x);
      border: 1.5px solid var(--border);
      border-right: none; border-radius: 9px 0 0 9px;
      color: var(--shaklee-green); font-size: .9rem;
    }
    .input-group .form-control { border-left: none; border-radius: 0 9px 9px 0; }
    .input-group:focus-within .input-group-text {
      border-color: var(--shaklee-green-l);
    }

    /* ── Delivery method ── */
    .delivery-option {
      border: 1.5px solid var(--border);
      border-radius: 10px; padding: 14px 16px;
      cursor: pointer; transition: border-color .2s, background .2s;
      display: flex; align-items: center; gap: 12px;
    }
    .delivery-option:hover { border-color: var(--shaklee-green-l); background: var(--shaklee-green-x); }
    .delivery-option.selected { border-color: var(--shaklee-green); background: var(--shaklee-green-x); }
    .delivery-option input[type=radio] { accent-color: var(--shaklee-green); width: 16px; height: 16px; flex-shrink: 0; }
    .delivery-option .do-icon {
      width: 38px; height: 38px; border-radius: 9px;
      background: var(--shaklee-green-x); color: var(--shaklee-green);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.15rem; flex-shrink: 0;
    }
    .delivery-option.selected .do-icon { background: var(--shaklee-green); color: #fff; }
    .do-label { font-size: .88rem; font-weight: 600; }
    .do-sub   { font-size: .75rem; color: var(--text-light); }
    .do-price { margin-left: auto; font-weight: 700; font-size: .9rem; color: var(--shaklee-green); white-space: nowrap; }

    /* ── Order items ── */
    .order-item {
      display: flex; align-items: center; gap: 14px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    .order-item:last-child { border-bottom: none; }
    .order-item img { width: 60px; height: 60px; object-fit: contain; border-radius: 10px; background: #fff; }
    .oi-name { font-size: .88rem; font-weight: 600; line-height: 1.3; }
    .oi-variant { font-size: .75rem; color: var(--text-light); }
    .oi-price { font-weight: 700; font-size: .92rem; white-space: nowrap; }
    .oi-retail {
      font-size: .75rem; color: var(--text-light);
      text-decoration: line-through;
      white-space: nowrap; text-align: right;
    }
    .qty-control {
      display: flex; align-items: center; gap: 0;
      border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
    }
    .qty-btn {
      background: none; border: none; width: 30px; height: 30px;
      font-size: 1rem; cursor: pointer; color: var(--shaklee-green);
      transition: background .15s;
    }
    .qty-btn:hover { background: var(--shaklee-green-x); }
    .qty-val { width: 30px; text-align: center; font-size: .85rem; font-weight: 600; border: none; outline: none; background: transparent; }

    /* ── Promo code ── */
    .promo-wrap { display: flex; gap: 8px; }
    .promo-wrap .form-control { border-radius: 9px; }
    .btn-promo {
      border-radius: 9px;
      font-size: .85rem; padding: 0 18px;
      white-space: nowrap;
    }

    /* ── Summary sidebar ── */
    .summary-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .summary-body {
      padding: 20px 22px;
      overflow-y: auto;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .summary-cta {
      padding: 16px 22px 20px;
      border-top: 1px solid var(--shaklee-green-x);
      background: var(--bg-card);
      flex-shrink: 0;
    }
    .summary-header {
      background: var(--shaklee-green);
      padding: 18px 22px;
      color: #fff;
      flex-shrink: 0;
    }
    .summary-header h5 { margin: 0; font-size: 1rem; font-weight: 600; }
    .summary-row {
      display: flex; justify-content: space-between; align-items: center;
      font-size: .875rem; padding: 6px 0;
      color: var(--text-mid);
    }
    .summary-row.total {
      font-size: 1.05rem; font-weight: 700;
      color: var(--text-dark);
      border-top: 2px solid var(--shaklee-green-x);
      padding-top: 12px; margin-top: 6px;
    }
    .summary-row.total span:last-child { color: var(--shaklee-green); }
    .summary-divider { border-top: 1px dashed var(--border); margin: 12px 0; }
    .badge-savings {
      background: var(--shaklee-gold-l); color: var(--shaklee-gold);
      font-size: .73rem; font-weight: 700; border-radius: 6px;
      padding: 3px 8px;
    }

    /* ── CTA button — uses btn-dark-green ── */
    .btn-checkout {
      width: 100%; padding: 15px;
      font-size: 1rem; font-weight: 700;
      letter-spacing: .3px;
      border-radius: 12px;
    }
    .btn-wa {
      display: flex; align-items: center; justify-content: center; gap: 8px;
      font-size: .82rem; color: var(--text-mid); margin-top: 10px;
    }
    .btn-wa i { color: #25d366; font-size: 1rem; }

    /* ── Promo Carousel ── */
    .promo-carousel {
      display: flex; gap: 10px;
      overflow-x: auto; padding: 4px 2px 10px;
      scroll-snap-type: x mandatory;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }
    .promo-carousel::-webkit-scrollbar { display: none; }

    .promo-chip {
      display: flex; align-items: stretch;
      border: 1.5px solid var(--border);
      border-radius: 12px; overflow: hidden;
      cursor: pointer; flex-shrink: 0;
      width: 210px; scroll-snap-align: start;
      transition: border-color .2s, box-shadow .2s, transform .15s;
      background: var(--bg-card); position: relative;
    }

    /* Mobile: 2-row × N-column grid, scrolls left to reveal more columns */
    @media (max-width: 991.98px) {
      .promo-carousel-wrap {
        position: relative;
        overflow: hidden;
      }
      /* fade-out right edge to hint more content */
      .promo-carousel-wrap::after {
        content: '';
        position: absolute; top: 0; right: 0; bottom: 10px;
        width: 48px; pointer-events: none;
        background: linear-gradient(to right, transparent, var(--bg-card));
        border-radius: 0 12px 12px 0;
        z-index: 2;
        transition: opacity .3s;
      }
      .promo-carousel-wrap.scrolled-end::after { opacity: 0; }

      .promo-carousel {
        display: grid !important;
        grid-template-rows: 1fr 1fr;
        grid-auto-flow: column;
        grid-auto-columns: calc(50% - 6px);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 4px 2px 10px;
        gap: 10px;
        scrollbar-width: none;
      }
      .promo-carousel .promo-chip {
        width: 100%; min-width: 0;
        scroll-snap-align: start; flex-shrink: unset;
      }

      /* scroll progress dots */
      .promo-scroll-dots {
        display: flex; justify-content: center; gap: 5px;
        margin-top: -4px; margin-bottom: 6px;
      }
      .promo-dot {
        width: 6px; height: 6px; border-radius: 50%;
        background: var(--border); transition: background .2s, width .2s;
      }
      .promo-dot.active {
        background: var(--shaklee-green); width: 18px; border-radius: 3px;
      }
    }
    @media (min-width: 992px) {
      .promo-scroll-dots { display: none; }
      .promo-carousel-wrap::after { display: none; }
    }

    /* Desktop: 2-col grid for promo codes */
    .promo-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
    .promo-grid .promo-chip { width: auto; }

    .promo-chip:hover {
      border-color: var(--shaklee-green);
      box-shadow: 0 3px 12px rgba(23,62,53,.12);
      transform: translateY(-1px);
    }
    .promo-chip.applied {
      border-color: var(--shaklee-green);
      background: var(--shaklee-green-x);
    }
    .pc-left {
      width: 54px; flex-shrink: 0;
      background: #7b9c91;
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 10px 4px; text-align: center; gap: 1px;
    }
    .pc-amount {
      font-family: 'Playfair Display', serif;
      font-size: 1rem; font-weight: 700; color: #fff; line-height: 1;
    }
    .pc-off {
      font-size: .58rem; font-weight: 700;
      color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .4px;
    }
    .pc-body { flex: 1; padding: 9px 10px; min-width: 0; }
    .pc-code {
      font-size: .85rem; font-weight: 800; letter-spacing: 1.5px;
      color: var(--shaklee-green); line-height: 1; margin-bottom: 3px;
    }
    .pc-desc {
      font-size: .68rem; color: var(--text-light); line-height: 1.3;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .pc-check {
      width: 28px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: var(--shaklee-green); font-size: .95rem;
      opacity: 0; transition: opacity .2s;
    }
    .promo-chip.applied .pc-check { opacity: 1; }

    /* applied row */
    .promo-applied-row {
      display: flex; align-items: center; gap: 8px;
      background: var(--shaklee-green-x);
      border: 1.5px solid var(--shaklee-green);
      border-radius: 9px; padding: 9px 12px; margin-top: 8px;
    }
    /* individual applied code tag */
    .promo-tag-chip {
      display: inline-flex; align-items: center; gap: 5px;
      background: var(--shaklee-green); color: #fff;
      border-radius: 99px; font-size: .73rem; font-weight: 600;
      padding: 3px 10px 3px 12px;
    }
    .promo-tag-chip button {
      background: rgba(255,255,255,.25); border: none; border-radius: 50%;
      width: 16px; height: 16px; padding: 0; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      font-size: .65rem; color: #fff; line-height: 1;
      transition: background .15s;
    }
    .promo-tag-chip button:hover { background: rgba(255,255,255,.45); }

    /* ── Payment methods ── */
    .pay-option {
      border: 1.5px solid var(--border); border-radius: 10px;
      padding: 12px 14px; cursor: pointer;
      transition: border-color .2s, background .2s;
      display: flex; align-items: center; gap: 10px;
    }
    .pay-option:hover  { border-color: var(--shaklee-green-l); background: var(--shaklee-green-x); }
    .pay-option.selected { border-color: var(--shaklee-green); background: var(--shaklee-green-x); }
    .pay-option input[type=radio] { accent-color: var(--shaklee-green); width: 16px; height: 16px; }
    .pay-logo {
      height: 22px; object-fit: contain;
      filter: grayscale(1); transition: filter .2s;
    }
    .pay-option.selected .pay-logo,
    .pay-option:hover    .pay-logo { filter: none; }
    .pay-label { font-size: .85rem; font-weight: 600; }
    .pay-sub   { font-size: .73rem; color: var(--text-light); }

    /* ── Trust badges ── */
    .trust-bar {
      display: flex; gap: 14px; flex-wrap: wrap;
      justify-content: center; margin-top: 14px;
    }
    .trust-item {
      display: flex; align-items: center; gap: 6px;
      font-size: .75rem; color: var(--text-light);
    }
    .trust-item i { font-size: .95rem; color: var(--shaklee-green); }

    /* ── Misc ── */
    .green-note {
      background: var(--shaklee-green-x);
      border-left: 3px solid var(--shaklee-green);
      border-radius: 0 8px 8px 0;
      padding: 10px 14px; font-size: .8rem;
      color: var(--shaklee-green); margin-top: 14px;
    }
    .free-badge {
      background: #ffeb3b; color: #5d4037;
      font-size: .65rem; font-weight: 700;
      padding: 2px 7px; border-radius: 99px;
      margin-left: 6px; vertical-align: middle;
    }

    /* ── Footer ── */
    .page-footer {
      background: var(--shaklee-green); color: rgba(255,255,255,.7);
      text-align: center; font-size: .78rem; padding: 18px;
      margin-top: 40px;
    }
    .page-footer a { color: rgba(255,255,255,.85); text-decoration: none; }

    /* ── Responsive ── */
    @media (max-width: 575px) {
      .section-card { padding: 20px 16px; }
      .topbar-steps { display: none; }
    }

    /* ── Mobile section order overrides ── */
    @media (max-width: 991.98px) {
      .col-lg-7 { display: flex; flex-direction: column; }
      #section-promo { order: 0; } /* Promo → first */
      #section-1     { order: 1; } /* Order Review → second */
      #section-2     { order: 2; } /* Contact + Shipping → third */
      #section-4     { order: 3; } /* Terms & Consent → fourth */
      #section-5     { order: 4; } /* Mobile summary → last */
    }
    /* ── ESP Flavour selector ── */
    .flavour-selector {
      display: none;
      margin-top: 10px; padding: 10px 12px;
      background: var(--shaklee-green-x);
      border: 1.5px solid var(--shaklee-green);
      border-radius: 10px;
    }
    .flavour-selector.visible { display: block; }
    .flavour-label {
      font-size: .75rem; font-weight: 700;
      color: var(--shaklee-green); margin-bottom: 8px;
      display: flex; align-items: center; gap: 5px;
    }
    .flavour-options { display: flex; flex-direction: column; gap: 6px; }
    .flavour-opt {
      display: flex; align-items: center; gap: 10px;
      padding: 8px 10px; border-radius: 8px;
      border: 1.5px solid var(--border);
      background: #fff; cursor: pointer;
      transition: border-color .15s, background .15s;
      font-size: .83rem; font-weight: 500;
    }
    .flavour-opt:hover { border-color: var(--shaklee-green-l); background: var(--shaklee-green-x); }
    .flavour-opt input[type=radio] { accent-color: var(--shaklee-green); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
    .flavour-opt.selected { border-color: var(--shaklee-green); background: var(--shaklee-green-x); font-weight: 600; }
    .flavour-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.1); }

    /* ── ESP Flavour modal items ── */
    .esp-flavour-item {
      display: flex; align-items: center; gap: 14px;
      padding: 12px 14px;
      border: 1.5px solid var(--border); border-radius: 12px;
      cursor: pointer; transition: border-color .2s, background .2s;
      background: var(--bg-card);
    }
    .esp-flavour-item:hover   { border-color: var(--shaklee-green-l); background: var(--shaklee-green-x); }
    .esp-flavour-item.selected { border-color: var(--shaklee-green); background: var(--shaklee-green-x); }
    .esp-check-icon { color: var(--shaklee-green); font-size: 1rem; opacity: 0; transition: opacity .2s; }
    .esp-flavour-item.selected .esp-check-icon { opacity: 1; }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(16px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .section-card, .summary-card {
      animation: fadeUp .45s ease both;
    }
    .section-card:nth-child(2) { animation-delay: .07s; }
    .section-card:nth-child(3) { animation-delay: .14s; }
    .section-card:nth-child(4) { animation-delay: .21s; }
    .section-card:nth-child(5) { animation-delay: .28s; }
    .summary-card               { animation-delay: .35s; }
    
     /* ── Free shipping progress note ── */
    .free-shipping-note {
      font-size: .72rem; color: var(--text-light);
      display: flex; align-items: center; gap: 6px;
      margin: -2px 0 12px;
      line-height: 1.4;
    }
    .free-shipping-note i { color: var(--shaklee-green); flex-shrink: 0; }
    .free-shipping-note.qualified { color: #1a7a3c; font-weight: 600; }
    .free-shipping-note.qualified i { color: #1a7a3c; }