/*
 * Shesoft.pk — Checkout Modal v3
 * Clean, readable, professional — matches theme's Inter/Montserrat system.
 * No tiny fonts. Consistent 8px spacing grid.
 */

/* ─────────────────────────────────────────
   SCOPED RESET  (only box-sizing + font)
───────────────────────────────────────── */
#shesoftCheckoutOverlay *,
#shesoftCheckoutOverlay *::before,
#shesoftCheckoutOverlay *::after {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

/* Force Inter everywhere inside the modal */
#shesoftCheckoutOverlay {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

/* ─────────────────────────────────────────
   OVERLAY BACKDROP
───────────────────────────────────────── */
.sco-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(44, 14, 38, 0.70);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: sco-fade-in 0.2s ease;
}

@keyframes sco-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (min-width: 640px) {
    .sco-overlay {
        align-items: center;
        padding: 20px;
    }
}

/* ─────────────────────────────────────────
   MODAL CARD
───────────────────────────────────────── */
.sco-modal {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -8px 48px rgba(44, 14, 38, 0.2);
    display: flex;
    flex-direction: column;
    max-height: 92svh;
    max-height: 92vh; /* fallback for browsers without svh */
    overflow: hidden;
    animation: sco-slide-up 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes sco-slide-up {
    from { transform: translateY(80px); opacity: 0.3; }
    to   { transform: translateY(0);    opacity: 1;   }
}

@media (min-width: 640px) {
    .sco-modal {
        border-radius: 20px;
        max-height: 88vh;
        box-shadow: 0 20px 60px rgba(44, 14, 38, 0.24);
        animation: sco-drop-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }
}

@keyframes sco-drop-in {
    from { transform: translateY(-16px) scale(0.97); opacity: 0.3; }
    to   { transform: translateY(0)     scale(1);    opacity: 1;   }
}

/* Drag handle pill — mobile only */
.sco-modal::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: #ddd;
    margin: 12px auto 0;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .sco-modal::before { display: none; }
}

/* ─────────────────────────────────────────
   HEADER BAR
───────────────────────────────────────── */
.sco-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px 12px;
    border-bottom: 1px solid #f0e8e8;
    flex-shrink: 0;
}

.sco-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sco-lock-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c0e26;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.sco-brand-name {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #2c0e26;
    letter-spacing: 0;
}

.sco-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid #e0d0d0;
    background: transparent;
    color: #888;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
    padding: 0;
}

.sco-close-btn:hover {
    background: #2c0e26;
    color: #fff;
    border-color: #2c0e26;
}

