/* ============================================================
   OrderAo — Modern design system
   ============================================================ */
:root {
    --primary: #16a34a;
    --primary-600: #15803d;
    --primary-700: #166534;
    --primary-soft: rgba(22, 163, 74, 0.09);
    --accent: #16a34a;
    --danger: #ef4444;
    --warning: #f59e0b;

    --bg: #eef1f8;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --border: #e2e8f0;

    --radius-lg: 24px;
    --radius: 16px;
    --radius-sm: 12px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.14);

    --ring: 0 0 0 4px rgba(22, 163, 74, 0.18);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', 'Roboto', system-ui, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 100% -10%, rgba(21, 128, 61, 0.10), transparent 60%),
        radial-gradient(1000px 500px at -10% 0%, rgba(22, 163, 74, 0.12), transparent 55%),
        var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ---------- Layout ---------- */
.container {
    max-width: 920px;
    margin: 28px auto;
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

header {
    text-align: center;
    margin-bottom: 26px;
}

/* ---- Site header (logo + collab stacked) ---- */
.site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.site-header .brand-logo {
    height: 48px;
}

.collab-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.collab-tag b {
    font-weight: 700;
    color: var(--primary);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    font-size: 28px;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--primary), #15803d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #15803d);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 16px;
    box-shadow: var(--shadow-sm);
    -webkit-text-fill-color: #fff;
}

.brand-logo {
    height: 54px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
}

.splash .brand-logo {
    height: 72px;
    animation: pop 1.2s var(--ease);
}

header h2 {
    font-size: 20px;
    color: var(--muted);
    font-weight: 600;
    margin: 10px 0 0;
}

h1, h2, h3 {
    color: var(--text);
    font-weight: 700;
}

h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

/* ---------- Stepper / progress ---------- */
.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto 28px;
    max-width: 520px;
    width: 100%;
    position: relative;
    padding: 0 4px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 48px;
    right: 48px;
    height: 3px;
    background: var(--border);
    z-index: 0;
    border-radius: 3px;
}

.progress-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    flex: 1;
    min-width: 0;
    transition: color 0.3s var(--ease);
}

.progress-step .dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    transition: all 0.35s var(--ease);
}

.progress-step > span:last-child {
    text-align: center;
    line-height: 1.2;
    padding: 0 4px;
}

.progress-step.active {
    color: var(--primary);
}

.progress-step.active .dot {
    background: linear-gradient(135deg, var(--primary), #15803d);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--ring);
    transform: scale(1.05);
}

.progress-step.done .dot {
    background: var(--accent);
    border-color: transparent;
    color: #fff;
}

/* ---------- Sections ---------- */
.section {
    display: none;
    animation: sectionIn 0.45s var(--ease);
}

.section.active {
    display: block;
}

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

/* ---------- Product ---------- */
.product-media {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 460px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.product-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.product-media img.loaded {
    opacity: 1;
}

.product-media .img-skeleton {
    position: absolute;
    inset: 0;
}

.product-info {
    text-align: center;
}

.product-info > h2 {
    margin-bottom: 6px;
}

.tagline {
    color: var(--muted);
    margin: 0 auto;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.55;
}

/* ---- Step 1: product hero ---- */
.product-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.product-hero__intro {
    width: 100%;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-700);
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.product-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.product-title span {
    color: var(--primary);
}

.product-hero__footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    display: grid;
    gap: 8px;
}

.feature-list.feature-2col {
    grid-template-columns: 1fr 1fr;
    gap: 8px 10px;
}

.feature-list li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: #334155;
    text-align: left;
}

.feature-list li::before {
    content: '✓';
    flex: 0 0 18px;
    height: 18px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
}

.price-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-align: center;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
    padding: 10px 18px;
    background: var(--primary-soft);
    border-radius: 999px;
    font-weight: 800;
    color: var(--primary-700);
    font-size: 20px;
}

.price-tag small {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.price-note {
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}

.product-hero__footer .primary-btn {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 13px 24px;
    font-size: 15px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--border);
    white-space: nowrap;
}

/* ---------- Size selection ---------- */
.size-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0;
}

