/* ============================================================================
   ZORPIDO — Cart & Checkout stylesheet   (order_page/css/style.css)
   ----------------------------------------------------------------------------
   Powers BOTH customer checkout pages, which link this one file:
     • cart.html      (Your Cart & Details)
     • payment.html   (Payment Method & Confirm)

   Fast-food brand system: red / yellow / white only. There is no black and no
   grey — the darkest value is Deep Ketchup (#6E0F16), which is a red. Text,
   borders, dividers and shadows are all red-tinted so the flow reads as one
   warm brand. Type is Bricolage Grotesque (display) + Instrument Sans (body)
   + IBM Plex Mono (labels, prices, numbers), matching the rest of the site.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@600;700;800&family=IBM+Plex+Mono:wght@500;600&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
    --red: #E4192F;
    --red-dark: #B3111F;
    --red-deep: #6E0F16;
    --red-deeper: #6E0F16;
    /* alias used by payment.html inline styles */
    --red-wash: #FFEDEE;
    --red-line: #F7D6D8;

    --yellow: #FFC72C;
    --yellow-dark: #E6A700;
    --yellow-soft: #FFF3D1;

    --cream: #FFFBF2;
    --white: #FFFFFF;

    --text: #6E0F16;
    --text-muted: #9B6F6C;
    --border: #F2DCC9;
    /* warm border used by inline dashed panels */

    --veg: #1F8A44;
    --veg-bg: #E7F6EC;

    --display: 'Bricolage Grotesque', system-ui, sans-serif;
    --body: 'Instrument Sans', system-ui, sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, monospace;

    --radius: 18px;
    --radius-sm: 12px;
}

/* ── Page shells ─────────────────────────────────────────────────────────── */
.cart-page,
.payment-page {
    background: var(--cream);
    font-family: var(--body);
    color: var(--text);
    padding: 34px 0 80px;
    min-height: 60vh;
}

.cart-page a,
.payment-page a {
    color: var(--red);
}

/* ── Full-width header banners ───────────────────────────────────────────── */
.cart-header-banner,
.page-header-banner {
    position: relative;
    background: var(--red);
    text-align: center;
    overflow: hidden;
}

.cart-header-banner::before,
.page-header-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    z-index: 0;
}

.cart-header-banner::after,
.page-header-banner::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: .16;
    z-index: 0;
}

.cart-header-inner,
.page-header-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 44px 24px 40px;
}

/* yellow rule pinned to the bottom of the banner */
.cart-header-banner .rule,
.page-header-banner .rule {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
    z-index: 2;
}

.cart-header-tag,
.page-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 12px;
}

.cart-header-tag svg,
.page-header-tag svg {
    color: var(--yellow);
}

.cart-header-title,
.page-header-title {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1;
    margin: 0 0 10px;
}

.cart-header-count {
    display: inline-flex;
    align-items: center;
    font-family: var(--mono);
    font-size: .78rem;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    padding: .35rem .85rem;
}

/* ── Two-column layouts ──────────────────────────────────────────────────── */
.cart-layout,
.page-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 384px;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {

    .cart-layout,
    .page-layout {
        grid-template-columns: 1fr;
    }
}

/* ── Cards (cart, form, payment, summary) ────────────────────────────────── */
.cart-card,
.form-card,
.z-card,
.summary-card {
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(228, 25, 47, .07);
}

.cart-card-header,
.form-card-header,
.z-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 22px;
    border-bottom: 2px solid var(--red-line);
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
}

.cart-card-header .hline,
.form-card-header .hline,
.z-card-header .hline {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--red-line) 0 6px, transparent 6px 12px);
}

.form-card-body,
.z-card-body {
    padding: 22px;
}

/* ── Cart table ──────────────────────────────────────────────────────────── */
.table-responsive {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.cart-table thead th {
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-align: left;
    padding: 14px 16px;
    border-bottom: 2px solid var(--red-line);
    white-space: nowrap;
}

.cart-table tbody td {
    padding: 16px;
    border-bottom: 1px dashed var(--red-line);
    vertical-align: middle;
}

.cart-table tbody tr:last-child td {
    border-bottom: none;
}

.cart-item-name {
    font-family: var(--display);
    font-weight: 700;
    letter-spacing: -.01em;
    color: var(--text);
    font-size: .98rem;
}

.cart-item-price,
.cart-subtotal-cell,
.cart-subtotal {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--text);
    white-space: nowrap;
}

.cart-subtotal-cell,
.cart-subtotal {
    font-weight: 600;
    color: var(--red);
}

/* ── Quantity stepper (cart + anywhere reused) ───────────────────────────── */
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--red-line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    width: 34px;
    height: 38px;
    border: none;
    background: var(--red-wash);
    color: var(--red);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease;
}