/* ─────────────────────────────────────────
   STEP PROGRESS BAR
   Two-row layout: circles+lines perfectly level,
   labels sit cleanly below — zero margin hacks.
───────────────────────────────────────── */
.sco-steps {
    padding: 16px 24px 14px;
    background: #faf8f9;
    border-bottom: 1px solid #f0e8e8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ROW 1: circles + connector lines */
.sco-steps-track {
    display: flex;
    align-items: center;    /* all items on same vertical center */
    gap: 0;
}

/* Numbered circle */
.sco-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ede5eb;
    border: 2px solid #d8ccd4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #b09ab0;
    font-family: "Montserrat", sans-serif;
    transition: background 0.25s, border-color 0.25s,
                color 0.25s, box-shadow 0.25s;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Active circle */
.sco-step-circle.active {
    background: #2c0e26;
    border-color: #2c0e26;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(44, 14, 38, 0.12);
}

/* Completed circle — show checkmark, hide number */
.sco-step-circle.completed {
    background: #bd7370;
    border-color: #bd7370;
    color: transparent;     /* hide the number text */
    font-size: 0;           /* font-size 0 to hide text node */
}

.sco-step-circle.completed::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Connector line — flex: 1 fills available space between circles */
.sco-step-line {
    flex: 1;
    height: 2px;
    background: #e8dce6;
    border-radius: 1px;
    transition: background 0.28s ease;
    /* no margin-top hack needed — align-items: center on parent does it */
}

.sco-step-line.filled {
    background: #bd7370;
}

/* ROW 2: labels — space-between + flex extras to align under circles */
.sco-steps-labels {
    display: flex;
    align-items: center;
    /* Match the track layout: circles are 32px, lines fill rest.
       Use justify-content + fixed margins to center each label.
       Because we have 3 circles (32px) + 2 lines (flex:1),
       we just use space-between and let flex do the math. */
    justify-content: space-between;
    padding: 0 4px; /* slight inset so labels sit under circle edges */
}

.sco-step-label {
    font-size: 11px;
    font-weight: 600;
    color: #c0a8bc;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
    transition: color 0.25s;
    line-height: 1;
    font-family: "Inter", sans-serif;
    text-align: center;
    /* Each label naturally aligns under its circle */
    flex: 1;
}

/* First and last labels align to edges */
.sco-step-label:first-child { text-align: left; }
.sco-step-label:last-child  { text-align: right; }
.sco-step-label:nth-child(2) { text-align: center; }

.sco-step-label.active    { color: #2c0e26; font-weight: 700; }
.sco-step-label.completed { color: #bd7370; }

/* ─────────────────────────────────────────
   PANEL LAYOUT
───────────────────────────────────────── */
.sco-panel {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.sco-panel.active {
    display: flex;
}

.sco-panel-inner {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 20px 8px;
}

.sco-panel-inner::-webkit-scrollbar { width: 4px; }
.sco-panel-inner::-webkit-scrollbar-track { background: transparent; }
.sco-panel-inner::-webkit-scrollbar-thumb { background: rgba(189,115,112,0.2); border-radius: 4px; }

@media (min-width: 640px) {
    .sco-panel-inner { padding: 24px 24px 8px; }
}

/* Panel section heading */
.sco-panel-title {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #2c0e26;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0e8e8;
    line-height: 1.3;
}

.sco-panel-title i {
    color: #bd7370;
    font-size: 15px;
    width: 18px;
    text-align: center;
}

/* ─────────────────────────────────────────
   STEP 1 — ORDER REVIEW
───────────────────────────────────────── */
.sco-loading-state {
    text-align: center;
    padding: 36px 0;
    font-size: 14px;
    color: #999;
    font-family: inherit;
}

.sco-loading-state i {
    color: #bd7370;
    margin-right: 8px;
}

.sco-empty-cart {
    text-align: center;
    padding: 32px 16px;
}

.sco-empty-cart i {
    font-size: 36px;
    color: rgba(189,115,112,0.3);
    display: block;
    margin-bottom: 12px;
}

.sco-empty-cart p {
    font-size: 14px;
    color: #999;
    margin: 0;
}

/* Cart item row */
.sco-cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f5eded;
}

.sco-cart-item:last-child {
    border-bottom: none;
}

.sco-item-img-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #fde8e5;
    border: 1px solid #f0e0de;
}

.sco-item-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sco-item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sco-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #2c0e26;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin: 0;
}

.sco-item-meta {
    font-size: 12px;
    color: #bd7370;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.sco-item-pack-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    background: rgba(189,115,112,0.1);
    color: #bd7370;
    border-radius: 4px;
    width: fit-content;
}

.sco-item-price-group {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
}

.sco-item-qty {
    font-size: 12px;
    color: #aaa;
    font-weight: 400;
}

.sco-item-total {
    font-size: 15px;
    font-weight: 700;
    color: #2c0e26;
}

/* Totals summary box */
.sco-totals {
    background: #faf8f9;
    border: 1px solid #f0e8e8;
    border-radius: 12px;
    padding: 14px 16px;
    margin-top: 16px;
}

.sco-totals-final {
    margin-top: 14px;
}

.sco-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    padding: 6px 0;
    margin: 0;
    line-height: 1.4;
}

.sco-totals-row + .sco-totals-row {
    border-top: 1px dashed #f0e0de;
}

.sco-totals-total {
    font-size: 16px;
    font-weight: 700;
    color: #2c0e26;
    border-top: 1.5px solid #e8d8d8 !important;
    padding-top: 10px !important;
    margin-top: 4px;
}

/* Trust badges */
.sco-trust-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 8px 10px;
    gap: 8px;
    margin-top: 4px;
}