.size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 4px;
    min-width: 0;
    text-align: center;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.1s var(--ease);
}

.size-meta { display: flex; flex-direction: column; gap: 0; }

/* header row: title + size-chart button */
.order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.order-head h2 { margin: 0; font-size: 18px; }
.order-head #size-chart-btn { margin: 0; flex: none; padding: 7px 14px; font-size: 13px; }

/* compact stepper inside a size card */
.size-grid .stepper {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    padding: 2px 3px;
    gap: 2px;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.size-grid .stepper button {
    width: 24px;
    height: 24px;
    min-width: 24px;
    flex-shrink: 0;
    font-size: 15px;
    box-shadow: none;
}

.size-grid .stepper input {
    width: 28px;
    min-width: 28px;
    flex: 0 0 28px;
    padding: 0;
    font-size: 13px;
    text-align: center;
}

/* horizontal summary bar */
.summary-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    padding: 12px 18px;
    margin: 14px 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.sb-item { display: flex; flex-direction: column; gap: 1px; }
.sb-item .muted { font-size: 12px; }
.sb-item strong { font-size: 16px; font-weight: 700; }
.sb-item.grand { margin-left: auto; text-align: right; }
.sb-item.grand strong { font-size: 20px; color: var(--primary-700); }

.pay-lines h3 { margin: 0 0 8px; font-size: 15px; }
.pay-title { margin: 0 0 12px; font-size: 15px; }

.size-card.selected {
    border-color: var(--primary);
    box-shadow: var(--ring);
    background: linear-gradient(0deg, var(--primary-soft), var(--primary-soft)), var(--surface);
}

.size-card .size-name {
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
}

.size-card .size-sub {
    display: block;
    font-size: 10px;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.stepper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--surface-2);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--border);
}

.stepper button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--surface);
    color: var(--primary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.1s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}

.stepper button:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.stepper button:active:not(:disabled) {
    transform: scale(0.9);
}

.stepper button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stepper input {
    width: 44px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    -moz-appearance: textfield;
    appearance: textfield;
}

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

.stepper input:focus {
    outline: none;
}

/* ---------- Summary card ---------- */
.summary-card {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-row.total {
    border-top: 1px dashed var(--border);
    margin-top: 8px;
    padding-top: 14px;
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-700);
}

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

/* ---------- Forms ---------- */
.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
    color: #334155;
}

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}

select:disabled {
    background: var(--surface-2);
    color: #94a3b8;
    cursor: not-allowed;
}

.field-hint {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 6px;
}

.field-error {
    font-size: 12.5px;
    color: var(--danger);
    margin-top: 6px;
    min-height: 1px;
}

input.invalid,
select.invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

/* Select with skeleton overlay */
.select-wrap {
    position: relative;
}

.select-wrap .skeleton {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
}

/* File upload */
.file-drop {
    position: relative;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    background: var(--surface-2);
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
    cursor: pointer;
}

.file-drop:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.file-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-drop .file-icon {
    font-size: 30px;
}

.file-drop .file-text {
    font-weight: 600;
    margin-top: 6px;
}

.file-preview {
    display: none;
    margin-top: 14px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: left;
}

.file-preview.show {
    display: flex;
}

.file-preview img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.file-preview .fp-name {
    font-weight: 600;
    font-size: 14px;
    word-break: break-all;
}

/* ---------- Payment / QR ---------- */
.payment-card {
    display: none;
    margin: 20px 0;
    padding: 20px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #fff, var(--surface-2));
    border: 1px solid var(--border);
}

.payment-card.show {
    display: block;
    animation: sectionIn 0.4s var(--ease);
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
}

.pay-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 14px;
}

.pay-line span:first-child { color: var(--muted); }
.pay-line span:last-child { font-weight: 600; text-align: right; }

.qr-box {
    width: 170px;
    height: 170px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-2);
    display: grid;
    place-items: center;
    position: relative;
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.qr-box img.loaded { opacity: 1; }

.note-box {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #92600a;
    font-size: 14px;
    margin: 14px 0;
}