.qty-btn:hover {
    background: #F9DADC;
}

.qty-input {
    width: 46px;
    height: 38px;
    border: none;
    border-inline: 2px solid var(--red-line);
    text-align: center;
    font-family: var(--mono);
    font-weight: 600;
    color: var(--text);
    background: var(--white);
    -moz-appearance: textfield;
    padding: 0;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ── Remove button ───────────────────────────────────────────────────────── */
.btn-remove {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--red-line);
    border-radius: 10px;
    background: var(--white);
    color: var(--red);
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.btn-remove:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* ── Card footers / secondary buttons ────────────────────────────────────── */
.cart-card-footer {
    padding: 16px 22px;
    border-top: 2px solid var(--red-line);
    background: var(--cream);
}

.btn-continue,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 600;
    font-size: .9rem;
    color: var(--red);
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: 999px;
    padding: 11px 20px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-continue:hover,
.btn-back:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

/* ── Form fields ─────────────────────────────────────────────────────────── */
.field-group {
    margin-bottom: 18px;
}

.field-group:last-child {
    margin-bottom: 0;
}

.field-label {
    display: block;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 8px;
}

.field-label .req {
    color: var(--red);
}

.field-input,
.field-textarea {
    width: 100%;
    font-family: var(--body);
    font-size: .95rem;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.field-textarea {
    resize: vertical;
    line-height: 1.5;
}

.field-input::placeholder,
.field-textarea::placeholder {
    color: #C9A9A6;
}

.field-input:focus,
.field-textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 .2rem rgba(228, 25, 47, .15);
}

.field-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: .78rem;
    color: var(--text-muted);
}

.field-hint svg {
    color: var(--red);
    flex-shrink: 0;
}

/* ── Inline alert (login prompt / errors) ────────────────────────────────── */
.zorpido-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--red-wash);
    border-left: 4px solid var(--red);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: .9rem;
    color: var(--red-deep);
}

.zorpido-alert svg {
    color: var(--red);
}

.zorpido-alert a {
    font-weight: 700;
}

/* ── Summary card ────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
    .summary-card {
        position: sticky;
        top: 20px;
    }
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    border-bottom: 2px solid var(--red-line);
}

.summary-header .dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    transform: rotate(45deg);
}

.summary-header-title {
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red);
}

.summary-body {
    padding: 20px 22px;
}

.summary-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    font-size: .92rem;
}

.summary-row .label {
    color: var(--text-muted);
}

.summary-row .val {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    color: var(--text);
    font-weight: 500;
}

.summary-sec-title {
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 4px 0 6px;
}

.cart-item-row {
    align-items: flex-start;
}

.empty-row {
    color: var(--text-muted);
    justify-content: center;
}

.detail-label {
    display: block;
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 12px;
}

.detail-value {
    color: var(--text);
    font-size: .95rem;
    margin: 3px 0 0;
    overflow-wrap: break-word;
}

/* dashed divider = receipt tear line */
.summary-divider {
    height: 1px;
    margin: 14px 0;
    background: repeating-linear-gradient(90deg, var(--red-line) 0 6px, transparent 6px 12px);
}

.summary-total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-top: 4px;
}

.summary-total-label {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
    letter-spacing: .01em;
}

.summary-total-val {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.55rem;
    color: var(--red);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.02em;
}

/* ── Coupon ──────────────────────────────────────────────────────────────── */
.coupon-wrap {
    background: var(--cream);
    border: 1px dashed var(--red-line);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
}

.coupon-label {
    display: block;
    font-family: var(--mono);
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.coupon-row {
    display: flex;
    gap: 8px;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: .85rem;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: 10px;
    padding: 9px 12px;
    text-transform: uppercase;
}

.coupon-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 .18rem rgba(228, 25, 47, .14);
}

.coupon-btn {
    flex-shrink: 0;
    font-family: var(--body);
    font-weight: 700;
    font-size: .85rem;
    color: var(--white);
    background: var(--red);
    border: 2px solid var(--red);
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer;
    box-shadow: 0 3px 0 var(--red-dark);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.coupon-btn:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--red-deep);
}

.coupon-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--red-deep);
}

.coupon-btn:disabled {
    opacity: .6;
    cursor: default;
    box-shadow: none;
}

.coupon-msg {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: .78rem;
    min-height: 1em;
}

/* ── Primary CTAs (Continue to Payment / Place Order) ────────────────────── */
.btn-checkout,
.btn-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    background: var(--red);
    border: 2px solid var(--red);
    border-radius: 999px;
    padding: 15px 22px;
    min-height: 54px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 0 var(--red-dark);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-checkout:hover,
