/* ==========================================================================
   SS FASHION — Complete 3-Step Mobile-First Boutique Checkout System
   Brand Palette: Ivory (#F8F4EC), Burgundy (#782337), Gold (#C5A46D), Text (#282321)
   Tested across 320px, 360px, 375px, 390px, 430px, Tablet & Desktop
   ========================================================================== */

:root {
    --ssf-ivory: #F8F4EC;
    --ssf-ivory-light: #FCFBF7;
    --ssf-ivory-card: #FAF6EE;
    --ssf-burgundy: #782337;
    --ssf-burgundy-dark: #5B1828;
    --ssf-burgundy-soft: #FCEAE8;
    --ssf-gold: #C5A46D;
    --ssf-gold-light: #E6D3B3;
    --ssf-gold-border: rgba(197, 164, 109, 0.45);
    --ssf-text: #282321;
    --ssf-text-muted: #6E625C;
    --ssf-white: #FFFFFF;
    --ssf-whatsapp: #25D366;
    --ssf-whatsapp-dark: #1DA851;
    --ssf-danger: #C92A2A;
    --ssf-success: #2B8A3E;
}

*, *::before, *::after {
    box-sizing: border-box;
}

.order-page-body {
    display: block !important;
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    background-color: var(--ssf-ivory);
    color: var(--ssf-text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide floating bottom nav dock on checkout & confirmation pages so it never covers form inputs or CTA buttons */
.order-page-body .mobile-bottom-dock {
    display: none !important;
}

/* --------------------------------------------------------------------------
   A. Minimal Luxury Order Page Header
   -------------------------------------------------------------------------- */
.order-topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--ssf-ivory);
    border-bottom: 1px solid rgba(197, 164, 109, 0.35);
    box-shadow: 0 2px 12px rgba(40, 35, 33, 0.04);
}

.order-topbar-inner {
    max-width: 1120px;
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.order-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--ssf-burgundy);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(120, 35, 55, 0.07);
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.order-back-btn:hover {
    background: rgba(120, 35, 55, 0.14);
    transform: translateX(-2px);
}

.order-header-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 0;
}

.order-brand-mini {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--ssf-burgundy);
}

.order-brand-ss {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
}

.order-brand-fashion {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    line-height: 1;
}

.order-page-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ssf-text);
    margin: 2px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-support-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ssf-burgundy);
    background: rgba(197, 164, 109, 0.16);
    border: 1px solid rgba(197, 164, 109, 0.4);
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.order-support-btn:hover {
    background: rgba(197, 164, 109, 0.3);
}

/* --------------------------------------------------------------------------
   Main Checkout Container & 3-Step Progress Stepper
   -------------------------------------------------------------------------- */
.order-main-container {
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    margin: 0 auto;
    padding: 16px 16px 52px;
    overflow-x: hidden;
}

#ssOrderForm {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.checkout-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--ssf-white);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(40, 35, 33, 0.04);
    gap: 8px;
}

.step-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    padding: 4px 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    color: var(--ssf-text-muted);
    text-align: left;
    min-width: 0;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.step-item[aria-disabled="true"] {
    cursor: default;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid rgba(197, 164, 109, 0.6);
    background: var(--ssf-ivory);
    color: var(--ssf-text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.step-check {
    display: none;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.step-item.is-active {
    color: var(--ssf-burgundy);
}

.step-item.is-active .step-circle {
    background: var(--ssf-burgundy);
    border-color: var(--ssf-burgundy);
    color: var(--ssf-white);
    box-shadow: 0 3px 10px rgba(120, 35, 55, 0.28);
}

.step-item.is-completed {
    color: var(--ssf-success);
}

.step-item.is-completed .step-circle {
    background: var(--ssf-success);
    border-color: var(--ssf-success);
    color: var(--ssf-white);
}

.step-item.is-completed .step-num {
    display: none;
}

.step-item.is-completed .step-check {
    display: block;
}

.step-connector {
    flex: 1;
    max-width: 56px;
    min-width: 8px;
    height: 2px;
    background: rgba(197, 164, 109, 0.35);
    border-radius: 2px;
    transition: background 0.25s ease;
}

.step-connector.is-filled {
    background: var(--ssf-burgundy);
}

/* Quick Product Switcher Bar */
.order-product-switcher {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 14px;
    scrollbar-width: none;
}

.order-product-switcher::-webkit-scrollbar {
    display: none;
}

.order-product-switcher.is-hidden {
    display: none;
}

.switcher-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    border: 1px solid rgba(197, 164, 109, 0.4);
    background: var(--ssf-white);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ssf-text);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.switcher-pill img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.switcher-pill.active {
    background: var(--ssf-burgundy);
    color: var(--ssf-white);
    border-color: var(--ssf-burgundy);
}

/* Step Pane Visibility */
.checkout-step-pane {
    display: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    animation: ssfFadeIn 0.28s ease;
}

.checkout-step-pane.is-active {
    display: block;
}

@keyframes ssfFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   STEP 1 — BUY NOW & REVIEW ORDER
   -------------------------------------------------------------------------- */
.step1-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 22px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.review-product-card,
.review-summary-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--ssf-white);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(40, 35, 33, 0.05);
}