.sco-trust-bar span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-align: center;
    line-height: 1.3;
    font-family: inherit;
}

.sco-trust-bar i {
    font-size: 16px;
    color: #bd7370;
}

/* ─────────────────────────────────────────
   STEP 2 — DELIVERY DETAILS FORM
───────────────────────────────────────── */
.sco-form-row-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.sco-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.sco-field-group:last-child {
    margin-bottom: 4px;
}

.sco-form-row-half .sco-field-group {
    margin-bottom: 0;
}

/* Field label */
.sco-field-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #2c0e26;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    font-family: inherit;
}

.sco-required {
    color: #bd7370;
}

/* Text inputs */
.sco-field-group input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 400;
    color: #2c0e26;
    background: #fff;
    border: 1.5px solid #e2d4d0;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    line-height: 1;
    margin: 0;
}

.sco-field-group input::placeholder {
    color: #bbb;
    font-size: 14px;
    font-weight: 400;
}

.sco-field-group input:focus {
    border-color: #2c0e26;
    box-shadow: 0 0 0 3px rgba(44, 14, 38, 0.07);
    outline: none;
}

.sco-field-group input.sco-input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.08);
}

/* Field error message */
.sco-field-error {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    font-weight: 500;
    line-height: 1.3;
    margin: 0;
    min-height: 16px;
    font-family: inherit;
}

/* Phone field */
.sco-phone-wrapper {
    display: flex;
    align-items: stretch;
    border: 1.5px solid #e2d4d0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    height: 48px;
}

.sco-phone-wrapper:focus-within {
    border-color: #2c0e26;
    box-shadow: 0 0 0 3px rgba(44, 14, 38, 0.07);
}

.sco-phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #4d3a48;
    background: #faf8f9;
    border-right: 1.5px solid #e8dce6;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    line-height: 1;
    letter-spacing: 0;
}

.sco-phone-wrapper input {
    flex: 1;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    height: 100%;
    padding: 0 14px;
    font-size: 15px;
    background: transparent;
    font-family: inherit;
    color: #2c0e26;
    margin: 0;
}

.sco-phone-wrapper input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.sco-phone-wrapper input::placeholder {
    color: #bbb;
    font-size: 14px;
}

/* City field with badge */
.sco-city-wrapper {
    position: relative;
}

.sco-city-wrapper input {
    padding-right: 110px;
}

.sco-city-shipping-badge {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 20px;
    white-space: nowrap;
    pointer-events: none;
    transition: all 0.2s ease;
    line-height: 1.3;
    font-family: inherit;
}

.sco-city-shipping-badge.free-shipping {
    background: #edf7ee;
    color: #2e7d32;
    border: 1px solid #b2dfb3;
}

.sco-city-shipping-badge.paid-shipping {
    background: #fff8f0;
    color: #e65100;
    border: 1px solid #ffcc80;
}

/* Discreet packaging toggle card */
.sco-checkbox-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #faf8f9;
    border: 1.5px solid #e8dce6;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    margin-top: 6px;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.sco-checkbox-card:has(input:checked) {
    border-color: #2c0e26;
    background: #fdf0f5;
}

.sco-checkbox-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.sco-checkbox-icon {
    width: 38px;
    height: 38px;
    background: #2c0e26;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    flex-shrink: 0;
}

.sco-checkbox-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sco-checkbox-text strong {
    font-size: 14px;
    font-weight: 700;
    color: #2c0e26;
    font-family: inherit;
    display: block;
    line-height: 1.3;
}

.sco-checkbox-text small {
    font-size: 12px;
    color: #888;
    display: block;
    line-height: 1.3;
    font-family: inherit;
    font-weight: 400;
}

.sco-checkbox-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #ddd0d8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sco-checkbox-card:has(input:checked) .sco-checkbox-check {
    background: #2c0e26;
    border-color: #2c0e26;
    color: #fff;
}

/* ─────────────────────────────────────────
   STEP 3 — CONFIRM ORDER
───────────────────────────────────────── */
.sco-confirm-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #faf8f9;
    border: 1.5px solid #e8dce6;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 14px;
}