.btn-submit:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--red-deep);
}

.btn-checkout:active,
.btn-submit:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--red-deep);
}

.summary-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 14px 0 0;
    font-family: var(--mono);
    font-size: .72rem;
    letter-spacing: .04em;
    color: var(--text-muted);
}

.summary-note svg {
    color: var(--red);
}

/* ── Form actions (payment) ──────────────────────────────────────────────── */
.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.form-actions .btn-submit {
    width: auto;
    flex: 1;
    min-width: 180px;
}

/* ── Payment options ─────────────────────────────────────────────────────── */
.payment-option {
    position: relative;
    display: block;
    border: 2px solid var(--red-line);
    border-radius: var(--radius-sm);
    padding: 18px 18px 16px;
    margin-bottom: 14px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.payment-option:hover {
    border-color: var(--red);
    transform: translateY(-2px);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-option.selected {
    border-color: var(--red);
    background: var(--red-wash);
    box-shadow: 0 6px 0 -2px rgba(228, 25, 47, .18);
}

.payment-option-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    font-family: var(--mono);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red-deep);
    background: var(--yellow);
    border-radius: 999px;
    padding: .25rem .6rem;
}

.payment-option-title {
    font-family: var(--display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
    padding-right: 84px;
}

.payment-option-desc {
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* file input + inline online panel niceties */
.form-control {
    font-family: var(--body);
    border: 2px solid var(--red-line) !important;
    border-radius: 10px !important;
    color: var(--text);
}

.form-control:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 .2rem rgba(228, 25, 47, .15) !important;
}

/* recolour the inline blue "Replace Image" link to brand */
#screenshot-preview-container button {
    color: var(--red) !important;
}

/* ── Empty cart state ────────────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 56px 24px;
}

.empty-icon {
    font-size: 2.75rem;
    margin-bottom: 14px;
}

.empty-state h4 {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text);
    font-size: 1.5rem;
    margin: 0 0 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: .95rem;
    margin: 0;
}

.empty-state a {
    color: var(--red);
    font-weight: 700;
}

/* ── Bootstrap "ordering disabled" alert → on-brand ──────────────────────── */
.alert-warning {
    background: var(--yellow-soft) !important;
    border: none !important;
    border-top: 3px solid var(--yellow) !important;
    color: var(--red-deep) !important;
}

.alert-warning .bi {
    color: var(--red) !important;
}

/* ── Reduced motion ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .cart-page *,
    .payment-page *,
    .btn-checkout,
    .btn-submit,
    .payment-option,
    .qty-btn,
    .btn-remove,
    .btn-continue,
    .btn-back,
    .coupon-btn {
        transition-duration: .01ms !important;
    }
}

/* ── Small screens ───────────────────────────────────────────────────────── */
@media (max-width: 560px) {

    .cart-header-inner,
    .page-header-inner {
        padding: 34px 20px 32px;
    }

    .form-card-body,
    .z-card-body,
    .summary-body {
        padding: 18px;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions .btn-back,
    .form-actions .btn-submit {
        width: 100%;
    }
}

/* ============================================================================
   ORDER SUCCESS PAGE  (order_success.html)
   Same brand system as the cart/payment pages above: red / yellow / white,
   no black, no grey, no green. Reuses the :root tokens already defined.
   ========================================================================== */

.success-page {
    background: var(--cream);
    font-family: var(--body);
    color: var(--text);
    min-height: 55vh;
    padding-bottom: 80px;
}

/* ── Banner (brand red, not green) ───────────────────────────────────────── */
.success-banner {
    position: relative;
    background: var(--red);
    text-align: center;
    overflow: hidden;
    font-family: var(--body);
}

.success-banner-dots {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
}

.success-banner::after {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--yellow);
    opacity: .18;
    z-index: 0;
}

.success-banner .rule {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: var(--yellow);
    z-index: 2;
}

.success-banner-inner {
    position: relative;
    z-index: 1;
    padding: 64px 24px 56px;
}

.success-check {
    width: 84px;
    height: 84px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 0 var(--red-dark);
    animation: successPop .6s cubic-bezier(.34, 1.56, .64, 1) both;
}

.success-check svg {
    width: 42px;
    height: 42px;
    color: var(--red);
}

.success-headline {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.03em;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--white);
    line-height: 1;
    margin: 0 0 10px;
    animation: successRise .5s .15s cubic-bezier(.22, 1, .36, 1) both;
}

.success-sub {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, .9);
    margin: 0;
    animation: successRise .5s .22s cubic-bezier(.22, 1, .36, 1) both;
}

/* ── Content column ──────────────────────────────────────────────────────── */
.success-content {
    max-width: 680px;
    margin: 40px auto 80px;
    padding: 0 24px;
}