.review-photo-frame {
    position: relative;
    width: 100%;
    max-width: 310px;
    height: 310px;
    margin: 0 auto;
    border-radius: 14px;
    overflow: hidden;
    background-color: #2B2223;
    border: 1px solid rgba(197, 164, 109, 0.45);
    box-shadow: 0 6px 18px rgba(40, 35, 33, 0.08);
}

.review-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.order-sku-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(120, 35, 55, 0.92);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 5px 11px;
    border-radius: 999px;
}

.order-discount-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #C5A46D;
    color: #282321;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 5px 10px;
    border-radius: 999px;
}

.order-photo-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(25, 20, 18, 0.72);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.review-product-meta {
    padding-top: 16px;
}

.review-cat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.review-category-tag {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ssf-burgundy);
    background: rgba(120, 35, 55, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.review-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.review-stock-badge.in-stock {
    background: #EBFBEE;
    color: #2B8A3E;
    border: 1px solid #B2F2BB;
}

.review-stock-badge.out-stock {
    background: #FFF0F0;
    color: #C92A2A;
}

.stock-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.review-product-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ssf-text);
    margin: 0 0 8px;
    line-height: 1.25;
}

.review-sku-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.review-sku-text {
    font-size: 0.82rem;
    color: var(--ssf-text-muted);
}

.review-sku-text strong {
    color: var(--ssf-text);
}

.order-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ssf-text);
    background: var(--ssf-ivory);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(197, 164, 109, 0.35);
}

.order-rating-star {
    color: #E5A000;
}

.review-product-desc {
    font-size: 0.88rem;
    color: var(--ssf-text-muted);
    line-height: 1.5;
    margin: 0 0 14px;
}

.review-price-block {
    background: var(--ssf-ivory-card);
    border: 1px solid rgba(197, 164, 109, 0.35);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
}

.review-price-main {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.review-selling-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    line-height: 1.1;
}

.review-original-price {
    font-size: 1rem;
    color: #9c938d;
    text-decoration: line-through;
}

.review-saving-pill {
    font-size: 0.75rem;
    font-weight: 700;
    color: #2B8A3E;
    background: #EBFBEE;
    padding: 3px 8px;
    border-radius: 6px;
}

.review-tax-note {
    display: block;
    font-size: 0.74rem;
    color: var(--ssf-text-muted);
    margin-top: 4px;
}

/* Quantity Selector Box */
.review-qty-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: var(--ssf-ivory);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 14px;
}

.review-qty-label-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-qty-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ssf-text);
}

.review-qty-stock-sub {
    font-size: 0.74rem;
    color: var(--ssf-text-muted);
}

.qty-stepper {
    display: inline-flex;
    align-items: center;
    background: var(--ssf-white);
    border: 1.5px solid var(--ssf-gold);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    color: var(--ssf-burgundy);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.qty-btn:hover {
    background: rgba(120, 35, 55, 0.08);
}

.qty-btn:active {
    transform: scale(0.92);
}

.qty-input-display {
    width: 46px;
    height: 44px;
    border: none;
    border-left: 1px solid rgba(197, 164, 109, 0.3);
    border-right: 1px solid rgba(197, 164, 109, 0.3);
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ssf-text);
    background: var(--ssf-white);
    outline: none;
}