.info-box {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.2);
    color: var(--primary-700);
    font-size: 14px;
    margin: 14px 0;
}

/* ---------- Buttons ---------- */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: transform 0.12s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), opacity 0.2s var(--ease);
    -webkit-tap-highlight-color: transparent;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #15803d);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.32);
}

.btn-row .primary-btn {
    flex: 1;
    min-width: 160px;
}

.primary-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.42);
}

.primary-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.secondary-btn {
    background: var(--surface);
    color: var(--primary);
    border: 1.5px solid var(--border);
}

.secondary-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.ghost-btn {
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
}

.ghost-btn:hover {
    color: var(--text);
    border-color: var(--muted);
}

.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* ---------- Skeleton ---------- */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #e8ecf3;
    border-radius: 8px;
}

.skeleton::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.skeleton-text {
    height: 12px;
    margin: 8px 0;
    border-radius: 6px;
}

.skeleton-block {
    height: 48px;
    border-radius: var(--radius-sm);
}

/* ---------- Modal ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    padding: 20px;
    overflow: auto;
}

.modal.open {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s var(--ease);
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-content {
    background: var(--surface);
    padding: 24px;
    width: 100%;
    max-width: 900px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: sectionIn 0.3s var(--ease);
}

.modal-content h2 { margin-top: 0; }

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

/* ---- Bill image viewer modal ---- */
.view-bill {
    padding: 6px 14px;
    border: 1.5px solid var(--border);
    background: var(--surface);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.view-bill:hover {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.bill-modal-content {
    max-width: 560px;
}

.bill-modal-content h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.bill-img-wrap {
    max-height: 74vh;
    overflow: auto;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.bill-img-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.modal-close {
    color: var(--muted);
    float: right;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s var(--ease);
}

.modal-close:hover { color: var(--text); }

/* ---------- Confirm delete modal ---------- */
.modal-content.confirm-delete {
    max-width: 400px;
    padding: 30px 28px 24px;
}

.confirm-delete .cd-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 28px;
    background: rgba(239, 68, 68, 0.10);
    animation: sc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-delete h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.confirm-delete p {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--muted);
}

.confirm-delete .cd-actions {
    display: flex;
    gap: 10px;
}

.confirm-delete .cd-actions button {
    flex: 1 1 0;
    margin: 0;
    padding: 12px 16px;
}

.primary-btn.cd-danger {
    background: linear-gradient(135deg, var(--danger), #dc2626);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.3);
}

.primary-btn.cd-danger:hover:not(:disabled) {
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.4);
}

@media (max-width: 420px) {
    .confirm-delete .cd-actions { flex-direction: column-reverse; }
}

/* ---------- Splash ---------- */
.splash {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: grid;
    place-items: center;
    z-index: 9999;
    transition: opacity 0.5s var(--ease);
}

.splash .brand {
    font-size: 34px;
    animation: pop 1.2s var(--ease);
}

@keyframes pop {
    0% { transform: scale(0.85); opacity: 0; }
    60% { transform: scale(1.03); opacity: 1; }
    100% { transform: scale(1); }
}

.splash.hide {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   Admin
   ============================================================ */
.admin-container {
    max-width: 1200px;
    margin: 32px auto;
    padding: 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.admin-title {
    font-size: 26px;
    background: linear-gradient(120deg, var(--primary), #15803d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-actions .secondary-btn,
.admin-actions .primary-btn {
    padding: 10px 18px;
    font-size: 14px;
    flex: none;
}

.search-container {
    margin-bottom: 20px;
}

#searchForm {
    display: flex;
    gap: 10px;
    max-width: 520px;
}

#searchForm input {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

#searchForm button {
    flex: 0 0 auto;
    width: max-content;
    padding: 12px 22px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 780px;
}

.admin-table th,
.admin-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: var(--surface-2);
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.4px;
    position: sticky;
    top: 0;
}

.admin-table tbody tr {
    transition: background 0.15s var(--ease);
}

.admin-table tbody tr:hover {
    background: var(--primary-soft);
}

.admin-table td a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.admin-table td a:hover { text-decoration: underline; }

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.badge.pending { background: rgba(245, 158, 11, 0.15); color: #b45309; }
.badge.confirmed { background: rgba(22, 163, 74, 0.15); color: var(--primary-700); }
.badge.shipped { background: rgba(16, 185, 129, 0.15); color: #047857; }
.badge.cancelled { background: rgba(239, 68, 68, 0.15); color: #b91c1c; }

.delete-btn {
    padding: 7px 14px;
    border: 1px solid rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
}

.delete-btn:hover {
    background: var(--danger);
    color: #fff;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--muted);
}

/* Admin login */
.admin-login-form button {
    width: 100%;
    margin-top: 6px;
}

/* ---------- Admin login (redesigned) ---------- */
.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 34px 28px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(226, 232, 240, 0.7);
    animation: sectionIn 0.5s var(--ease);
}

.login-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}

.login-brand .brand-logo {
    height: 52px;
}

.login-head {
    text-align: center;
    margin-bottom: 24px;
}

.login-badge {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-700);
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.18);
}

.login-title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
}

.login-sub {
    margin: 0;
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.5;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 18px;
    border-radius: var(--radius-sm);
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #b91c1c;
    font-size: 13.5px;
    font-weight: 500;
}

/* input with leading icon + optional trailing button */
.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon .ii-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
}