.sco-confirm-card-icon {
    width: 38px;
    height: 38px;
    background: #2c0e26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

.sco-confirm-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sco-confirm-card-body strong {
    font-size: 15px;
    font-weight: 700;
    color: #2c0e26;
    display: block;
    line-height: 1.3;
    font-family: inherit;
}

.sco-confirm-card-body span {
    font-size: 13px;
    color: #777;
    display: block;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
}

.sco-confirm-edit-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid #e0d0d8;
    border-radius: 8px;
    background: transparent;
    color: #bd7370;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
    flex-shrink: 0;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.sco-confirm-edit-btn:hover {
    background: #2c0e26;
    border-color: #2c0e26;
    color: #fff;
}

/* Compact items list */
.sco-confirm-items {
    background: #faf8f9;
    border: 1px solid #f0e8e8;
    border-radius: 10px;
    padding: 4px 16px;
    margin-bottom: 0;
}

.sco-confirm-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #555;
    padding: 8px 0;
    margin: 0;
}

.sco-confirm-item:not(:last-child) {
    border-bottom: 1px dashed #f0e0de;
}

.sco-confirm-item-name {
    font-weight: 600;
    color: #2c0e26;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
}

.sco-confirm-item-qty {
    font-size: 12px;
    color: #aaa;
    flex-shrink: 0;
}

.sco-confirm-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #2c0e26;
    flex-shrink: 0;
}

/* COD badge */
.sco-payment-method {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f0faf1;
    border: 1.5px solid #b2dfb3;
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #1b5e20;
    font-family: inherit;
}

.sco-payment-method i {
    font-size: 16px;
    color: #2e7d32;
    flex-shrink: 0;
}

.sco-cod-badge {
    margin-left: auto;
    font-size: 11px;
    background: #2e7d32;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 700;
    white-space: nowrap;
    font-family: inherit;
}

/* Error message */
.sco-order-error {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: #fdf3f2;
    border: 1.5px solid rgba(231,76,60,0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-top: 14px;
    font-size: 13px;
    color: #c0392b;
    font-weight: 500;
    line-height: 1.5;
    font-family: inherit;
}

.sco-order-error i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 14px;
}

/* ─────────────────────────────────────────
   FOOTER — STICKY ACTION BUTTONS
───────────────────────────────────────── */
.sco-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-top: 1px solid #f0e8e8;
    background: #fff;
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .sco-footer { padding: 16px 24px; }
}

/* Back / secondary button */
.sco-btn-secondary {
    height: 48px;
    padding: 0 18px;
    border: 1.5px solid #e0d0d8;
    border-radius: 10px;
    background: transparent;
    color: #4d3a48;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    padding-top: 0;
    padding-bottom: 0;
}

.sco-btn-secondary:hover {
    background: #fde8e5;
    border-color: #bd7370;
    color: #2c0e26;
}

/* Continue / primary button */
.sco-btn-primary {
    flex: 1;
    height: 48px;
    padding: 0 20px;
    border: none;
    border-radius: 10px;
    background: #2c0e26;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(44, 14, 38, 0.24);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

.sco-btn-primary:hover {
    background: #3d1535;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 14, 38, 0.32);
}

.sco-btn-primary:active {
    transform: translateY(0);
}

/* Place Order (green CTA) */
.sco-btn-place-order {
    flex: 1;
    height: 52px;
    padding: 0 20px;
    border: none;
    border-radius: 12px;
    background: #1b6e20;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(27, 94, 32, 0.3);
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    letter-spacing: 0;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    line-height: 1;
}

.sco-btn-place-order:hover {
    background: #155218;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(27, 94, 32, 0.38);
}

.sco-btn-place-order:active {
    transform: translateY(0);
}

.sco-btn-place-order:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.sco-place-order-inner,
.sco-place-order-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    line-height: 1;
}

/* ─────────────────────────────────────────
   BODY SCROLL LOCK
───────────────────────────────────────── */
body.sco-modal-open {
    overflow: hidden !important;
}

/* iOS Safari fix — prevent background scroll */
@supports (-webkit-touch-callout: none) {
    body.sco-modal-open {
        position: fixed;
        width: 100%;
        height: 100%;
    }
}