/* Order Summary & Totals Card */
.order-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ssf-text);
    margin: 0 0 16px;
}

.order-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background-color: var(--ssf-burgundy);
    flex-shrink: 0;
}

.order-totals-box {
    background: var(--ssf-ivory-card);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.totals-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--ssf-text-muted);
    padding: 6px 0;
}

.totals-line strong {
    color: var(--ssf-text);
}

.totals-free-badge {
    color: var(--ssf-success);
    font-weight: 700;
    font-size: 0.88rem;
}

.totals-paid-ship {
    color: var(--ssf-text);
    font-weight: 700;
}

.totals-line.totals-grand {
    border-top: 1px dashed rgba(197, 164, 109, 0.7);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ssf-text);
}

.totals-line.totals-grand .grand-amount {
    font-size: 1.35rem;
    color: var(--ssf-burgundy);
}

.delivery-confirm-note {
    font-size: 0.76rem;
    color: var(--ssf-text-muted);
    margin-top: 10px;
    line-height: 1.45;
}

/* Add to Cart Button (Above Buy Now) */
.btn-order-add-cart {
    width: 100%;
    min-height: 48px;
    margin-bottom: 10px;
    border: 1.5px solid var(--ssf-gold);
    background: var(--ssf-ivory);
    color: var(--ssf-burgundy);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 12px 20px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-order-add-cart:hover {
    background: var(--ssf-burgundy);
    color: var(--ssf-white);
    border-color: var(--ssf-burgundy);
    transform: translateY(-1px);
}

.btn-order-add-cart.is-added {
    background: #EBFBEE;
    color: #2B8A3E;
    border-color: #2B8A3E;
}

/* Primary Burgundy Buttons */
.btn-continue-delivery,
.btn-place-order {
    width: 100%;
    min-height: 54px;
    border: 1px solid rgba(238, 213, 155, 0.45);
    background: linear-gradient(135deg, #8A2940 0%, #681B2D 100%);
    color: var(--ssf-white);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 15px 24px;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(120, 35, 55, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btn-continue-delivery:hover,
.btn-place-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(120, 35, 55, 0.4);
}

.btn-continue-delivery:active,
.btn-place-order:active {
    transform: scale(0.98);
}

.btn-place-order:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.order-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    font-size: 0.76rem;
    color: var(--ssf-text-muted);
    margin-top: 12px;
    line-height: 1.35;
}

/* 4 Boutique Trust Badges */
.order-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--ssf-ivory);
    border: 1px solid rgba(197, 164, 109, 0.3);
    border-radius: 14px;
    padding: 12px 8px;
    margin-top: 16px;
    text-align: center;
}

.trust-mini-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.trust-mini-item svg {
    color: var(--ssf-burgundy);
    width: 20px;
    height: 20px;
}

.trust-mini-item span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--ssf-text-muted);
    line-height: 1.2;
}

/* --------------------------------------------------------------------------
   STEP 2 — CUSTOMER DELIVERY DETAILS ("Where Should We Deliver?")
   -------------------------------------------------------------------------- */
#checkoutStep2 {
    max-width: 680px;
    margin: 0 auto;
}

.step2-mini-review {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--ssf-white);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 18px;
    box-shadow: 0 6px 20px rgba(40, 35, 33, 0.04);
}

.step2-mini-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.step2-mini-thumb {
    width: 58px;
    height: 68px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(197, 164, 109, 0.45);
    flex-shrink: 0;
}

.step2-mini-meta {
    min-width: 0;
}

.step2-mini-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ssf-burgundy);
    margin-bottom: 2px;
}

.step2-mini-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ssf-text);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.step2-mini-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    color: var(--ssf-text-muted);
    font-weight: 500;
}

.step2-mini-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.step2-mini-total-label {
    font-size: 0.68rem;
    color: var(--ssf-text-muted);
}