.input-icon input {
    padding-left: 44px;
}

.input-icon input#password {
    padding-right: 46px;
}

/* Hide the browser's built-in password reveal/clear icons (Edge/IE, some
   webkit builds) so they don't collide with our custom eye toggle. */
input::-ms-reveal,
input::-ms-clear {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

input::-webkit-credentials-auto-fill-button,
input::-webkit-strong-password-auto-fill-button,
input::-webkit-caps-lock-indicator {
    display: none !important;
    visibility: hidden;
    pointer-events: none;
}

.input-icon input:focus ~ .ii-icon,
.input-icon .ii-icon {
    transition: color 0.2s var(--ease);
}

.pw-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 0;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.pw-toggle svg {
    width: 18px;
    height: 18px;
}

.pw-toggle:hover {
    color: var(--text);
    background: var(--surface-2);
}

.pw-toggle.showing {
    color: var(--primary);
    background: var(--primary-soft);
}

.login-submit {
    width: 100%;
    margin-top: 8px;
}

.login-foot {
    text-align: center;
    margin: 22px 0 0;
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 480px) {
    .login-card { padding: 30px 22px 22px; }
    .login-title { font-size: 22px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
    .container { margin: 14px; padding: 20px; border-radius: var(--radius); }
    .brand { font-size: 22px; }
    .progress-bar { max-width: 100%; padding: 0; }
    .progress-bar::before { top: 18px; left: 36px; right: 36px; }
    .progress-step { font-size: 12px; gap: 8px; }
    .progress-step .dot { width: 38px; height: 38px; font-size: 14px; }
    .product-hero__footer { flex-direction: column; }
    .product-hero__footer .primary-btn { width: 100%; min-width: 0; }
    .feature-list.feature-2col { grid-template-columns: 1fr; }
    .size-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .payment-grid { grid-template-columns: 1fr; justify-items: center; }
    .btn-row { flex-direction: column; }
    .btn-row .primary-btn, .btn-row .secondary-btn { width: 100%; }
    .order-head { flex-wrap: wrap; }
    .order-head #size-chart-btn { width: auto; flex: none; }
    .admin-header { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================
   Split experience: 3D viewer + ordering flow
   ============================================================ */
.experience {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
}

.viewer-pane {
    flex: 1 1 50%;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(120% 80% at 50% 8%, #ffffff, #eaf3ee 55%, #dcebe3);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

#shirt-3d {
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    background-color: transparent;
    --poster-color: transparent;
    --progress-bar-color: transparent;
}

.viewer-caption {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--border);
}

.viewer-badge {
    display: inline-grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), #15803d);
    color: #fff;
    font-weight: 800;
    font-size: 11px;
    flex: none;
}

/* 3D loading poster */
.viewer-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
    background: radial-gradient(120% 80% at 50% 8%, #ffffff, #eaf3ee 55%, #dcebe3);
}

.viewer-poster-img {
    max-width: 68%;
    max-height: 52%;
    object-fit: contain;
    border-radius: var(--radius);
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, 0.16));
    animation: floaty 3.5s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.viewer-progress {
    width: min(72%, 320px);
    text-align: center;
}

.viewer-progress-track {
    height: 8px;
    border-radius: 999px;
    background: var(--border);
    overflow: hidden;
}

.viewer-progress-track span {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #15803d);
    border-radius: 999px;
    transition: width 0.25s var(--ease);
}

.viewer-progress-text {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
}

.order-pane {
    flex: 1 1 50%;
    min-width: 0;
}

.order-pane .container {
    max-width: 640px;
    margin: 28px auto;
}

/* Stack on tablet/mobile: 3D pinned on top, form scrolls beneath */
@media (max-width: 1024px) {
    .experience {
        flex-direction: column;
    }
    .viewer-pane {
        flex: none;
        position: static;
        height: 38vh;
        min-height: 220px;
        max-height: 340px;
        border-right: none;
        border-bottom: 1px solid var(--border);
        z-index: 5;
    }
    .order-pane {
        flex: none;
    }
    .order-pane .container {
        margin: 16px auto;
    }
}

/* ---- Delivery method toggle ---- */
.delivery-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-option {
    position: relative;
    cursor: pointer;
    display: block;
}

.delivery-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.delivery-option .do-card {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.delivery-option .do-icon {
    font-size: 22px;
    line-height: 1;
    flex: 0 0 auto;
}

.delivery-option .do-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.delivery-option .do-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}

.delivery-option .do-text small {
    font-size: 11.5px;
    color: var(--muted);
    line-height: 1.3;
}

.delivery-option.selected .do-card,
.delivery-option input:checked + .do-card {
    border-color: var(--primary);
    box-shadow: var(--ring);
    background: linear-gradient(0deg, var(--primary-soft), var(--primary-soft)), var(--surface);
}

@media (max-width: 480px) {
    .delivery-toggle { grid-template-columns: 1fr; }
}

/* ---- 2-column field grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
}

.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid .full {
    grid-column: 1 / -1;
}

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

/* ---- Compact file drop (inline) ---- */
.file-drop {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.file-drop .file-icon { font-size: 22px; }
.file-drop .file-text { font-weight: 600; font-size: 14px; color: var(--text); }

/* ---- Step 2: two-column (sizes | summary+payment) ---- */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.order-col { min-width: 0; }
.order-col > :first-child { margin-top: 0; }

@media (max-width: 640px) {
    .order-layout { grid-template-columns: 1fr; }
    .order-col + .order-col { margin-top: 14px; }
}

/* ============================================================
   Desktop: order flow fills the right half, no card, no page scroll
   ============================================================ */
@media (min-width: 1025px) {
    html, body { height: 100%; overflow: hidden; }

    .experience { height: 100vh; }
    .viewer-pane { height: 100vh; }

    .order-pane {
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* strip the card, fill the pane */
    .order-pane .container {
        max-width: none;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: clamp(14px, 2.4vh, 28px) clamp(22px, 2.6vw, 46px);
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .order-pane header { margin-bottom: 6px; }
    .order-pane .site-header { margin-bottom: 14px; gap: 8px; }
    .order-pane .site-header .brand-logo { height: 44px; }
    .order-pane header .brand-logo { height: 44px; }
    .order-pane header h2 { font-size: 14px; margin-top: 2px; }
    .order-pane .progress-bar {
        margin: 0 auto 20px;
        max-width: 480px;
    }
    .order-pane .progress-bar::before {
        top: 22px;
        left: 44px;
        right: 44px;
    }
    .order-pane h2 { font-size: 18px; margin-bottom: 10px; }

    /* the active step fills remaining height; scrolls internally only if truly needed */
    .order-pane .section { animation: none; }
    .order-pane .section.active {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 6px;
    }

    .order-pane #product-section.active {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .order-pane .product-hero { gap: 16px; max-width: 480px; }
    .order-pane .product-title { font-size: 40px; }
    .order-pane .tagline { font-size: 13.5px; }

    .order-pane .size-grid { gap: 6px; margin: 12px 0; }
    .order-pane .size-card { padding: 7px 3px; gap: 5px; }
    .order-pane .size-card .size-name { font-size: 14px; }
    .order-pane .size-card .size-sub { font-size: 9.5px; }
    .order-pane .size-grid .stepper button { width: 22px; height: 22px; min-width: 22px; font-size: 14px; }
    .order-pane .size-grid .stepper input { width: 26px; min-width: 26px; flex: 0 0 26px; font-size: 12px; }
    .order-pane .summary-bar { margin: 14px 0; padding: 12px 18px; }
    .order-pane .payment-card { margin: 14px 0 0; padding: 14px 18px; line-height: 1.4; }
    /* bank info on the left, QR on the right (full width, no wrap) */
    .order-pane .payment-grid { grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
    .order-pane .qr-box { width: 128px; height: 128px; margin: 0; }
    .order-pane .pay-line { padding: 3px 0; font-size: 13px; }
    .order-pane #payment-info .field-hint { margin-top: 8px; font-size: 12px; }
    .order-pane .pay-lines h3 { font-size: 15px; margin: 0 0 8px; }
    .order-pane .pay-title { font-size: 15px; margin: 0 0 10px; }

    .order-pane input,
    .order-pane select,
    .order-pane textarea { padding: 10px 13px; font-size: 14px; }
    .order-pane label { margin-bottom: 5px; font-size: 13px; }
    .order-pane .note-box { margin: 12px 0; padding: 10px 14px; font-size: 13px; }
    .order-pane .btn-row { margin-top: 14px; }
}

/* ---- Shorter desktop screens (≤860px tall): tighten to avoid inner scroll ---- */
@media (min-width: 1025px) and (max-height: 860px) {
    .order-pane .container { padding-top: 12px; padding-bottom: 12px; }
    .order-pane .site-header { margin-bottom: 8px; }
    .order-pane .site-header .brand-logo { height: 34px; }
    .order-pane header { margin-bottom: 4px; }
    .order-pane .progress-bar { margin-bottom: 10px; }
    .order-pane h2 { font-size: 16px; margin-bottom: 8px; }
    .order-pane .product-hero { gap: 14px; }
    .order-pane .product-title { font-size: 40px; }
    .order-pane .form-grid { gap: 8px 14px; }
    .order-pane .size-grid { gap: 5px; margin: 10px 0; }
    .order-pane .size-card { padding: 6px 2px; gap: 4px; }
    .order-pane .summary-bar { margin: 10px 0; padding: 9px 14px; }
    .order-pane .payment-card { margin-top: 10px; padding: 10px 14px; }
    .order-pane .qr-box { width: 104px; height: 104px; }
    .order-pane .note-box { margin: 10px 0; padding: 8px 12px; font-size: 12.5px; }
    .order-pane .btn-row { margin-top: 10px; }
    .order-pane .btn-row .primary-btn,
    .order-pane .btn-row .ghost-btn { padding: 11px 22px; font-size: 15px; }
}

/* ============================================================
   Success modal (SweetAlert custom)
   ============================================================ */
.ao-success-popup {
    border-radius: 26px !important;
    padding: 32px 28px 26px !important;
}

.success-modal { text-align: center; }

.success-check {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(22, 163, 74, 0.10);
    display: grid;
    place-items: center;
    animation: sc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-check svg { width: 60px; height: 60px; }

.success-check circle {
    stroke: #16a34a;
    stroke-width: 3;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: sc-draw 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.success-check path {
    stroke: #16a34a;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: sc-draw 0.35s 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.success-modal h2 { font-size: 23px; margin: 0 0 8px; color: var(--text); }

.success-modal p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0 auto 16px;
    max-width: 350px;
}

.success-code {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(22, 163, 74, 0.09);
    border: 1px dashed rgba(22, 163, 74, 0.45);
    margin: 0 auto 12px;
    max-width: 260px;
}

.success-code span { font-size: 12px; color: var(--muted); }
.success-code strong { font-size: 20px; letter-spacing: 1.5px; color: var(--primary-700); font-weight: 800; }

.success-amount { font-size: 14px; color: #334155; }
.success-amount b { color: var(--primary-700); }

.ao-success-popup .swal2-confirm {
    border-radius: 999px !important;
    padding: 12px 42px !important;
    font-weight: 700 !important;
    margin-top: 6px !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.32) !important;
}

/* ============================================================
   Confirm order modal (SweetAlert custom)
   ============================================================ */
.ao-confirm-popup {
    border-radius: 24px !important;
    padding: 26px 28px 22px !important;
    max-width: 680px !important;
    width: calc(100% - 32px) !important;
}

.ao-confirm-popup .swal2-html-container {
    margin: 0 !important;
    overflow: visible !important;
}

.confirm-modal {
    text-align: left;
}

.cf-head {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.cf-icon {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 26px;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.18);
    animation: sc-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cf-head h2 {
    margin: 0 0 3px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
}

.cf-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* horizontal split: sizes+total | shipping info */
.cf-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.cf-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.cf-section {
    margin-bottom: 0;
}

.cf-section-label,
.cf-info small {
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 700;
}

.cf-section-label {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.cf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cf-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: 999px;
    background: var(--primary-soft);
    border: 1px solid rgba(22, 163, 74, 0.22);
    font-size: 14px;
    color: var(--primary-700);
}

.cf-chip b { font-weight: 800; }
.cf-chip i { font-style: normal; font-weight: 600; opacity: 0.85; }

.cf-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 6px 14px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    margin-bottom: 0;
}

.cf-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed var(--border);
}

.cf-row:last-child { border-bottom: none; }

.cf-ico {
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.4;
}

.cf-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cf-text small {
    font-size: 10.5px;
    color: var(--muted);
}

.cf-text strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}

.cf-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), #15803d);
    color: #fff;
    margin-bottom: 0;
}

.cf-total span { font-size: 13px; font-weight: 600; opacity: 0.92; }
.cf-total strong { font-size: 20px; font-weight: 800; }

.cf-note {
    font-size: 12.5px;
    line-height: 1.5;
    color: #92600a;
    background: rgba(245, 158, 11, 0.10);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
}

.cf-note b { color: #b45309; }

.ao-confirm-popup .swal2-actions {
    gap: 10px;
    margin-top: 20px !important;
    width: 100%;
}

.ao-confirm-popup .swal2-confirm,
.ao-confirm-popup .swal2-cancel {
    border-radius: 999px !important;
    padding: 12px 20px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    flex: 1 1 0;
    margin: 0 !important;
}

.ao-confirm-popup .swal2-confirm {
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.32) !important;
}

.ao-confirm-popup .swal2-cancel {
    background: var(--surface-2) !important;
    color: var(--muted) !important;
    border: 1.5px solid var(--border) !important;
}

/* Mobile: stack the two columns and tighten spacing */
@media (max-width: 560px) {
    .ao-confirm-popup {
        padding: 22px 18px 18px !important;
        border-radius: 20px !important;
    }
    .cf-head {
        gap: 12px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }
    .cf-icon { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
    .cf-head h2 { font-size: 18px; }
    .cf-head p { font-size: 12px; }
    .cf-body {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .cf-total strong { font-size: 18px; }
    .ao-confirm-popup .swal2-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    .ao-confirm-popup .swal2-confirm,
    .ao-confirm-popup .swal2-cancel {
        width: 100%;
        flex: none;
    }
}

/* Phone input inside the payment step */
.pay-phone { margin-top: 12px; }
.pay-phone label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pay-phone label small { color: var(--muted); font-weight: 500; }
.pay-phone input { width: 100%; }
@media (min-width: 1025px) {
    .order-pane .pay-phone { margin-top: 10px; }
    .order-pane .pay-phone label { font-size: 12.5px; margin-bottom: 4px; }
}

/* Prompt shown until a delivery method is picked */
.delivery-hint { margin-top: 8px; color: var(--primary-700); font-weight: 600; }