/* ── Order number card ───────────────────────────────────────────────────── */
.order-number-card {
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(228, 25, 47, .08);
    margin-bottom: 20px;
    animation: successFade .45s .1s ease both;
}

.order-number-header {
    background: var(--yellow);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.order-number-header .dot {
    width: 8px;
    height: 8px;
    background: var(--red);
    transform: rotate(45deg);
}

.order-number-header-title {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--red-deep);
}

.order-number-body {
    padding: 28px;
    text-align: center;
}

.order-num-label {
    display: block;
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.order-num-value {
    display: block;
    font-family: var(--display);
    font-weight: 800;
    font-size: 2.1rem;
    color: var(--red);
    line-height: 1;
    margin-bottom: 18px;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
}

.order-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--cream);
    border: 1px solid var(--red-line);
    border-radius: 12px;
    padding: 12px 18px;
    font-size: .88rem;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto 10px;
}

.order-info-row:last-child {
    margin-bottom: 0;
}

.order-info-row svg {
    flex-shrink: 0;
    color: var(--red);
}

.order-info-row strong {
    color: var(--text);
    font-weight: 600;
}

/* ── What happens next ───────────────────────────────────────────────────── */
.next-steps-card {
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(228, 25, 47, .08);
    margin-bottom: 20px;
    animation: successFade .45s .2s ease both;
}

.next-steps-header {
    background: var(--red-deep);
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.next-steps-header span:not(.hline) {
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--yellow);
}

.next-steps-header .hline {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .28) 0 6px, transparent 6px 12px);
}

.next-steps-body {
    padding: 0;
}

.steps-list {
    list-style: none;
    margin: 0;
    padding: 24px 28px;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--red-line);
    font-size: .92rem;
    color: var(--text);
    line-height: 1.5;
}

.steps-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.steps-list strong {
    color: var(--text);
    font-weight: 700;
}

.step-bullet {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    background: var(--yellow);
    color: var(--red-deep);
    font-family: var(--mono);
    font-weight: 600;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-bullet.done {
    background: var(--red);
    color: var(--white);
}

/* ── CTAs ────────────────────────────────────────────────────────────────── */
.cta-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    animation: successFade .45s .3s ease both;
}

.btn-primary-cta {
    flex: 1;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--body);
    font-weight: 700;
    font-size: .95rem;
    color: var(--red-deep);
    background: var(--yellow);
    border: 2px solid var(--yellow);
    border-radius: 999px;
    padding: 14px 24px;
    text-decoration: none;
    box-shadow: 0 4px 0 var(--yellow-dark);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn-primary-cta:hover {
    background: #FFD86A;
    color: var(--red-deep);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--yellow-dark);
}

.btn-primary-cta:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 var(--yellow-dark);
}

.btn-secondary-cta {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--body);
    font-weight: 600;
    font-size: .9rem;
    color: var(--red);
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: 999px;
    padding: 13px 24px;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.btn-secondary-cta:hover {
    border-color: var(--red);
    color: var(--red);
    transform: translateY(-2px);
}

/* ── Order-not-found state ───────────────────────────────────────────────── */
.not-found-card {
    background: var(--white);
    border: 2px solid var(--red-line);
    border-radius: var(--radius);
    box-shadow: 0 6px 20px rgba(228, 25, 47, .08);
    padding: 48px 28px;
    text-align: center;
    animation: successFade .45s ease both;
}

.not-found-icon {
    width: 72px;
    height: 72px;
    background: var(--red-wash);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 18px;
}

.not-found-title {
    font-family: var(--display);
    font-weight: 800;
    letter-spacing: -.02em;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 8px;
}

/* ── Confetti (JS injects spans; CSS supplies the animation) ──────────────── */
.confetti-wrap {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.confetti-wrap span {
    position: absolute;
    top: -10px;
    width: 10px;
    height: 10px;
    opacity: 0;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% {
        opacity: 1;
        transform: translateY(0) rotate(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateY(100vh) rotate(720deg) scale(.5);
    }
}

@keyframes successPop {
    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successRise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .success-check,
    .success-headline,
    .success-sub,
    .order-number-card,
    .next-steps-card,
    .cta-row,
    .not-found-card {
        animation: none !important;
    }

    .confetti-wrap {
        display: none !important;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        transition-duration: .01ms !important;
    }
}

@media (max-width: 560px) {
    .success-banner-inner {
        padding: 48px 20px 44px;
    }

    .cta-row {
        flex-direction: column;
    }

    .btn-primary-cta,
    .btn-secondary-cta {
        width: 100%;
        flex: 0 0 auto;
    }
}