.step2-mini-total-val {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    margin-bottom: 4px;
}

.step2-edit-btn {
    background: var(--ssf-ivory);
    border: 1px solid rgba(197, 164, 109, 0.5);
    color: var(--ssf-burgundy);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.step2-edit-btn:hover {
    background: rgba(197, 164, 109, 0.25);
}

/* Delivery Form Card */
.order-form-card {
    background: var(--ssf-white);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 22px;
    padding: 24px 20px;
    box-shadow: 0 10px 32px rgba(40, 35, 33, 0.06);
}

.step2-form-header {
    margin-bottom: 18px;
}

.step2-form-header .order-section-title {
    margin-bottom: 6px;
}

.step2-form-subtitle {
    font-size: 0.85rem;
    color: var(--ssf-text-muted);
    margin: 0;
    line-height: 1.45;
}

.order-alert-error {
    background: #FFF0F0;
    border: 1px solid rgba(201, 42, 42, 0.35);
    color: var(--ssf-danger);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    font-weight: 500;
}

.order-alert-error ul {
    margin: 6px 0 0 18px;
    padding: 0;
}

/* Full-width 50px Height Ivory & Gold Inputs */
.ssf-fields-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ssf-desktop-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.ssf-form-group {
    display: flex;
    flex-direction: column;
}

.ssf-label {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ssf-text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ssf-label .req-star {
    color: var(--ssf-burgundy);
}

.ssf-label .opt-tag {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--ssf-text-muted);
}

.ssf-input-wrap {
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: var(--ssf-ivory-card);
    border: 1.2px solid var(--ssf-gold-border);
    border-radius: 12px;
    padding: 0 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ssf-input-wrap:focus-within {
    border-color: var(--ssf-burgundy);
    background-color: var(--ssf-white);
    box-shadow: 0 0 0 3px rgba(120, 35, 55, 0.12);
}

.ssf-input-wrap.has-error {
    border-color: var(--ssf-danger);
    background-color: #FFF9F9;
}

.ssf-phone-wrap {
    padding-left: 10px;
    gap: 10px;
}

.ssf-phone-prefix {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    background: rgba(120, 35, 55, 0.09);
    padding: 5px 9px;
    border-radius: 8px;
    user-select: none;
    flex-shrink: 0;
}

.ssf-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
    font-weight: 500;
    color: var(--ssf-text);
    padding: 0;
    outline: none;
    min-width: 0;
}

.ssf-input::placeholder {
    color: #9E948E;
    font-weight: 400;
}

.ssf-select {
    cursor: pointer;
}

.ssf-field-error {
    display: none;
    font-size: 0.76rem;
    color: var(--ssf-danger);
    font-weight: 500;
    margin-top: 5px;
    padding-left: 2px;
}

.ssf-field-error.visible {
    display: block;
}

/* Consent Checkbox */
.ssf-consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 12px 14px;
    background: var(--ssf-ivory-light);
    border-radius: 12px;
    border: 1px dashed rgba(197, 164, 109, 0.55);
    font-size: 0.82rem;
    color: var(--ssf-text-muted);
    cursor: pointer;
    line-height: 1.4;
}

.ssf-consent-row input[type="checkbox"] {
    accent-color: var(--ssf-burgundy);
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* Step 2 Bottom Summary Box */
.step2-bottom-summary {
    background: var(--ssf-ivory-card);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 18px 0;
}

.btn-return-step1 {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px;
    background: transparent;
    border: 1px solid rgba(197, 164, 109, 0.5);
    border-radius: 999px;
    color: var(--ssf-text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-return-step1:hover {
    color: var(--ssf-burgundy);
    border-color: var(--ssf-burgundy);
    background: var(--ssf-ivory);
}

.order-lotus-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    color: var(--ssf-gold);
}

.order-lotus-divider::before,
.order-lotus-divider::after {
    content: '';
    flex: 1;
    max-width: 90px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ssf-gold), transparent);
}

/* --------------------------------------------------------------------------
   STEP 4 — ORDER SUCCESS PAGE (`order-success.php`)
   -------------------------------------------------------------------------- */
.success-page-wrap {
    max-width: 560px;
    margin: 20px auto 60px;
    padding: 0 14px;
}

.success-card {
    position: relative;
    background: linear-gradient(180deg, #FDFBF7 0%, #F7EFE2 100%);
    border: 1.5px solid var(--ssf-gold);
    border-radius: 26px;
    padding: 30px 22px 26px;
    text-align: center;
    box-shadow: 0 14px 40px rgba(40, 35, 33, 0.09);
    overflow: hidden;
}

.success-arch-deco {
    margin: -10px auto 12px;
    display: flex;
    justify-content: center;
}

.success-check-hero {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2B8A3E 0%, #1B6B2B 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(43, 138, 62, 0.32);
    border: 4px solid #ffffff;
    animation: ssfPopIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ssfPopIn {
    0%   { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    margin: 0 0 8px;
    line-height: 1.25;
}

.success-subtitle {
    font-size: 0.92rem;
    color: var(--ssf-text-muted);
    margin: 0 auto 14px;
    max-width: 380px;
    line-height: 1.45;
}

.success-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFF4E5;
    border: 1px solid #E5A000;
    color: #946200;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

/* Ordered Product Visual Card on Success Page */
.success-product-showcase {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--ssf-white);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 16px;
    padding: 12px;
    text-align: left;
    margin-bottom: 16px;
}

.success-prod-img {
    width: 64px;
    height: 76px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center top;
    border: 1px solid rgba(197, 164, 109, 0.4);
    flex-shrink: 0;
}

.success-prod-info {
    flex: 1;
    min-width: 0;
}

.success-prod-sku {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    background: rgba(120, 35, 55, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.success-prod-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ssf-text);
    margin: 0 0 4px;
}

.success-prod-pricing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--ssf-text-muted);
}

.success-prod-total {
    font-size: 1.05rem;
    color: var(--ssf-burgundy);
}

.success-details-box {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--ssf-gold-border);
    border-radius: 18px;
    padding: 18px 16px;
    text-align: left;
    margin-bottom: 18px;
    box-shadow: inset 0 0 0 3px rgba(197, 164, 109, 0.08);
}

.success-details-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--ssf-burgundy);
    text-align: center;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(197, 164, 109, 0.3);
}

.success-detail-row {
    display: grid;
    grid-template-columns: 95px 12px 1fr;
    padding: 5px 0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.success-detail-label {
    color: var(--ssf-text-muted);
    font-weight: 500;
}

.success-detail-sep {
    color: var(--ssf-text-muted);
}

.success-detail-val {
    color: var(--ssf-text);
    font-weight: 600;
    word-break: break-word;
}

.success-detail-val.highlight-price {
    color: var(--ssf-burgundy);
    font-size: 0.98rem;
    font-weight: 700;
}

.wa-preview-bubble-card {
    background: #FFFFFF;
    border: 1px solid rgba(37, 211, 102, 0.35);
    border-radius: 16px;
    padding: 12px;
    text-align: left;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.wa-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ssf-text);
}

.wa-preview-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wa-green-bubble {
    background: #E7FFDB;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #1F2921;
    white-space: pre-line;
    position: relative;
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.wa-double-tick {
    float: right;
    color: #34B7F1;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 4px;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.btn-chat-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #8A2940 0%, #681B2D 100%);
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 15px 24px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(120, 35, 55, 0.3);
    transition: transform 0.2s ease;
}

.btn-chat-whatsapp:hover {
    transform: translateY(-2px);
}

.btn-continue-shopping {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--ssf-white);
    color: var(--ssf-burgundy);
    border: 1.5px solid var(--ssf-gold);
    font-size: 0.88rem;
    font-weight: 700;
    padding: 13px 24px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-continue-shopping:hover {
    background: var(--ssf-ivory);
}

.success-team-note {
    font-size: 0.84rem;
    color: var(--ssf-text-muted);
    line-height: 1.45;
    margin: 0 auto 16px;
    max-width: 380px;
}

.success-thankyou-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ssf-burgundy);
    margin: 10px 0 4px;
}

/* --------------------------------------------------------------------------
   Mobile-First Single-Column Responsiveness
   Tested for 320px, 360px, 375px, 390px, 430px, and 768px
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
    .step1-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .order-topbar-inner {
        height: 54px;
        padding: 0 12px;
    }

    .order-main-container {
        padding: 12px 12px 44px;
    }

    .checkout-stepper {
        padding: 9px 10px;
        margin-bottom: 12px;
        border-radius: 14px;
        gap: 4px;
        justify-content: space-between;
    }

    .step-item {
        padding: 2px 3px;
        gap: 5px;
    }

    .step-circle {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .step-label {
        font-size: 0.72rem;
    }

    .step-connector {
        min-width: 6px;
        max-width: 22px;
    }

    .review-product-card,
    .review-summary-card,
    .order-form-card {
        padding: 15px 13px;
        border-radius: 18px;
    }

    .review-photo-frame {
        max-width: 255px;
        height: 255px;
        border-radius: 14px;
    }

    .review-product-meta {
        padding-top: 12px;
    }

    .review-product-title {
        font-size: 1.25rem;
    }

    .review-selling-price {
        font-size: 1.4rem;
    }

    .ssf-desktop-row-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .ssf-fields-stack {
        gap: 14px;
    }

    .ssf-input-wrap {
        height: 50px;
        padding: 0 12px;
    }

    .step2-mini-review {
        padding: 10px 12px;
        border-radius: 14px;
    }

    .step2-mini-thumb {
        width: 50px;
        height: 60px;
    }

    .step2-mini-title {
        font-size: 0.92rem;
    }

    .step2-mini-total-val {
        font-size: 1.05rem;
    }

    .order-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 8px;
    }

    .success-card {
        padding: 24px 16px 22px;
        border-radius: 22px;
    }

    .success-heading {
        font-size: 1.45rem;
    }

    .success-detail-row {
        grid-template-columns: 82px 10px 1fr;
        font-size: 0.8rem;
    }
}

/* Ultra-Compact Mobile Screens (320px - 359px) */
@media (max-width: 359px) {
    .order-topbar-inner {
        padding: 0 8px;
        gap: 6px;
    }

    .order-back-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .order-main-container {
        padding: 10px 8px 36px;
    }

    .checkout-stepper {
        padding: 7px 6px;
        gap: 2px;
    }

    .step-item {
        padding: 2px 2px;
        gap: 4px;
    }

    .step-label {
        font-size: 0.62rem;
    }

    .step-circle {
        width: 19px;
        height: 19px;
        font-size: 0.62rem;
    }

    .step-connector {
        min-width: 4px;
        max-width: 10px;
    }

    .review-product-card,
    .review-summary-card,
    .order-form-card {
        padding: 12px 10px;
        border-radius: 16px;
    }

    .review-photo-frame {
        max-width: 220px;
        height: 220px;
        border-radius: 12px;
    }

    .order-sku-badge,
    .order-discount-badge,
    .order-photo-counter {
        font-size: 0.64rem;
        padding: 3px 8px;
    }

    .review-product-title {
        font-size: 1.15rem;
    }

    .review-product-desc {
        font-size: 0.8rem;
        margin-bottom: 10px;
    }

    .review-selling-price {
        font-size: 1.3rem;
    }

    .review-qty-box {
        padding: 9px 10px;
        gap: 8px;
    }

    .review-qty-title {
        font-size: 0.84rem;
    }

    .review-qty-stock-sub {
        font-size: 0.68rem;
    }

    .qty-btn {
        width: 34px;
        height: 34px;
        font-size: 1.15rem;
    }

    .qty-input-display {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }

    .btn-continue-delivery,
    .btn-place-order {
        min-height: 48px;
        font-size: 0.86rem;
        padding: 12px 16px;
    }

    .step2-mini-review {
        flex-wrap: wrap;
    }

    .step2-mini-right {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding-top: 8px;
        border-top: 1px dashed rgba(197, 164, 109, 0.35);
    }

    .step2-mini-total-val {
        margin-bottom: 0;
    }
}
