﻿body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}
:root {
    --kds-bg: #f4f4f4;
    --kds-card-min: 280px;
    --kds-font-size: 16px;
}
:root {
    --kds-bg: #f4f4f4;
    --kds-card-min: 280px;
    --kds-font-size: 16px;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 20px 240px 20px 20px;
    flex-wrap: wrap;
}
.session-toolbar {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 2400;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #d9e6ff;
    box-shadow: 0 10px 28px rgba(10, 31, 63, 0.16);
    backdrop-filter: blur(8px);
}
.session-user-label {
    font-weight: 700;
    color: #0a1f3f;
    white-space: nowrap;
}
.logout-button {
    min-width: 104px;
}
.nav-hidden,
.admin-panel.permission-hidden {
    display: none !important;
}
body.auth-pending,
body.auth-locked {
    overflow: hidden;
}
body.auth-pending .session-toolbar,
body.auth-locked .session-toolbar {
    display: none !important;
}
body.auth-pending .navigation,
body.auth-pending .section {
    visibility: hidden;
}
body.auth-locked .navigation,
body.auth-locked .section {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}
.login-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top, rgba(13, 110, 253, 0.18), transparent 38%),
        linear-gradient(160deg, rgba(10, 31, 63, 0.9), rgba(17, 24, 39, 0.92));
    z-index: 5000;
}
body.auth-pending .login-overlay,
body.auth-locked .login-overlay {
    display: flex;
}
.login-card {
    width: min(460px, 100%);
    padding: 28px 30px 30px;
    border-radius: 20px;
    background: #ffffff;
    border: 1px solid #dce6f8;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}
.login-brand {
    text-align: center;
}
.login-brand-image {
    width: min(100%, 410px);
    height: auto;
    display: block;
    margin: 0 auto 12px;
}
.login-card h1 {
    margin: 10px 0 8px;
    font-size: 30px;
}
.login-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0b63d1;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.login-form {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}
.login-form label {
    font-weight: 600;
    color: #31415f;
    text-align: left;
}
.login-form input,
.login-form button {
    margin: 0;
}
.login-form button {
    margin-top: 6px;
}
#login-status {
    min-height: 20px;
    margin-top: 12px;
    text-align: center;
}
.login-status-error {
    color: #b00020;
    font-weight: 600;
}
.login-status-ok {
    color: #1b7a3e;
    font-weight: 600;
}
.secondary-link {
    padding: 10px 14px;
    background: #fff;
    color: #0b63d1;
    border: 1px solid #d9e6ff;
    border-radius: 6px;
    text-decoration: none;
}
.secondary-link:hover { background: #f3f7ff; }

/* Online availability alert */
.availability-alert {
    font-size: 26px;
    font-weight: 400;
    color: #b00020;
    animation: availabilityFlash 0.5s ease-in-out infinite alternate;
}
@keyframes availabilityFlash {
    0% { color: #a0001a; text-shadow: 0 0 4px rgba(255,0,0,0.6); }
    100% { color: #ff1a1a; text-shadow: 0 0 10px rgba(255,0,0,0.9); }
}

button {
    padding: 10px 14px;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

button:hover { background-color: #218838; }
button.danger { background-color: #dc3545; }
button.danger:hover { background-color: #c82333; }
button.secondary { background-color: #6c757d; }
button.secondary:hover { background-color: #5a6268; }
button.completed-state,
button.completed-state:disabled {
    background-color: #28a745;
    color: #fff;
}

@media (max-width: 820px) {
    .navigation {
        margin: 96px 20px 20px;
    }
    .session-toolbar {
        left: 12px;
        right: 12px;
        justify-content: space-between;
    }
}

.section {
    display: none;
    padding: 20px;
    margin: 0 20px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}
body.kds-mode { background: var(--kds-bg, #f4f4f4); }
body.kds-mode .section { background: transparent; box-shadow: none; }
body.kds-mode #kds-section { margin: 0; border-radius: 0; min-height: calc(100vh - 80px); }
body.admin-mode { background: var(--admin-bg, #f4f4f4); }
body.admin-mode #admin-section { margin: 0; border-radius: 0; }
body.admin-mode .section { background: transparent; box-shadow: none; }
body.order-mode { background: var(--order-bg, #f4f4f4); }
body.order-mode #order-section { margin: 0; border-radius: 0; }
body.order-mode .section { background: transparent; box-shadow: none; }

input[type="text"], input[type="password"], input[type="number"], input[type="file"], select, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    border: 1px solid #d6d6d6;
}

select[multiple] { height: 120px; }
textarea { height: 70px; }

.delete-product-box, .history-box { margin-top: 16px; padding: 12px; border: 1px solid #ececec; border-radius: 8px; background: #f9f9f9; }
.history-list { max-height: 240px; overflow-y: auto; margin-top: 8px; padding: 8px; border: 1px solid #ececec; border-radius: 6px; background: #fff; }
.history-item { border-bottom: 1px solid #ececec; padding: 6px 0; }
.history-item:last-child { border-bottom: none; }
.history-tools { margin-top: 8px; display: grid; gap: 10px; }
.filter-row { display: grid; grid-template-columns: repeat(6, minmax(80px, 1fr)); align-items: center; gap: 6px; }
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.summary-card { padding: 10px; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; }
.summary-label { font-size: 12px; color: #666; }
.summary-value { font-size: 18px; font-weight: 600; }
.summary-sub { font-size: 12px; color: #999; }
.top-sales-list { list-style: none; padding-left: 0; margin: 0; }
.top-sales-list li { padding: 4px 0; border-bottom: 1px solid #f0f0f0; }
.top-sales-list li:last-child { border-bottom: none; }
.customer-filter-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.customer-sms-box { display: grid; gap: 10px; padding: 12px; border: 1px solid #e5eaf5; border-radius: 10px; background: #fff; }
.customer-sms-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
#customer-sms-message { min-height: 96px; }
.customer-sms-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.customer-duplicate-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed #f1c27d; border-radius: 10px; background: #fffaf1; }
.customer-duplicate-badge { display: inline-flex; align-items: center; width: fit-content; margin-top: 6px; padding: 3px 8px; border-radius: 999px; background: #fff1d6; color: #8a5a00; border: 1px solid #f3cf8c; font-size: 12px; font-weight: 700; }
.customer-item-duplicate { border-color: #f3cf8c; background: #fffaf1; }
.customer-remove-duplicate { justify-self: end; }
.customer-status-ok { color: #1b7a3e; font-weight: 600; }
.customer-status-error { color: #b00020; font-weight: 600; }
.customer-list { max-height: 320px; overflow-y: auto; margin-top: 8px; display: grid; gap: 8px; }
.customer-item.customer-item-selectable { grid-template-columns: auto minmax(0, 1fr) auto; cursor: pointer; }
.customer-item.customer-item-selectable:hover { border-color: #cddcff; }
.customer-item.selected { border-color: #0d6efd; background: #eef5ff; }
.customer-checkbox { width: 18px; height: 18px; margin-top: 2px; }

.customer-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid #e5eaf5; border-radius: 10px; background: #fff; }
.customer-phone { margin-top: 4px; font-weight: 600; color: #344054; }
.customer-meta { display: grid; gap: 4px; text-align: right; font-size: 12px; color: #667085; }
@media (max-width: 640px) {
    .customer-item { grid-template-columns: 1fr; }
    .customer-meta { text-align: left; }
}
.closeout-box { margin-top: 10px; padding: 10px; border: 1px solid #ececec; border-radius: 8px; background: #f5f5f5; }
.closeout-summary { margin-bottom: 6px; }
.closeout-receipts { max-height: 160px; overflow-y: auto; padding: 6px 0; }
.close-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #eee; }
.close-row-actions { display: flex; gap: 6px; }

.category-block { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #ececec; }
.category-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.category-header h3 { margin: 0; }
.category-meta { font-size: 12px; }
.product-row { margin: 6px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.product-row-copy { min-width: 0; display: grid; gap: 4px; }
.product-row-headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-price-tag { font-weight: 700; color: #1f2937; }
.product-cogs-tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; font-size: 12px; font-weight: 700; }
.product-cogs-tag.is-incomplete { background: #fff4ed; color: #c4320a; border-color: #f9bda7; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.admin-inline-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.category-management { display: grid; gap: 10px; }
.category-create-pane { display: grid; gap: 10px; }
.category-catalog-pane { display: grid; gap: 12px; margin-top: 14px; padding: 12px; border: 1px solid #dce5f7; border-radius: 12px; background: #ffffff; }

.ingredient-management { display: grid; gap: 8px; }
.ingredient-management input,
.ingredient-management select { margin: 0; }
.ingredient-management h4 { margin: 0 0 4px; }
.ingredient-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.ingredient-admin-list { display: grid; gap: 8px; }
.ingredient-admin-empty { padding: 10px 12px; border: 1px dashed #d4dbe8; border-radius: 10px; background: #f8fafd; }
.ingredient-row,
.ingredient-category-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e5eaf5; border-radius: 10px; background: #fff; }
.ingredient-row-main,
.ingredient-category-main { display: grid; gap: 4px; min-width: 0; }
.ingredient-row-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ingredient-row-select { margin: 0; min-width: 190px; }
.ingredient-category-tag { display: inline-flex; align-items: center; width: fit-content; padding: 3px 8px; border-radius: 999px; background: #eef6ff; color: #0b63d1; border: 1px solid #d7e7ff; font-size: 12px; font-weight: 700; }
.ingredient-category-tag.uncategorized { background: #f3f4f7; color: #5d6678; border-color: #dde1ea; }
.recipe-ingredient-option { display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 190px); align-items: center; gap: 10px; }
.ingredient-grams-input { margin: 0; width: 100%; min-width: 0; }
.recipe-ingredient-title { display: grid; gap: 3px; min-width: 0; }
.recipe-ingredient-title strong { overflow-wrap: anywhere; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { background: #eef6ff; color: #0b63d1; padding: 6px 10px; border-radius: 999px; font-size: 12px; }

.ingredient-filter-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0 2px; }
.ingredient-filter-panel { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.ingredient-filter-panel[hidden] { display: none; }
.ingredient-filter-chip { background: #eef6ff; color: #0b63d1; border: 1px solid #d7e7ff; padding: 6px 10px; border-radius: 999px; font-size: 13px; cursor: pointer; }
.ingredient-filter-chip.active { background: #0b63d1; color: #fff; border-color: #0b63d1; }
.ingredient-filter-empty { font-size: 12px; }

.ingredient-checkboxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 8px 0 4px; }
.ingredient-option { display: flex; align-items: center; gap: 6px; background: #f6f7fb; padding: 6px 8px; border-radius: 6px; border: 1px solid #e2e6f0; font-size: 14px; }

#category-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#category-buttons button { background-color: #007bff; }
#category-buttons button.active { background-color: #0056b3; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); }
#category-buttons button:hover { background-color: #0056b3; }

#product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.product-card { background: #fafafa; border: 1px solid #ececec; border-radius: 10px; padding: 10px; text-align: center; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.product-card img { max-width: 100%; height: 100px; object-fit: cover; border-radius: 8px; }
.product-card h4 { margin: 8px 0 4px; }
.product-card p { margin: 4px 0; }
.product-card .muted { font-size: 12px; }
.product-card.sold-out { position: relative; opacity: 0.6; }
.product-card.sold-out h4 { text-decoration: line-through; }
.sold-out-tag { color: #c1121f; font-weight: 800; font-size: 12px; letter-spacing: 0.5px; }
.sold-out-text { text-decoration: line-through; color: #c1121f; }

.order-pad { margin-top: 20px; background: #f9f9f9; padding: 12px; border-radius: 8px; border: 1px solid #ececec; }
.receipt-prompt { margin-top: 10px; padding: 10px; border: 1px dashed #d6d6d6; border-radius: 8px; background: #fff; }
.receipt-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.receipt-status { min-height: 20px; margin-top: 8px; }
.receipt-status.receipt-status-error { color: #b00020; font-weight: 600; }
.receipt-status.receipt-status-ok { color: #1b7a3e; font-weight: 600; }
.receipt-email-modal-card { width: min(420px, 94vw); box-sizing: border-box; }
.receipt-email-modal-card p { font-size: 18px; line-height: 1.45; }
.receipt-email-modal-card input { margin: 0; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 54px; padding: 12px 14px; font-size: 22px; line-height: 1.25; }
.receipt-shortcut-btn { margin-top: 10px; width: 100%; }
.order-drawer { max-width: 720px; margin: 14px auto 0; box-shadow: 0 10px 24px rgba(0,0,0,0.1); border-radius: 12px; padding: 16px; background: #fff; }
#order-section { font-size: 18px; }
.order-drawer h3 { font-size: 24px; }
.order-drawer .order-line-info { font-size: 18px; }
.order-drawer button { font-size: 18px; }
.complete-large { padding: 14px 18px; font-size: 20px; margin-top: 10px; }
.cancel-order-btn { margin-top: 10px; padding: 12px 18px; font-size: 18px; width: 100%; }
.hidden { display: none !important; }
.order-success { margin-top: 10px; padding: 10px; background: #d1ffd1; border: 1px solid #6dd36d; border-radius: 8px; color: #0f6b0f; font-weight: 700; text-align: center; }
.order-success { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); min-width: 240px; z-index: 4000; }
.order-success { box-shadow: 0 8px 18px rgba(0,0,0,0.18); }
.pay-buttons { display: flex; gap: 10px; margin: 8px 0 6px; }
.pay-btn { flex: 1; padding: 12px; font-size: 18px; border-radius: 10px; border: none; color: #fff; cursor: pointer; }
.pay-cash { background: #28a745; }
.pay-card { background: #ffc107; color: #222; }
.pay-other { background: #0d6efd; }
.pay-btn.active { box-shadow: 0 0 0 3px rgba(0,0,0,0.12); transform: translateY(-1px); }
.order-name-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.order-name-row button { margin: 0; }
.order-name-row input { flex: 1; min-width: 180px; margin: 0; }
textarea#order-notes { height: 60px; width: 710px; max-width: 100%; resize: vertical; max-height: 200px; }
.online-advertise-input { min-height: 88px; resize: vertical; }
.online-advertise-meta {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: -4px;
}
.online-advertise-meta .muted:first-child { flex: 1; }
.discount-buttons { display: flex; gap: 10px; }
.discount-btn { padding: 12px; font-size: 18px; border-radius: 10px; border: none; background: #6c757d; color: #fff; cursor: pointer; min-width: 90px; }
.discount-btn.active { box-shadow: 0 0 0 3px rgba(0,0,0,0.12); transform: translateY(-1px); }
.discount-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.discount-row input, .discount-row select { flex: 1; margin: 0; }
.discount-row button { padding: 8px 12px; }
.order-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.order-header h2, .kds-header h2 { margin: 0; line-height: 1.1; }
.section-load-group { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.settle-box { display: grid; gap: 4px; align-items: end; }
.kitchen-load-box { background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); border: 1px solid #d8e5ff; border-radius: 12px; padding: 12px 16px; min-width: 210px; box-shadow: 0 8px 18px rgba(0,0,0,0.08); display: grid; gap: 4px; align-self: flex-start; text-align: left; }
.kitchen-load-box.compact { min-width: 240px; }
.kitchen-load-box .small-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.kitchen-load-total { font-size: 22px; font-weight: 700; color: #0d6efd; line-height: 1.05; }
.kitchen-load-breakdown { font-size: 12px; line-height: 1.35; }
.admin-shortcut-btn { appearance: none; -webkit-appearance: none; font: inherit; color: inherit; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease; }
.admin-shortcut-btn:hover { transform: translateY(-1px); border-color: #9dc0ff; box-shadow: 0 12px 24px rgba(0,0,0,0.12); }
.admin-shortcut-btn:focus-visible { outline: 3px solid rgba(13,110,253,0.28); outline-offset: 2px; }
.admin-shortcut-btn::after { content: 'Open Online Controls'; font-size: 11px; color: #4a6aa8; margin-top: 2px; }
.settle-row { display: flex; gap: 6px; }
.settle-row input { width: 140px; }
.defer-row { margin: 8px 0; }
.defer-controls { margin-top: 6px; }
.inline-label { display: inline-flex; gap: 6px; align-items: center; }
.input-with-keypad { display: flex; gap: 6px; align-items: center; width: 100%; }
.input-with-keypad input { flex: 1; margin: 0; }
.touch-keypad-field { width: 100%; }
.touch-decimal-input { text-align: right; }
.touch-keypad-btn { min-width: 72px; white-space: nowrap; }
.small { padding: 6px 8px; }
.cash-tools { margin: 8px 0; padding: 8px; border: 1px dashed #d7d7d7; border-radius: 8px; background: #fff; }
.cash-tools button { margin-top: 6px; margin-right: 6px; }
#order-summary { list-style: none; padding: 0; margin: 0; }
#order-summary li { padding: 8px; background-color: #fff; margin-bottom: 6px; border-radius: 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-line-info { flex: 1; }
.order-line-actions { display: flex; align-items: center; gap: 6px; }
.order-line-actions button { padding: 6px 8px; }
.qty-badge { min-width: 32px; text-align: center; background: #eef6ff; border-radius: 6px; padding: 4px 6px; }

#order-queue { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.order-card { padding: 12px; border-radius: 10px; border: 1px solid #e5e5e5; background: #ffffff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); transition: transform 0.15s ease, box-shadow 0.15s ease; font-size: var(--kds-font-size, 16px); }
.order-pending { background: #fff; }
.order-preparing { background: #fff7e6; border-color: #ffc107; }
.order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-actions { display: flex; gap: 8px; margin-top: 8px; }
.order-zoomed { font-size: 1.8em; transform: scale(1.03); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.kds-items { display: flex; flex-direction: column; gap: 4px; }
.kds-line { line-height: 1.2; }
.kds-ingredients { font-size: 12px; }

.muted { color: #6c757d; font-size: 13px; }
.history-actions { display: flex; gap: 8px; margin-top: 6px; }
.history-actions button { padding: 6px 10px; }

.printer-setup { margin-top: 18px; padding: 12px; border: 1px solid #ececec; border-radius: 8px; background: #f9f9f9; }

.keypad-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 3000; }
.keypad { background: #fff; padding: 12px; border-radius: 10px; width: 260px; box-shadow: 0 4px 14px rgba(0,0,0,0.18); }
.keypad-display { padding: 10px; border: 1px solid #ececec; border-radius: 6px; text-align: right; font-size: 20px; margin-bottom: 10px; }
.keypad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.keypad-grid button { padding: 12px; font-size: 16px; }
.keypad-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; }

.collapsible { width: 100%; text-align: center; background: linear-gradient(135deg,#0d6efd,#00b3ff); color: #ffffff; border: none; border-radius: 12px; padding: 14px; display: grid; gap: 10px; min-height: 140px; box-shadow: 0 10px 25px rgba(13,110,253,0.18); position: relative; align-content: center; justify-items: center; font-weight: 700; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.collapsible::before { content: attr(data-icon); font-size: 18px; font-weight: 900; letter-spacing: 0.04em; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,0.88); display: grid; place-items: center; color: #0a1f3f; background-position: center; background-repeat: no-repeat; background-size: 24px 24px; box-shadow: inset 0 0 0 1px rgba(13,110,253,0.08); }
.collapsible[data-target="category-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5A2.5 2.5 0 0 1 5.5 5H9l2 2h7.5A2.5 2.5 0 0 1 21 9.5v7A2.5 2.5 0 0 1 18.5 19h-13A2.5 2.5 0 0 1 3 16.5z'/%3E%3Cpath d='M8 12h8M12 8v8'/%3E%3C/svg%3E"); }
.collapsible[data-target="ingredient-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20c4.2-2.5 6.8-6.1 6.8-9.4A4.6 4.6 0 0 0 14.2 6c-1 0-1.8.3-2.2.8-.4-.5-1.2-.8-2.2-.8A4.6 4.6 0 0 0 5.2 10.6C5.2 13.9 7.8 17.5 12 20z'/%3E%3Cpath d='M12 7v7M8.5 10.5h7'/%3E%3C/svg%3E"); }
.collapsible[data-target="product-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 9.5 12 6l7 3.5v5L12 18l-7-3.5z'/%3E%3Cpath d='M12 6v12M5 9.5l7 3.5 7-3.5'/%3E%3C/svg%3E"); }
.collapsible[data-target="delete-product-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M9 7V5.8A1.8 1.8 0 0 1 10.8 4h2.4A1.8 1.8 0 0 1 15 5.8V7M7.5 7l.7 10.2A2 2 0 0 0 10.2 19h3.6a2 2 0 0 0 2-1.8L16.5 7'/%3E%3Cpath d='M10 11v4M14 11v4'/%3E%3C/svg%3E"); }
.collapsible[data-target="history-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5v14h14'/%3E%3Cpath d='M8 14l2.5-2.5 2.5 1.8L17 9'/%3E%3Cpath d='M15 9h2v2'/%3E%3C/svg%3E"); }
.collapsible[data-target="customer-directory-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.5 11.2a3.2 3.2 0 1 1 0-6.4 3.2 3.2 0 0 1 0 6.4zM16.8 10a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zM3.8 18.5a4.7 4.7 0 0 1 7.4-3.7M13 18.5a3.9 3.9 0 0 1 6.2-3.1'/%3E%3C/svg%3E"); }
.collapsible[data-target="printer-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 8V4.8A1.8 1.8 0 0 1 8.8 3h6.4A1.8 1.8 0 0 1 17 4.8V8'/%3E%3Crect x='4' y='8' width='16' height='8' rx='2'/%3E%3Cpath d='M7 14h10v5.2A1.8 1.8 0 0 1 15.2 21H8.8A1.8 1.8 0 0 1 7 19.2zM16.5 11h.01'/%3E%3C/svg%3E"); }
.collapsible[data-target="menu-availability-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20a8 8 0 1 0 0-16 8 8 0 0 0 0 16z'/%3E%3Cpath d='M12 12l4.2-2.2M12 12V7'/%3E%3Cpath d='M9 16h6'/%3E%3C/svg%3E"); }
.collapsible[data-target="display-settings-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7h14M5 12h14M5 17h14'/%3E%3Ccircle cx='9' cy='7' r='1.8'/%3E%3Ccircle cx='15' cy='12' r='1.8'/%3E%3Ccircle cx='11' cy='17' r='1.8'/%3E%3C/svg%3E"); }
.collapsible[data-target="performance-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19V9M12 19V5M19 19v-7'/%3E%3Cpath d='M3.8 19h16.4'/%3E%3C/svg%3E"); }
.collapsible[data-target="gst-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='5' width='15' height='14' rx='2.2'/%3E%3Cpath d='M8 9h8M9 13h2.5M13.5 13H16M8.5 16h7'/%3E%3C/svg%3E"); }
.collapsible[data-target="setup-backup-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7.2A2.2 2.2 0 0 1 8.2 5H16l3 3v8.8A2.2 2.2 0 0 1 16.8 19H8.2A2.2 2.2 0 0 1 6 16.8z'/%3E%3Cpath d='M9 5v5h6V7.5M9 15h6'/%3E%3C/svg%3E"); }
.collapsible[data-target="maintenance-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5.5A6.5 6.5 0 1 0 18.2 10'/%3E%3Cpath d='M18.5 5v5h-5'/%3E%3Cpath d='M12 9.5v3l2 1.5'/%3E%3C/svg%3E"); }
.collapsible[data-target="online-limits-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12h15M12 4.5a12 12 0 0 1 0 15M12 4.5a12 12 0 0 0 0 15M5.7 8.2h12.6M5.7 15.8h12.6'/%3E%3C/svg%3E"); }
.collapsible[data-target="promo-feature-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 4 2.3 4.7 5.2.8-3.7 3.6.9 5.1-4.7-2.4-4.7 2.4.9-5.1L4.5 9.5l5.2-.8z'/%3E%3C/svg%3E"); }
.collapsible[data-target="order-list-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='4.5' width='12' height='16' rx='2.2'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.collapsible[data-target="supplier-stock-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 20V8.5L12 4l7.5 4.5V20'/%3E%3Cpath d='M9 20v-5h6v5'/%3E%3Cpath d='M8 10.5h.01M12 10.5h.01M16 10.5h.01'/%3E%3C/svg%3E"); }
.collapsible[data-target="login-access-box"]::before { content: ''; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f3f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8.5 11V8.8a3.5 3.5 0 1 1 7 0V11'/%3E%3Crect x='6' y='11' width='12' height='8' rx='2'/%3E%3Cpath d='M12 14v2'/%3E%3C/svg%3E"); }
.collapsible:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(13,110,253,0.25); }
.collapsible + .collapsible-content, .collapsible-content { display: none; padding: 10px 0; }
.collapsible-content > div { margin-top: 8px; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 12px; }
.admin-panel { background: #f5f7fb; border: 1px solid #e2e6f0; border-radius: 14px; padding: 10px; box-shadow: 0 6px 14px rgba(0,0,0,0.05); }
.admin-panel .collapsible { margin: 0; }
.admin-panel .collapsible:focus-visible { outline: 2px solid #0d6efd; outline-offset: 3px; }
.admin-panel .collapsible-content { padding: 12px 6px 4px; }
.admin-panel.dimmed { opacity: 0.25; filter: saturate(0); pointer-events: none; }
.admin-panel.expanded { position: fixed; top: 8vh; left: 50%; transform: translateX(-50%); width: min(980px, 94vw); max-height: 84vh; overflow: auto; z-index: 1201; background: #ffffff; border: 1px solid #d8e2ff; box-shadow: 0 20px 45px rgba(0,0,0,0.18); }
.admin-panel.expanded .collapsible { text-align: left; grid-template-columns: auto 1fr; justify-items: start; align-content: start; min-height: auto; background: linear-gradient(135deg,#0d6efd,#6bdcff); color: #0a1f3f; }
.admin-panel.expanded .collapsible::before { align-self: start; }
.admin-panel.expanded .collapsible-content { display: block; padding: 14px 8px 10px; }
.collapsible-overlay { position: fixed; inset: 0; background: rgba(245,247,251,0.9); backdrop-filter: blur(2px); z-index: 1100; }
.availability-list { display: grid; gap: 10px; margin-top: 8px; }
.availability-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: start; gap: 10px; padding: 10px; border: 1px solid #e2e6f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.04); }
.availability-item-main { display: grid; gap: 6px; min-width: 0; }
.availability-item .sold-out-tag { color: #c1121f; font-weight: 700; }
.availability-item input[type="number"] { width: 90px; }
.availability-item label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.avail-description { width: 100%; min-width: 0; }
.availability-description-meta { font-size: 12px; }
.maintenance-box { padding: 10px; border: 1px solid #ececec; border-radius: 8px; background: #f9f9f9; display: grid; gap: 8px; }
.online-blocked-toolbar { display: grid; gap: 8px; margin-top: 8px; }
.online-blocked-panel { display: grid; gap: 10px; padding: 12px; border: 1px solid #dde6f6; border-radius: 12px; background: #ffffff; }
.online-blocked-section { display: grid; gap: 8px; }
.online-blocked-section h4 { margin: 0; }
.online-blocked-list { display: grid; gap: 10px; }
.online-blocked-card { display: grid; gap: 8px; padding: 12px; border: 1px solid #dce5f7; border-radius: 12px; background: #f8fbff; }
.online-blocked-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.online-blocked-card-meta { display: grid; gap: 4px; }
.online-blocked-phone { font-weight: 800; color: #0a1f3f; }
.online-blocked-copy { display: flex; flex-wrap: wrap; gap: 8px; }
.online-blocked-copy span { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #eef5ff; color: #0d4fb5; border: 1px solid #d6e4ff; font-size: 12px; font-weight: 700; }
.online-blocked-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.supplier-stock-shell { gap: 14px; }
.supplier-stock-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.supplier-stock-tabs button.active { background: #0d6efd; color: #fff; }
.supplier-stock-shortcut { margin-left: auto; }
.supplier-stock-view { display: none; gap: 12px; }
.supplier-stock-view.active { display: grid; }
.supplier-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.supplier-section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.supplier-ingredient-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; max-height: 260px; overflow-y: auto; padding: 4px; }
.supplier-ingredient-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #dde6f6; border-radius: 10px; background: #fff; cursor: pointer; }
.supplier-ingredient-option input { width: 18px; height: 18px; margin: 1px 0 0; }
.supplier-ingredient-copy { display: grid; gap: 4px; min-width: 0; }
.supplier-list { display: grid; gap: 10px; }
.supplier-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #dce5f7; border-radius: 12px; background: #fff; }
.supplier-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.supplier-card-meta { display: grid; gap: 4px; }
.supplier-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.supplier-detail-item { padding: 10px; border: 1px solid #edf1f8; border-radius: 10px; background: #f8fbff; }
.supplier-detail-item span { display: block; font-size: 12px; color: #667085; margin-bottom: 4px; }
.supplier-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.supplier-assignment-list { display: flex; flex-wrap: wrap; gap: 8px; }
.supplier-assignment-pill { display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 999px; background: #eef5ff; color: #0d4fb5; border: 1px solid #d6e4ff; font-size: 12px; font-weight: 700; }
.ingredient-stock-list { display: grid; gap: 10px; }
.ingredient-stock-row { display: grid; gap: 10px; padding: 12px; border: 1px solid #dde6f6; border-radius: 12px; background: #fff; }
.ingredient-stock-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.ingredient-stock-copy { display: grid; gap: 4px; min-width: 0; }
.ingredient-stock-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.ingredient-stock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-cost-meta { display: block; }
.stock-on-hand-report { display: grid; gap: 12px; padding: 14px; border: 1px solid #dbe4f7; border-radius: 12px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.stock-report-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.stock-report-toolbar label { min-width: 220px; flex: 1 1 220px; }
.stock-report-toolbar button { flex: 0 0 auto; }
.stock-on-hand-preview { border: 1px solid #dde6f6; border-radius: 12px; background: #fff; overflow: auto; }
.stock-report-table { width: 100%; min-width: 1080px; border-collapse: collapse; }
.stock-report-table th,
.stock-report-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f8; text-align: left; vertical-align: top; }
.stock-report-table th { background: #f3f7ff; color: #0a1f3f; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.stock-report-table tbody tr:last-child td { border-bottom: none; }
.stock-report-empty { padding: 18px; color: #667085; }
.stock-audit-toolbar { display: grid; grid-template-columns: minmax(0, 220px) minmax(180px, 280px) auto; gap: 10px; align-items: end; }
.stock-audit-toolbar label { margin: 0; }
.stock-audit-section { display: grid; gap: 10px; }
.stock-audit-breakdown-card,
.stock-audit-history-card,
.stock-audit-draft-card { display: grid; gap: 10px; padding: 12px; border: 1px solid #dde6f6; border-radius: 12px; background: #fff; }
.stock-audit-breakdown-head,
.stock-audit-history-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.stock-audit-breakdown-meta,
.stock-audit-history-meta { display: grid; gap: 4px; min-width: 0; }
.stock-audit-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-audit-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; border: 1px solid #d6e4ff; background: #eef5ff; color: #0d4fb5; font-size: 12px; font-weight: 700; }
.stock-audit-pill.warn { background: #fff4ed; color: #c4320a; border-color: #f9bda7; }
.stock-audit-pill.good { background: #ecfdf3; color: #027a48; border-color: #abefc6; }
.stock-audit-draft-card { grid-template-columns: minmax(0, 1fr); }
.stock-audit-draft-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.stock-audit-draft-meta { display: grid; gap: 4px; min-width: 0; }
.stock-audit-draft-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; align-items: end; }
.stock-audit-draft-controls input { margin: 0; }
.stock-audit-draft-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stock-audit-variance.is-negative { color: #b42318; font-weight: 700; }
.stock-audit-variance.is-positive { color: #027a48; font-weight: 700; }
.stock-audit-variance.is-zero { color: #475467; font-weight: 700; }
.stock-audit-history-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stock-audit-empty { padding: 10px 12px; border: 1px dashed #d4dbe8; border-radius: 10px; background: #f8fafd; }
.stock-balance-pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 10px; border-radius: 999px; background: #ecfdf3; color: #027a48; border: 1px solid #abefc6; font-size: 12px; font-weight: 700; }
.stock-balance-pill.low { background: #fff4ed; color: #c4320a; border-color: #f9bda7; }
.stock-balance-pill.empty { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.stock-product-usage { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-product-usage span { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; background: #f4f7fc; color: #475467; border: 1px solid #dbe3f2; font-size: 12px; }
.supplier-modal-card { width: min(860px, 96vw); max-height: 88vh; overflow: auto; }
.gst-toggle-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.gst-status-pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid #d0d5dd; background: #f2f4f7; color: #475467; }
.gst-status-pill.is-on { background: #ecfdf3; color: #027a48; border-color: #abefc6; }
.gst-status-pill.is-off { background: #f2f4f7; color: #475467; border-color: #d0d5dd; }
.gst-ledger-list { max-height: 280px; overflow-y: auto; padding: 8px; border: 1px solid #ececec; border-radius: 8px; background: #fff; display: grid; gap: 8px; }
.gst-ledger-item { padding-bottom: 8px; border-bottom: 1px solid #ececec; }
.gst-ledger-item:last-child { padding-bottom: 0; border-bottom: none; }
.gst-ledger-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gst-ledger-amounts { text-align: right; }
.gst-ledger-amounts strong { display: block; }
.gst-ledger-meta { margin-top: 4px; font-size: 12px; }
.login-settings-box {
    gap: 10px;
}
.login-settings-box input {
    margin: 0;
}
.auth-user-list {
    display: grid;
    gap: 8px;
}
.auth-user-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #dbe4f7;
    border-radius: 10px;
    background: #ffffff;
}
.auth-user-item.editing {
    border-color: #0d6efd;
    background: #eef5ff;
}
@media (max-width: 1180px) {
    .ingredient-checkboxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ingredient-checkboxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .supplier-stock-shortcut { margin-left: 0; }
}

@media (max-width: 640px) {
    .ingredient-checkboxes { grid-template-columns: 1fr; }
}

.auth-user-details {
    min-width: 0;
}
.auth-user-meta {
    margin-top: 4px;
}
.auth-user-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.auth-permissions-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid #d4ddf0;
    border-radius: 999px;
    background: #f7faff;
    color: #31415f;
    font-size: 13px;
    font-weight: 600;
}
.auth-permissions-toggle input {
    width: auto;
    margin: 0;
}
.login-settings-actions {
    justify-content: flex-start;
}
.login-settings-actions #auth-cancel-edit-btn {
    display: none;
}
.restore-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 560px) {
    .login-card {
        width: min(94vw, 460px);
        padding: 22px 20px 24px;
    }
    .login-brand-image {
        width: min(100%, 320px);
    }
    .login-card h1 {
        font-size: 26px;
    }
    .auth-user-item {
        grid-template-columns: 1fr;
    }
    .auth-user-actions {
        justify-content: flex-start;
    }
}

.kds-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.upcoming-panel { min-width: 220px; background: #f7f9ff; border: 1px solid #dfe8ff; border-radius: 10px; padding: 10px; align-self: flex-start; }
.upcoming-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.upcoming-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.upcoming-item { background: #fff; border: 1px solid #e1e7ff; border-radius: 6px; padding: 6px 8px; font-size: 13px; }
.upcoming-time { font-weight: 600; margin-right: 6px; }
.kds-metrics { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.avg-clearance-box { background: #fff; border: 1px solid #e1e7ff; border-radius: 10px; padding: 10px 12px; min-width: 160px; cursor: pointer; text-align: left; box-shadow: 0 4px 10px rgba(0,0,0,0.06); }
.avg-clearance-box #avg-clearance-value { font-size: 18px; font-weight: 700; color: #0d6efd; }
.kds-header-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
#kds-clock { font-size: 28px; }
.badge-paid { background: #28a745; color: #fff; padding: 2px 6px; border-radius: 6px; font-size: 11px; }
.upcoming-preview { position: fixed; inset: 12vh 50% auto auto; transform: translateX(0); background: #fff9c4; color: #333; border: 1px solid #f2d46b; box-shadow: 0 10px 24px rgba(0,0,0,0.16); padding: 14px; border-radius: 10px; z-index: 3200; max-width: min(420px, 90vw); min-width: 260px; display: grid; gap: 8px; }
.upcoming-preview h4 { margin: 0; }
.upcoming-preview ul { list-style: disc; padding-left: 18px; margin: 0; display: grid; gap: 4px; }

#order-queue { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
#kds-section { background: var(--kds-bg, #f4f4f4); }
#order-queue { grid-template-columns: repeat(auto-fill, minmax(var(--kds-card-min, 280px), 1fr)); }
.order-card { padding: 16px; }
.order-card button { min-width: 88px; }
.order-flash { animation: flash 0.6s linear 0s 5; }
@keyframes flash {
    0% { background-color: #d1ffd1; }
    50% { background-color: #6bff6b; }
    100% { background-color: #d1ffd1; }
}
.order-overdue { animation: overdueflash 1s ease-in-out 0s 5; }
@keyframes overdueflash {
    0% { background-color: #e1f0ff; }
    50% { background-color: #b5daff; }
    100% { background-color: #e1f0ff; }
}
.kds-actions-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 3001; }
.modal-card { background: #fff; width: min(420px, 94vw); padding: 16px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); display: grid; gap: 10px; }
.modal-toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.modal-toggle input { width: auto; margin: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.refund-modal-card { width: min(460px, 94vw); }
.refund-modal-summary { display: grid; gap: 8px; padding: 12px; border: 1px solid #dbe4f7; border-radius: 10px; background: #f8fbff; }
.refund-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.refund-summary-row strong { color: #0a1f3f; }
.refund-choice-actions { justify-content: flex-start; }
.refund-partial-box { display: grid; gap: 8px; padding: 12px; border: 1px dashed #f1c27d; border-radius: 10px; background: #fffaf1; }
.refund-partial-box input { margin: 0; }
.history-refund-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.history-refund-pill.refund-full { background: #fde8e8; color: #b42318; border: 1px solid #f7c7c7; }
.history-refund-pill.refund-partial { background: #fff3cd; color: #8a5a00; border: 1px solid #ffe29a; }
.history-refund-meta { margin-top: 4px; }
.permissions-modal-card {
    width: min(860px, 96vw);
    max-height: 88vh;
    overflow: auto;
}
.permissions-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.permissions-group {
    display: grid;
    gap: 8px;
    align-content: start;
}
.permissions-group h4 {
    margin: 0;
}
.permissions-list {
    display: grid;
    gap: 8px;
}
.permission-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dbe4f7;
    border-radius: 10px;
    background: #ffffff;
    color: #23324f;
    text-align: left;
}
.permission-item:hover {
    background: #f8fbff;
}
.permission-item.permission-denied {
    border-color: #f1b5bc;
    background: #fff5f6;
}
.permission-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 112px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.permission-item.permission-allowed .permission-status {
    background: #e8f7ee;
    color: #1b7a3e;
}
.permission-item.permission-denied .permission-status {
    background: #ffe5e8;
    color: #b00020;
}
.modal-ingredients { display: grid; gap: 8px; max-height: 320px; overflow: auto; padding: 6px 0; }
.quick-times { display: flex; gap: 8px; flex-wrap: wrap; }
.order-list-box { padding: 10px; border: 1px solid #ececec; border-radius: 8px; background: #f9f9f9; display: grid; gap: 8px; }
.order-list-item { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 8px; padding: 6px; border-bottom: 1px solid #eee; }
.order-list-item:last-child { border-bottom: none; }
.kds-theme-box { padding: 10px; border: 1px solid #ececec; border-radius: 8px; background: #f9f9f9; display: grid; gap: 10px; }
.palette-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.palette-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid #d6d6d6; cursor: pointer; padding: 0; }
.swatch:focus-visible { outline: 2px solid #0d6efd; outline-offset: 2px; }
.performance-box { gap: 14px; }
.performance-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; align-items: end; }
.performance-filters button { width: 100%; }
.perf-today-total { display: grid; gap: 2px; align-content: end; justify-items: end; padding: 6px 10px; border: 1px solid #e5e5e5; border-radius: 8px; background: #fff; }
.perf-today-total .small-label { font-size: 12px; }
.performance-chart { border: 1px solid #e5e5e5; border-radius: 8px; padding: 10px; background: #fff; }
.perf-chart-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.perf-bars { display: flex; gap: 12px; align-items: flex-end; min-height: 180px; height: 240px; padding: 38px 4px 34px; overflow-x: auto; }
.perf-bar { flex: 1; min-width: 56px; position: relative; cursor: pointer; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.perf-bar:hover { filter: none; }
.perf-bar-shell { position: relative; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.perf-bar-fill { position: absolute; bottom: 0; border-radius: 8px 8px 0 0; transition: filter 0.15s ease, transform 0.15s ease; }
.perf-bar-lastweek { width: 100%; background: linear-gradient(180deg, #5da8da, #2d6f9f); box-shadow: inset 0 0 0 1px rgba(19, 60, 97, 0.18); }
.perf-bar-current { width: 58%; background: linear-gradient(180deg, #ffbe63, #ff7f11); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); z-index: 2; }
.perf-bar-no-lastweek .perf-bar-lastweek { display: none; }
.perf-bar:hover .perf-bar-fill { filter: brightness(1.05); }
.perf-bar-amount,
.perf-bar-compare,
.perf-bar label { pointer-events: none; }
.perf-bar-amount { position: absolute; top: -34px; left: 50%; transform: translateX(-50%); font-size: 12px; color: #333; font-weight: 700; white-space: nowrap; }
.perf-bar-compare { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 11px; white-space: nowrap; }
.perf-bar-compare.is-up { color: #157347; }
.perf-bar-compare.is-down { color: #b42318; }
.perf-bar-compare.is-flat { color: #6c757d; }
.perf-bar label { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); font-size: 11px; color: #555; white-space: normal; text-align: center; line-height: 1.1; }
.perf-bar label span { display: block; font-size: 10px; color: #7a7a7a; }
.performance-insights { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 12px; }
.perf-top-items,
.perf-staff-panel { border: 1px dashed #d6d6d6; border-radius: 8px; padding: 10px; background: #fff; }
.perf-staff-panel { display: grid; gap: 10px; }
.perf-staff-summary { font-size: 13px; }
.perf-staff-list { display: grid; gap: 8px; }
.perf-staff-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #e4eaf6; border-radius: 10px; background: #f8fbff; }
.perf-staff-rank { width: 28px; height: 28px; border-radius: 999px; background: #0d6efd; color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.perf-staff-name { font-weight: 700; }
.perf-staff-meta { font-size: 12px; }
.perf-staff-total { text-align: right; font-weight: 700; }
.perf-staff-total .muted { display: block; font-weight: 400; }

@media (max-width: 860px) {
    .performance-insights { grid-template-columns: 1fr; }
}

/* Menu Builder */
.menu-builder-grid { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 12px; }
.menu-products, .menu-controls, .menu-preview-pane { background: #fff; border: 1px solid #ececec; border-radius: 8px; padding: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.menu-preview-pane { display: flex; flex-direction: column; }
.menu-product-list { max-height: 420px; overflow-y: auto; display: grid; gap: 6px; }
.menu-product-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 6px; border: 1px solid #f0f0f0; border-radius: 6px; }
.menu-product-row .muted { font-size: 12px; }
.menu-controls label { display: block; margin-top: 8px; }
.menu-file-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.menu-file-row input[type="file"] { flex: 1 1 220px; min-width: 0; }
.menu-file-row .secondary { white-space: nowrap; }
.menu-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.menu-preview { min-height: 460px; border: 1px dashed #d9d9d9; border-radius: 8px; position: relative; width: 100%; margin: 0 auto; overflow: hidden; aspect-ratio: 16 / 9; background: #fff; }
.menu-preview.menu-preview-rotated { width: 100%; min-height: 460px; aspect-ratio: 16 / 9; }
.menu-stage { position: absolute; inset: 0; overflow: visible; background-size: cover; background-position: center; }
.menu-stage.menu-stage-rotated { inset: auto; transform-origin: center center; }
.menu-stage .watermark { position: absolute; inset: 0; opacity: 0.08; background-size: contain; background-repeat: no-repeat; background-position: center; pointer-events: none; z-index: 1; }
.menu-stage .menu-items { position: relative; display: grid; align-items: start; align-content: start; column-gap: 18px; z-index: 2; min-height: 100%; }
.menu-column { display: grid; align-content: start; gap: 8px; min-height: 80px; transform-origin: top left; transition: box-shadow 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.menu-preview.menu-preview-editable .menu-column { cursor: grab; padding: 8px 10px; border-radius: 12px; border: 1px dashed #cad8f0; background: rgba(255,255,255,0.82); box-shadow: 0 8px 18px rgba(0,0,0,0.05); user-select: none; touch-action: none; }
.menu-preview.menu-preview-editable .menu-column:hover { border-color: #7ea6e0; }
.menu-preview.menu-preview-editable .menu-column.menu-column-dragging { cursor: grabbing; border-color: #0d6efd; box-shadow: 0 14px 26px rgba(13,110,253,0.16); background: rgba(255,255,255,0.95); }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; }
.menu-item .price { font-weight: 600; }
.menu-preview-empty { position: relative; z-index: 2; padding: 18px; border: 1px dashed #d6dce8; border-radius: 10px; background: rgba(255,255,255,0.72); }
.fullscreen-menu { position: fixed; inset: 0; background: #fff; z-index: 1200; overflow: auto; padding: 20px; display: grid; grid-template-rows: minmax(0,1fr) auto; gap: 10px; }
.fullscreen-menu .menu-preview { border: none; box-shadow: none; }
.fullscreen-menu .menu-preview { width: 100%; min-height: calc(100vh - 90px); aspect-ratio: auto; }
.fullscreen-menu .menu-preview.menu-preview-rotated { width: 100%; height: calc(100vh - 90px); min-height: calc(100vh - 90px); margin: 0; }
.heading-pos { display: flex; gap: 8px; }
.menu-heading { position: absolute; transform: translate(-50%, -50%); font-weight: 700; pointer-events: auto; cursor: grab; user-select: none; touch-action: none; z-index: 3; }
.menu-heading.menu-heading-dragging { cursor: grabbing; }
.menu-video-bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.15; pointer-events: none; z-index: 0; }

/* Re-cook indicators */
.recook-banner {
    margin: 8px 0;
    padding: 10px 12px;
    border: 1px dashed #ff8a80;
    background: #fff4f4;
    color: #b00020;
    font-weight: 600;
    border-radius: 8px;
}
.recook-flag {
    color: #b00020;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.flash-text {
    animation: recookflash 0.8s linear infinite alternate;
}
@keyframes recookflash {
    0% { color: #b00020; }
    100% { color: #ff4d4d; }
}

/* Online order tags */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.badge-online { background: #e7f1ff; color: #0b63d1; border: 1px solid #c5dbff; }
.badge-cash { background: #fff3cd; color: #8a6d3b; border: 1px solid #ffe8a1; }
.badge-asap { background: #e8fff2; color: #1b7a3e; border: 1px solid #c6f3d8; }
.notes-header { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.availability-inline { margin: 0; }

.promo-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.promo-product-picker { display: grid; gap: 12px; max-height: 420px; overflow-y: auto; padding-right: 4px; }
.promo-admin-category { display: grid; gap: 8px; }
.promo-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.promo-product-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid #dde6f6; border-radius: 10px; background: #fff; cursor: pointer; }
.promo-product-option.selected { border-color: #0d6efd; background: #eef5ff; }
.promo-product-option input { width: 18px; height: 18px; margin-top: 2px; }
.promo-product-name { font-weight: 700; }
.promo-product-meta { font-size: 12px; color: #667085; margin-top: 4px; }
.promo-entry-list { display: grid; gap: 10px; }
.promo-entry-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid #dfe6f4; border-radius: 12px; background: #fff; }
.promo-entry-meta { display: grid; gap: 6px; }
.promo-entry-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.promo-badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #eef5ff; color: #0d6efd; }
.promo-badge.bundle { background: #fff1e6; color: #b85b00; }

body.online-ordering-page {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0) 40%),
        linear-gradient(180deg, #eef4ff 0%, #f7f9fc 46%, #eef2f7 100%);
}

.online-nav {
    justify-content: flex-start !important;
    gap: 10px !important;
    padding-left: 12px !important;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(14px);
}

.online-shell {
    padding: 18px;
    background: transparent;
}

.online-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 22px;
    align-items: start;
}

.online-main {
    display: grid;
    gap: 22px;
}

.online-hero,
.online-feature-section,
.online-menu-section,
.online-order-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
}

.online-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(0, 123, 255, 0.06), rgba(5, 150, 105, 0.07)),
        rgba(255, 255, 255, 0.96);
}

.online-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 8px;
}

.online-hero h1,
.online-section-head h2 {
    margin: 0;
    color: #0f172a;
}

.online-hero p {
    margin: 10px 0 0;
    color: #475569;
    max-width: 700px;
}

.online-hero-card {
    min-width: 220px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, #0f172a, #1d4ed8);
    color: #fff;
    display: grid;
    gap: 6px;
    align-content: start;
}

.online-hero-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.online-hero-value {
    font-size: 20px;
    font-weight: 800;
}

.online-hero-card.is-advert {
    background: linear-gradient(135deg, #7f1d1d 0%, #7c3aed 48%, #2563eb 100%);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.24);
}

.online-hero-value.is-advert {
    font-size: clamp(18px, 2vw, 28px);
    line-height: 1.12;
    white-space: pre-line;
    text-wrap: balance;
    max-width: 340px;
}

.online-hero-card .muted.is-advert {
    color: rgba(255, 255, 255, 0.82);
}

.online-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 0;
}

.online-feature-section,
.online-menu-section {
    padding-bottom: 22px;
}

.online-category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px 22px 8px;
}

.online-category-buttons button {
    background: #e2e8f0;
    color: #0f172a;
    border: none;
    border-radius: 999px;
    padding: 10px 14px;
    font-weight: 700;
}

.online-category-buttons button.active,
.online-category-buttons button:hover {
    background: #0d6efd;
    color: #fff;
}

.online-promo-grid,
.online-product-grid {
    display: grid;
    gap: 18px;
    padding: 0 22px;
    align-items: start;
    align-content: start;
}

.online-product-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.online-promo-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
    justify-content: start;
}

.online-menu-card {
    display: grid;
    grid-template-rows: auto 1fr;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    align-self: start;
}

.online-menu-card.sold-out {
    opacity: 0.72;
}

.online-menu-media {
    position: relative;
    min-height: 170px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.online-menu-media img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    display: block;
}

.online-menu-media.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.online-menu-placeholder {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.88);
}

.online-menu-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.online-menu-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px 16px;
}

.online-menu-copy {
    display: grid;
    gap: 6px;
}

.online-menu-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.online-menu-title-row h4 {
    margin: 0;
    color: #111827;
    line-height: 1.2;
}

.online-menu-price {
    white-space: nowrap;
    font-size: 18px;
    font-weight: 900;
    color: #0d6efd;
}

.online-menu-subtitle {
    color: #1e293b;
    font-weight: 700;
    line-height: 1.35;
}

.online-menu-description {
    font-size: 13px;
    color: #475569;
    line-height: 1.45;
}

.online-menu-meta {
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

.online-menu-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.online-menu-actions .qty-input {
    width: 78px;
}

.online-promo-grid .online-menu-card {
    max-width: 320px;
}

.online-promo-grid .online-menu-media,
.online-promo-grid .online-menu-media img {
    min-height: 148px;
    height: 148px;
}

.online-promo-grid .online-menu-body {
    gap: 8px;
    padding: 12px 14px 14px;
}

.online-promo-grid .online-menu-copy {
    gap: 5px;
}

.online-promo-grid .online-menu-title-row {
    gap: 10px;
}

.online-promo-grid .online-menu-title-row h4,
.online-promo-grid .online-menu-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.online-promo-grid .online-menu-title-row h4 {
    -webkit-line-clamp: 2;
    font-size: 18px;
}

.online-promo-grid .online-menu-subtitle {
    -webkit-line-clamp: 2;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.online-promo-grid .online-menu-meta {
    font-size: 12px;
}

.online-order-pad {
    margin-top: 0;
    display: grid;
    gap: 16px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    position: sticky;
    top: 18px;
}

.online-order-card {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.online-payment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.online-payment-label {
    display: inline-block;
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0d6efd;
}

.online-payment-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.online-payment-pill.cash {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.online-payment-pill.stripe {
    background: rgba(13, 110, 253, 0.12);
    color: #0b4fc2;
}

.online-payment-pill.both {
    background: rgba(124, 58, 237, 0.12);
    color: #6d28d9;
}

.online-payment-options {
    display: grid;
    gap: 10px;
}

.online-payment-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #f8fafc;
    cursor: pointer;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.online-payment-option:hover {
    border-color: rgba(13, 110, 253, 0.32);
    box-shadow: 0 10px 18px rgba(13, 110, 253, 0.08);
    transform: translateY(-1px);
}

.online-payment-option input {
    margin-top: 3px;
}

.online-payment-option span {
    display: grid;
    gap: 4px;
}

.online-payment-option strong {
    color: #0f172a;
}

.online-payment-option small {
    color: #475569;
    line-height: 1.4;
}

.online-payment-option.selected {
    border-color: rgba(13, 110, 253, 0.42);
    background: #eef5ff;
    box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.online-payment-status-warning {
    color: #b42318;
    font-weight: 600;
}

.online-payment-status-ok {
    color: #1b7a3e;
    font-weight: 600;
}

.online-checkout-banner {
    padding: 12px 14px;
    border-radius: 14px;
    background: #eef5ff;
    border: 1px solid rgba(13, 110, 253, 0.16);
}

.online-checkout-banner.warning {
    background: #fff7ed;
    border-color: rgba(249, 115, 22, 0.18);
    color: #9a3412;
}

.online-checkout-banner.ok {
    background: #ecfdf3;
    border-color: rgba(34, 197, 94, 0.18);
    color: #166534;
}

#online-pickup-card {
    position: relative;
}

#online-pickup-card.pickup-card-flash {
    animation: pickup-card-flash 0.72s ease-in-out 3;
}

@keyframes pickup-card-flash {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
        background: #ffffff;
        transform: translateY(0);
    }
    35% {
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18);
        background: #eef5ff;
        transform: translateY(-1px);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.08);
        background: #f8fbff;
        transform: translateY(0);
    }
}

.online-order-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.online-order-header h3 {
    margin: 0 0 4px;
}

.online-total-chip {
    min-width: 112px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #0d6efd;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.online-cart-list {
    margin: 0;
}

.online-cart-list li {
    display: grid;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.online-cart-list li:last-child {
    border-bottom: none;
}

.order-line-info {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.order-line-title {
    color: #111827;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.order-line-meta {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.order-line-price {
    font-weight: 800;
    color: #111827;
}

.online-availability {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.online-confirm {
    min-height: 20px;
}

.online-details-prompt {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 800;
    color: #7a4d27;
}

.online-order-popup {
    position: fixed;
    top: 18px;
    left: 50%;
    width: min(520px, calc(100vw - 28px));
    padding: 18px 20px 16px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(44, 22, 12, 0.96) 0%, rgba(22, 12, 8, 0.96) 100%);
    border: 1px solid rgba(255, 232, 205, 0.18);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
    color: #fff6ea;
    z-index: 3200;
    transform: translate(-50%, -16px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.online-order-popup.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.online-order-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 243, 226, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #fff6ea;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.online-order-popup-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffcf90;
    margin-bottom: 8px;
}

.online-order-popup-title {
    padding-right: 72px;
    font-size: clamp(22px, 3.8vw, 30px);
    line-height: 1.05;
    font-weight: 900;
    color: #fffaf1;
    margin-bottom: 10px;
}

.online-order-popup-items {
    font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 244, 231, 0.88);
    margin-bottom: 14px;
}

.online-order-popup-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.online-order-popup-meta-card {
    display: grid;
    gap: 4px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 248, 240, 0.08);
    border: 1px solid rgba(255, 232, 205, 0.12);
}

.online-order-popup-meta-card span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 214, 160, 0.88);
}

.online-order-popup-meta-card strong {
    font-size: 15px;
    line-height: 1.35;
    color: #fffaf1;
}

.online-credit-note {
    margin: 10px 4px 2px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 9px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-align: center;
}

.online-last-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.mobile-cart-jump {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 3400;
    display: none;
    align-items: center;
    gap: 10px;
    min-width: 178px;
    max-width: min(280px, calc(100vw - 32px));
    padding: 10px 12px;
    border: 1px solid rgba(211, 154, 74, 0.42);
    border-radius: 999px;
    background: rgba(20, 13, 10, 0.96);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
    color: #fff7ed;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(18px);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.mobile-cart-jump:hover,
.mobile-cart-jump:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.4);
    outline: none;
}

.mobile-cart-jump.has-items {
    background: rgba(32, 19, 13, 0.98);
}

.mobile-cart-jump.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-cart-jump-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #d39a4a;
    color: #1f140c;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-cart-jump-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    text-align: left;
}

.mobile-cart-jump-title {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.1;
}

.mobile-cart-jump-detail {
    font-size: 12px;
    color: rgba(255, 244, 230, 0.76);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-order-card.is-highlighted {
    border-color: rgba(211, 154, 74, 0.74);
    box-shadow: 0 0 0 4px rgba(211, 154, 74, 0.14), 0 18px 36px rgba(15, 23, 42, 0.12);
}

@media (max-width: 980px) {
    body.online-ordering-page {
        padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    }

    .online-layout {
        grid-template-columns: 1fr;
    }

    .online-order-pad {
        position: static;
    }

    .mobile-cart-jump {
        display: flex !important;
    }

    .stock-audit-toolbar,
    .stock-audit-draft-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .promo-entry-card,
    .promo-admin-grid,
    .online-promo-grid,
    .online-hero {
        grid-template-columns: 1fr;
    }

    .online-product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .online-shell {
        padding: 8px 0 24px;
    }

    .online-section-head,
    .online-category-buttons,
    .online-promo-grid,
    .online-product-grid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .online-hero-card {
        min-width: 0;
    }

    .ingredient-stock-controls,
    .supplier-form-grid {
        grid-template-columns: 1fr;
    }

    .online-blocked-card-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .online-verification-entry {
        grid-template-columns: 1fr;
    }

    .online-order-popup {
        top: 12px;
        width: min(94vw, 520px);
        padding: 16px 16px 14px;
    }

    .online-order-popup-title {
        padding-right: 62px;
        font-size: 24px;
    }

    .online-order-popup-meta {
        grid-template-columns: 1fr;
    }

    .online-payment-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .stock-report-toolbar label,
    .stock-report-toolbar button {
        width: 100%;
    }

    .online-product-grid .online-menu-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        overflow: hidden;
    }

    .online-product-grid .online-menu-media {
        flex: 0 0 min(116px, 36vw);
        width: min(116px, 36vw);
        min-height: 0;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    .online-product-grid .online-menu-media img {
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        height: 100%;
        object-fit: contain;
        object-position: center center;
        background: #f0e7d7;
    }

    .online-product-grid .online-menu-body {
        flex: 1 1 auto;
        gap: 6px;
        min-width: 0;
        padding: 8px 9px 8px 7px;
    }

    .online-product-grid .online-menu-copy {
        gap: 5px;
        min-width: 0;
    }

    .online-product-grid .online-menu-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .online-product-grid .online-menu-title-row h4 {
        font-size: 15px;
    }

    .online-product-grid .online-menu-price {
        font-size: 15px;
    }

    .online-product-grid .online-menu-subtitle,
    .online-product-grid .online-menu-description,
    .online-product-grid .online-menu-meta {
        font-size: 9.5px;
        line-height: 1.22;
    }

    .online-product-grid .online-menu-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
    }

    .online-product-grid .online-menu-actions {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

    .online-product-grid .online-menu-actions .qty-input {
        width: 54px;
        min-width: 54px;
        flex: 0 0 54px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .online-product-grid .online-menu-actions button,
    .online-product-grid .online-menu-actions .sold-out-tag {
        width: auto;
        flex: 0 0 auto;
        min-width: 56px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .mobile-cart-jump {
        left: 14px;
        right: 14px;
        bottom: calc(18px + env(safe-area-inset-bottom, 0px));
        max-width: none;
        justify-content: space-between;
    }

    .mobile-cart-jump-title {
        font-size: 13px;
    }

    .mobile-cart-jump-detail {
        font-size: 11px;
    }
}

@media (max-width: 420px) {
    .online-product-grid {
        gap: 10px;
    }

    .online-product-grid .online-menu-card {
        display: flex;
    }

    .online-product-grid .online-menu-media {
        flex-basis: min(108px, 35vw);
        width: min(108px, 35vw);
        min-height: 0;
    }

    .online-product-grid .online-menu-media img {
        min-height: 0;
    }

    .online-product-grid .online-menu-body {
        gap: 5px;
        padding: 8px 8px 8px 6px;
    }

    .online-product-grid .online-menu-title-row {
        gap: 4px;
    }

    .online-product-grid .online-menu-title-row h4 {
        font-size: 14px;
    }

    .online-product-grid .online-menu-price {
        font-size: 14px;
    }

    .online-product-grid .online-menu-subtitle,
    .online-product-grid .online-menu-description,
    .online-product-grid .online-menu-meta {
        font-size: 9px;
        line-height: 1.2;
    }

    .online-product-grid .online-menu-actions {
        gap: 5px;
    }

    .online-product-grid .online-menu-actions .qty-input {
        width: 50px;
        min-width: 50px;
        flex-basis: 50px;
    }

    .online-product-grid .online-menu-actions button,
    .online-product-grid .online-menu-actions .sold-out-tag {
        min-width: 52px;
        padding: 8px 9px;
        font-size: 10px;
    }
}
.terms-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 6px; flex-wrap: wrap; }
.terms-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; }
.terms-check input { width: 16px; height: 16px; cursor: pointer; }
.terms-click-hint { font-weight: 800; color: #8d5b33; }
#terms-status { min-height: 20px; margin-bottom: 8px; }
.online-verification-box { display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #f8fafc; border: 1px solid rgba(148, 163, 184, 0.18); }
.online-verification-copy { font-size: 13px; color: #475467; line-height: 1.45; }
.online-verification-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.online-verification-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#online-verification-code { letter-spacing: 0.24em; text-align: center; font-size: 18px; font-weight: 700; }
#online-verification-status { min-height: 20px; }
.terms-warning { color: #b00020; font-weight: 600; }
.terms-ok { color: #1b7a3e; font-weight: 600; }
.online-ordering-page #terms-modal .modal-card {
    color: #2b2017;
    background: #fffaf3;
}
.online-ordering-page #terms-modal h3 {
    color: #3b2416;
}
.online-ordering-page #terms-modal .terms-copy,
.online-ordering-page #terms-modal .terms-copy p {
    color: #5a4433;
}
.online-ordering-page.modal-open {
    overflow: hidden;
}
.db-banner-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}
.db-brand-about-trigger {
    min-width: 168px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(24, 18, 15, 0.88), rgba(45, 28, 21, 0.94));
    color: #fff3df;
    border: 1px solid rgba(255, 222, 190, 0.18);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}
.db-brand-about-trigger:hover {
    filter: brightness(1.04);
}
.about-us-modal {
    z-index: 3205;
    padding: 16px;
    background: rgba(6, 4, 3, 0.78);
    backdrop-filter: blur(8px);
}
.about-us-modal-card {
    width: min(760px, calc(100vw - 32px));
    max-height: min(94vh, 980px);
    padding: 18px 18px 16px;
    border-radius: 26px;
    background: #070403;
    border: 1px solid rgba(255, 223, 190, 0.16);
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.46);
    overflow: auto;
}
.about-us-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.about-us-modal-kicker {
    color: #ffbb75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.about-us-modal-head h3 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    color: #fff3df;
}
.about-us-modal-close {
    margin: 0;
    white-space: nowrap;
}
.about-us-modal-note {
    color: rgba(255, 233, 208, 0.72);
    font-size: 13px;
    line-height: 1.5;
}
.about-us-modal-media {
    display: flex;
    justify-content: center;
    overflow: auto;
    max-height: calc(94vh - 132px);
    padding: 8px 2px 2px;
    border-radius: 20px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y pinch-zoom;
}
.about-us-modal-image {
    display: block;
    width: min(100%, 560px);
    height: auto;
    border-radius: 22px;
    border: 1px solid rgba(255, 223, 190, 0.10);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
}
.verification-warning { color: #b00020; font-weight: 600; }
.verification-ok { color: #1b7a3e; font-weight: 600; }
.terms-copy { display: grid; gap: 8px; line-height: 1.5; }
.terms-copy p { margin: 0; }

/* Dough Bludgers online ordering refresh */
body.online-ordering-page {
    --db-orange: #ff7a00;
    --db-orange-deep: #e75500;
    --db-yellow: #ffd54a;
    --db-blue: #2463ff;
    --db-blue-deep: #173b9e;
    --db-ink: #171717;
    --db-cream: #fff9ef;
    --db-white: #ffffff;
    --db-sky: #cfefff;
    position: relative;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 214, 88, 0.18), rgba(255, 214, 88, 0) 20%),
        radial-gradient(circle at 88% 12%, rgba(36, 99, 255, 0.18), rgba(36, 99, 255, 0) 20%),
        radial-gradient(circle at 78% 82%, rgba(255, 122, 0, 0.14), rgba(255, 122, 0, 0) 22%),
        linear-gradient(180deg, #050505 0%, #101010 42%, #000000 100%);
    color: #f5efe1;
}

.online-nav,
.db-brand-banner,
.online-shell {
    position: relative;
    z-index: 1;
}

.online-nav {
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 18px !important;
    background: linear-gradient(90deg, #10172b 0%, #1d2b59 100%);
    border-bottom: 3px solid rgba(255, 213, 74, 0.92);
    box-shadow: 0 10px 24px rgba(16, 23, 43, 0.16);
}

.online-nav strong {
    color: #fff6d5;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.online-nav .secondary-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    text-decoration: none;
    font-weight: 700;
}

.online-nav .secondary-link:hover {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.db-brand-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.72fr);
    gap: 24px;
    align-items: end;
    margin: 18px 18px 0;
    padding: 18px 0;
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 214, 74, 0.32), rgba(255, 214, 74, 0) 36%),
        linear-gradient(135deg, #1b2a57 0%, #2463ff 38%, #ff7a00 100%);
    border: 4px solid rgba(23, 23, 23, 0.12);
    box-shadow: 0 26px 44px rgba(23, 23, 23, 0.20);
    overflow: hidden;
}

.db-brand-main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 22px;
    align-items: end;
    min-width: 0;
    padding: 0 26px;
}

.db-brand-banner::after {
    content: "";
    position: absolute;
    inset: auto -60px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: rgba(255, 213, 74, 0.20);
    filter: blur(10px);
}

.db-brand-mark {
    width: clamp(160px, 16vw, 210px);
    height: clamp(160px, 16vw, 210px);
    display: grid;
    place-items: center;
    align-self: end;
    padding: 10px;
    margin-bottom: -4px;
    border-radius: 50%;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 250, 236, 0.98), rgba(255, 229, 166, 0.94) 62%, rgba(255, 181, 0, 0.78) 100%);
    border: 4px solid rgba(23, 23, 23, 0.26);
    box-shadow: 0 14px 24px rgba(23, 23, 23, 0.20);
}

.db-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    border: 0;
    border-radius: 50%;
    background: transparent;
    padding: 6px;
    box-sizing: border-box;
    filter: contrast(1.02) saturate(0.96);
}

.db-brand-copy,
.db-brand-side {
    position: relative;
    z-index: 1;
}

.db-brand-copy h1 {
    margin: 0 0 12px;
    font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.96;
    color: #fff7cf;
    -webkit-text-stroke: 1px rgba(23, 23, 23, 0.70);
    text-shadow: 0 4px 0 rgba(23, 23, 23, 0.42), 0 12px 28px rgba(23, 23, 23, 0.18);
    letter-spacing: 0.02em;
}

.db-brand-copy p,
.db-brand-side p {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 17px;
    line-height: 1.45;
    max-width: 760px;
}

.db-brand-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.db-brand-tags span,
.db-brand-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 249, 239, 0.96);
    border: 2px solid rgba(23, 23, 23, 0.12);
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 10px 18px rgba(23, 23, 23, 0.12);
}

.db-brand-tags span:nth-child(odd) {
    background: linear-gradient(180deg, #fff7cf, #ffd54a);
}

.db-brand-tags span:nth-child(even) {
    background: linear-gradient(180deg, #ffffff, #dce8ff);
}

.db-brand-tags span:hover {
    transform: translateY(-1px) scale(1.01);
}

.db-brand-side {
    display: grid;
    gap: 0;
    justify-items: stretch;
    align-content: center;
    align-self: center;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    padding: 6px 16px 6px 0;
    background: transparent;
    border: none;
    backdrop-filter: none;
}

.db-brand-badge {
    background: linear-gradient(180deg, #ffe58f, #ffd54a);
    color: #171717;
}

.online-shell {
    padding: 20px 18px 28px;
    background: transparent;
}

.online-layout {
    grid-template-columns: minmax(0, 1.32fr) minmax(330px, 0.72fr);
    gap: 24px;
}

.online-hero,
.online-feature-section,
.online-menu-section,
.online-order-card {
    background: rgba(255, 251, 243, 0.94);
    border: 3px solid rgba(23, 23, 23, 0.08);
    border-radius: 28px;
    box-shadow: 0 18px 34px rgba(23, 23, 23, 0.10);
}

.online-hero {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 26px;
    background:
        linear-gradient(135deg, rgba(255, 213, 74, 0.14), rgba(36, 99, 255, 0.08)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 239, 0.98));
}

.online-kicker {
    color: var(--db-blue);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.online-hero h2,
.online-section-head h2 {
    font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
    color: #171717;
    letter-spacing: 0.01em;
}

.online-hero h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 0.96;
    max-width: 650px;
}

.online-hero p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 18px;
    line-height: 1.45;
    max-width: 740px;
}

.online-hero-main {
    display: grid;
    gap: 14px;
}

.online-hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.online-hero-highlight {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid rgba(23, 23, 23, 0.08);
    box-shadow: 0 12px 20px rgba(23, 23, 23, 0.06);
}

.online-hero-highlight strong {
    color: var(--db-orange-deep);
    font-size: 15px;
}

.online-hero-highlight span {
    color: #495468;
    font-size: 13px;
    line-height: 1.45;
}

.online-hero-card {
    min-width: 0;
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(255, 213, 74, 0.30), rgba(255, 213, 74, 0) 32%),
        linear-gradient(135deg, #15254d 0%, #2463ff 48%, #ff7a00 100%);
    border: 3px solid rgba(23, 23, 23, 0.12);
    box-shadow: 0 18px 28px rgba(36, 99, 255, 0.24);
    box-sizing: border-box;
}

.db-banner-live-card {
    width: auto;
    max-width: 100%;
    min-height: 0;
}

.online-hero-label {
    color: rgba(255, 248, 221, 0.88);
    font-size: 13px;
    letter-spacing: 0.16em;
}

.online-hero-value {
    font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
    font-size: 30px;
    line-height: 1.02;
    color: #fffdf5;
    text-shadow: 0 4px 18px rgba(23, 23, 23, 0.20);
}

.online-hero-card .muted {
    color: rgba(255, 250, 238, 0.92);
    font-size: 14px;
    line-height: 1.4;
}

.online-hero-card.is-advert {
    background:
        radial-gradient(circle at top right, rgba(255, 244, 190, 0.28), rgba(255, 244, 190, 0) 30%),
        linear-gradient(135deg, #ff7a00 0%, #ffb100 28%, #2856ff 68%, #15254d 100%);
    box-shadow: 0 22px 34px rgba(23, 23, 23, 0.18);
}

.online-hero-value.is-advert {
    font-size: clamp(26px, 3vw, 44px);
    line-height: 0.98;
    max-width: 360px;
}

.online-hero-card .muted.is-advert {
    color: rgba(255, 249, 239, 0.94);
    font-weight: 600;
}

.db-banner-live-card .online-hero-value.is-advert {
    max-width: none;
}

.online-section-head {
    padding: 24px 24px 0;
}

.online-section-head h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.online-feature-section,
.online-menu-section {
    padding-bottom: 24px;
}

.online-category-buttons {
    gap: 12px;
    padding: 18px 24px 10px;
}

.online-category-buttons button {
    background: linear-gradient(180deg, #fffdf6, #ffe7ad);
    color: #171717;
    border: 2px solid rgba(23, 23, 23, 0.10);
    padding: 12px 16px;
    box-shadow: 0 10px 16px rgba(23, 23, 23, 0.06);
}

.online-category-buttons button.active,
.online-category-buttons button:hover {
    background: linear-gradient(180deg, #2463ff, #173b9e);
    color: #ffffff;
    transform: translateY(-1px);
}

.online-promo-grid,
.online-product-grid {
    gap: 20px;
    padding: 0 24px;
}

.online-menu-card {
    border: 2px solid rgba(23, 23, 23, 0.08);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 26px rgba(23, 23, 23, 0.08);
}

.online-menu-media {
    min-height: 184px;
    background: linear-gradient(135deg, #15254d, #2463ff, #ff7a00);
}

.online-menu-media img {
    min-height: 184px;
}

.online-menu-badge {
    top: 14px;
    left: 14px;
    padding: 7px 12px;
    background: rgba(23, 23, 23, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.online-menu-body {
    padding: 16px 18px 18px;
}

.online-menu-title-row h4 {
    font-size: 24px;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    font-weight: 900;
}

.online-menu-price {
    font-size: 24px;
    color: var(--db-blue);
}

.online-menu-subtitle {
    color: #293244;
}

.online-menu-meta {
    color: #5d6778;
}

.online-menu-actions {
    padding-top: 2px;
}

.online-promo-grid .online-menu-card {
    max-width: 340px;
}

.online-promo-grid .online-menu-title-row h4 {
    font-size: 20px;
}

.online-order-pad {
    gap: 18px;
    top: 20px;
}

.online-order-card {
    padding: 20px;
}

.online-order-header h3,
.online-order-card h4 {
    margin: 0;
    font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
    color: #171717;
}

.online-total-chip {
    border-radius: 18px;
    background: linear-gradient(135deg, #2463ff, #173b9e);
    box-shadow: 0 12px 20px rgba(36, 99, 255, 0.22);
}

.online-payment-label {
    color: var(--db-blue);
}

.online-payment-pill {
    min-width: 118px;
    background: linear-gradient(180deg, #fffdf6, #ffe7ad);
    border: 2px solid rgba(23, 23, 23, 0.08);
    color: #171717;
}

.online-payment-pill.cash {
    background: linear-gradient(180deg, #fff4db, #ffdba5);
    color: #9b4c00;
}

.online-payment-pill.stripe {
    background: linear-gradient(180deg, #dce8ff, #bbd0ff);
    color: #1744b4;
}

.online-payment-pill.both {
    background: linear-gradient(180deg, #efe3ff, #dbc4ff);
    color: #5f2abb;
}

.online-payment-option {
    padding: 14px 16px;
    border-radius: 18px;
    border: 2px solid rgba(23, 23, 23, 0.08);
    background: #ffffff;
}

.online-payment-option:hover {
    border-color: rgba(36, 99, 255, 0.28);
    box-shadow: 0 12px 18px rgba(36, 99, 255, 0.10);
}

.online-payment-option.selected {
    border-color: rgba(36, 99, 255, 0.38);
    background: #eef4ff;
}

.online-ordering-page input,
.online-ordering-page select,
.online-ordering-page textarea {
    border-radius: 16px;
    border: 2px solid rgba(23, 23, 23, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.online-ordering-page input:focus,
.online-ordering-page select:focus,
.online-ordering-page textarea:focus {
    border-color: rgba(36, 99, 255, 0.42);
    box-shadow: 0 0 0 4px rgba(36, 99, 255, 0.12);
    outline: none;
}

.online-availability,
.online-verification-box,
.online-checkout-banner {
    border-radius: 18px;
}

.online-verification-box {
    background: linear-gradient(180deg, #fffdf6, #fff6e1);
    border: 2px solid rgba(23, 23, 23, 0.08);
}

.online-checkout-banner {
    background: linear-gradient(180deg, #edf5ff, #dce8ff);
    border: 2px solid rgba(36, 99, 255, 0.12);
}

.online-checkout-banner.warning {
    background: linear-gradient(180deg, #fff5e8, #ffe4bf);
    border-color: rgba(255, 122, 0, 0.20);
}

.online-checkout-banner.ok {
    background: linear-gradient(180deg, #eefbf0, #d7f3dd);
}

.online-ordering-page button,
.online-ordering-page .secondary,
.online-ordering-page .danger {
    border-radius: 16px;
    font-weight: 800;
}

.online-ordering-page button:not(.secondary):not(.danger) {
    background: linear-gradient(180deg, #ff9a2f, #ff7a00);
    border: 2px solid rgba(23, 23, 23, 0.08);
    color: #171717;
    box-shadow: 0 12px 18px rgba(255, 122, 0, 0.20);
}

.online-ordering-page button:not(.secondary):not(.danger):hover {
    filter: brightness(1.02);
    transform: translateY(-1px);
}

.online-ordering-page .secondary {
    background: linear-gradient(180deg, #2a5fff, #173b9e);
    color: #ffffff;
    border: 2px solid rgba(23, 23, 23, 0.06);
    box-shadow: 0 12px 18px rgba(36, 99, 255, 0.20);
}

.online-ordering-page .danger {
    background: linear-gradient(180deg, #ff6f61, #db3d31);
    color: #ffffff;
    border: 2px solid rgba(23, 23, 23, 0.06);
}

.online-last-actions {
    margin-top: 2px;
}

@media (max-width: 1180px) {
    .db-brand-banner {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .db-brand-side {
        width: 100%;
    }

    .db-brand-main {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 0;
    }

    .online-hero-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .db-brand-banner {
        margin: 14px 14px 0;
        padding: 18px 18px 20px;
    }

    .online-shell {
        padding: 16px 14px 24px;
    }

    .online-layout {
        grid-template-columns: 1fr;
    }

    .online-order-pad {
        position: static;
    }
}

@media (max-width: 700px) {
    .db-banner-actions {
        width: 100%;
        padding: 0 12px 12px;
        justify-content: center;
    }

    .db-brand-about-trigger {
        width: min(100%, 320px);
    }

    .about-us-modal {
        padding: 10px;
    }

    .about-us-modal-card {
        width: calc(100vw - 20px);
        padding: 12px;
        border-radius: 20px;
    }

    .about-us-modal-head {
        gap: 10px;
    }

    .about-us-modal-head h3 {
        font-size: 26px;
    }

    .about-us-modal-media {
        max-height: calc(92vh - 116px);
        padding: 6px 0 2px;
    }

    .about-us-modal-image {
        width: 100%;
        max-width: 360px;
    }

    .online-nav {
        flex-wrap: wrap;
        justify-content: center !important;
    }

    .db-brand-banner {
        justify-items: center;
        text-align: center;
        align-items: center;
    }

    .db-brand-main {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .db-brand-side {
        justify-items: center;
        width: 100%;
    }

    .db-brand-mark {
        margin-bottom: 0;
        width: min(210px, 62vw);
        height: min(210px, 62vw);
        align-self: center;
    }

    .db-brand-copy p,
    .db-brand-side p {
        font-size: 15px;
    }

    .online-hero {
        padding: 20px;
    }

    .online-hero h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .online-hero-highlights {
        grid-template-columns: 1fr;
    }

    .online-shell {
        padding: 8px 0 24px;
    }

    .online-section-head,
    .online-category-buttons,
    .online-promo-grid,
    .online-product-grid {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Urban modern Dough Bludgers refresh */
body.online-ordering-page {
    background-color: #090807;
    background-image:
        radial-gradient(rgba(255, 248, 236, 0.035) 0.8px, transparent 0.8px),
        radial-gradient(rgba(255, 248, 236, 0.025) 0.8px, transparent 0.8px);
    background-size: 12px 12px, 18px 18px;
    background-position: 0 0, 6px 8px;
    color: #f3ead9;
}

.db-brand-banner {
    display: block;
    gap: 0;
    padding: 0;
    min-height: 0;
    isolation: isolate;
    background: #120b08;
    border: 1px solid rgba(97, 65, 42, 0.92);
    box-shadow: 0 28px 52px rgba(0, 0, 0, 0.40);
}

.db-brand-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0) 22%),
        linear-gradient(90deg, rgba(17, 12, 10, 0.24) 0%, rgba(17, 12, 10, 0.08) 100%);
    pointer-events: none;
    z-index: 0;
}

.db-brand-main {
    display: block;
    width: 100%;
    padding: 0;
}

.db-brand-copy {
    position: static;
    min-width: 0;
}

.db-brand-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.db-brand-art-frame {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 1983 / 793;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    border: 0;
    background: #060403;
    box-shadow: none;
}

.db-brand-art-frame::before {
    display: none;
}

.db-brand-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    transform-origin: center center;
    filter: saturate(1.03) contrast(1.04);
    user-select: none;
    pointer-events: none;
}

.db-brand-mark {
    display: none;
}

.db-brand-copy h1:not(.db-brand-sr-only) {
    font-family: "Cooper Black", "Bookman Old Style", "Arial Rounded MT Bold", Georgia, serif;
    font-weight: 900;
    color: #f2e4cb;
    -webkit-text-stroke: 0;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.56), 0 10px 26px rgba(0, 0, 0, 0.34);
    font-size: clamp(40px, 5vw, 74px);
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.db-brand-copy p {
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2.2vw, 38px);
    font-weight: 700;
    line-height: 1.08;
    color: #ef4d44;
    max-width: 520px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.42);
}

.db-brand-tags {
    display: none;
}

.db-brand-tags span,
.db-brand-tags span:nth-child(odd),
.db-brand-tags span:nth-child(even),
.db-brand-badge {
    background: rgba(239, 225, 196, 0.92);
    color: #171310;
    border: 1px solid rgba(23, 19, 16, 0.14);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(6px);
}

.db-brand-side {
    position: absolute;
    top: auto;
    right: 34px;
    bottom: 72px;
    z-index: 4;
    align-content: end;
    justify-items: end;
    width: min(376px, calc(100% - 68px));
    padding: 0;
    box-sizing: border-box;
}

.online-hero-card,
.online-hero-card.is-advert {
    width: 100%;
    padding: 19px 21px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(38, 31, 27, 0.72), rgba(18, 15, 13, 0.88));
    border: 1px solid rgba(255, 224, 193, 0.16);
    box-shadow: 0 24px 36px rgba(0, 0, 0, 0.30);
    backdrop-filter: blur(12px);
}

.db-banner-live-card {
    width: auto;
    max-width: 100%;
    min-height: 0;
}

.online-hero-label {
    color: #f1bd7d;
    font-size: 11px;
    letter-spacing: 0.18em;
}

.online-hero-value {
    color: #fff4e0;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.online-hero-card .muted,
.online-hero-card .muted.is-advert {
    color: rgba(246, 226, 200, 0.88);
    margin-top: 8px;
    font-size: 11px;
}

.db-banner-live-card .online-hero-value.is-advert {
    font-size: clamp(20px, 2.1vw, 32px);
    line-height: 0.97;
    max-width: none;
}

.online-shell {
    padding: 22px 18px 36px;
}

.online-layout {
    gap: 24px;
}

.online-hero,
.online-feature-section,
.online-menu-section,
.online-order-card {
    background: #f1e8da;
    border: 1px solid #493628;
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.24);
}

.online-hero {
    background: #f3eadc;
}

.online-kicker {
    color: #8d5b33;
}

.online-hero h2,
.online-section-head h2,
.online-order-header h3,
.online-order-card h4 {
    color: #1b1714;
}

.online-hero p {
    color: #40372e;
}

.online-hero-highlight {
    background: #fbf6ee;
    border: 1px solid rgba(73, 54, 40, 0.14);
    box-shadow: none;
}

.online-hero-highlight strong {
    color: #8d5b33;
}

.online-hero-highlight span {
    color: #54493d;
}

.online-category-buttons button {
    background: #1b1714;
    color: #f0e2c8;
    border: 1px solid #62472e;
    box-shadow: none;
}

.online-category-buttons button.active,
.online-category-buttons button:hover {
    background: #d39a58;
    color: #171310;
    border-color: #d39a58;
}

.online-menu-card {
    border: 1px solid rgba(73, 54, 40, 0.18);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.online-menu-media {
    background: #171310;
}

.online-menu-badge {
    background: rgba(23, 19, 16, 0.88);
    border: 1px solid rgba(255, 248, 236, 0.18);
}

.online-menu-price {
    color: #8d5b33;
}

.online-menu-subtitle {
    color: #2c251e;
}

.online-menu-description {
    color: #51453a;
}

.online-menu-meta {
    color: #6a5c4f;
}

.online-total-chip {
    background: #1a1714;
    color: #f5ecdd;
    box-shadow: none;
    border: 1px solid #62472e;
}

.online-payment-label {
    color: #8d5b33;
}

.online-payment-pill,
.online-payment-pill.cash,
.online-payment-pill.stripe,
.online-payment-pill.both {
    background: #e9d3b7;
    color: #1b1714;
    border: 1px solid rgba(73, 54, 40, 0.16);
}

.online-payment-option {
    background: #fffaf2;
    border: 1px solid rgba(73, 54, 40, 0.14);
}

.online-payment-option:hover {
    border-color: rgba(141, 91, 51, 0.42);
    box-shadow: none;
}

.online-payment-option.selected {
    background: #f7ecdb;
    border-color: #c08a50;
}

.online-ordering-page input,
.online-ordering-page select,
.online-ordering-page textarea {
    background: #fffaf2;
    border: 1px solid rgba(73, 54, 40, 0.18);
    box-shadow: none;
}

.online-ordering-page input:focus,
.online-ordering-page select:focus,
.online-ordering-page textarea:focus {
    border-color: #c08a50;
    box-shadow: 0 0 0 3px rgba(192, 138, 80, 0.18);
}

.online-availability,
.online-verification-box,
.online-checkout-banner {
    background: #fbf6ee;
    border: 1px solid rgba(73, 54, 40, 0.14);
}

.online-checkout-banner.warning {
    background: #f7ebdc;
    border-color: rgba(141, 91, 51, 0.20);
}

.online-checkout-banner.ok {
    background: #edf3ea;
}

.online-ordering-page button:not(.secondary):not(.danger) {
    background: #d39a58;
    color: #171310;
    border: 1px solid #b57f45;
    box-shadow: none;
}

.online-ordering-page .secondary {
    background: #1a1714;
    color: #f5ecdd;
    border: 1px solid #62472e;
    box-shadow: none;
}

.online-ordering-page .danger {
    background: #8c4037;
    color: #fff6ef;
    border: 1px solid #70352e;
}

@media (max-width: 1180px) {
    .db-brand-banner {
        min-height: 0;
    }

    .db-brand-main {
        padding: 0;
    }

    .db-brand-side {
        right: 18px;
        bottom: 52px;
        width: min(330px, calc(100% - 36px));
    }
}

@media (max-width: 700px) {
    .db-brand-banner {
        margin: 8px 2px 0;
    }

    .db-brand-banner::after {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 22%),
            linear-gradient(180deg, rgba(17, 12, 10, 0.02) 0%, rgba(17, 12, 10, 0.24) 54%, rgba(17, 12, 10, 0.46) 100%);
    }

    .db-brand-main {
        position: relative;
        padding: 0;
    }

    .db-brand-copy {
        min-width: 0;
    }

    .db-brand-art-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 1983 / 793;
        border-radius: 0;
    }

    .db-brand-art-frame::before {
        display: none;
    }

    .db-brand-art {
        object-position: center center;
        transform: none;
    }

    .db-brand-side {
        position: static;
        top: auto;
        right: auto;
        width: 100%;
        margin-top: 0;
        padding: 12px;
        justify-items: stretch;
        align-content: start;
        box-sizing: border-box;
    }

    .online-hero-card,
    .online-hero-card.is-advert {
        width: min(100%, 320px);
        margin-left: auto;
        max-width: none;
        padding: 16px 16px 14px;
    }
}

.cart-add-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 3200;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    width: min(360px, calc(100vw - 24px));
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(211, 154, 88, 0.34);
    background: rgba(23, 19, 16, 0.96);
    color: #f8efe3;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.cart-add-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cart-add-toast-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.cart-add-toast-title {
    font-size: 15px;
    line-height: 1.25;
    color: #fffaf4;
}

.cart-add-toast-detail {
    font-size: 13px;
    color: rgba(248, 239, 227, 0.78);
}

.cart-add-toast-qty {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0 14px;
    border-radius: 999px;
    background: #d39a58;
    color: #171310;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

@media (max-width: 700px) {
    .cart-add-toast {
        right: 12px;
        left: 12px;
        bottom: 12px;
        width: auto;
    }

    .online-order-popup-close {
        top: 10px;
        right: 10px;
    }
}

.db-banner-actions {
    align-items: center;
}

.db-brand-install-link,
.db-brand-install-button {
    text-decoration: none;
}

.db-brand-install-button {
    display: none;
}

.pwa-install-ready .db-brand-install-button {
    display: inline-flex;
}

.pwa-standalone .db-brand-install-link,
.pwa-standalone .db-brand-install-button {
    display: none;
}

.app-download-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(247, 34, 31, 0.08), rgba(244, 244, 244, 0.96) 42%),
        #f4f4f4;
}

.app-download-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(24px, env(safe-area-inset-bottom, 0px));
}

.app-download-hero {
    width: min(720px, 100%);
    text-align: center;
}

.app-download-brand {
    display: block;
    width: min(100%, 620px);
    height: auto;
    margin: 0 auto 24px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(10, 31, 63, 0.18);
}

.app-download-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-download-primary,
.app-download-secondary {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
}

.app-download-primary {
    border: 0;
    color: #ffffff;
    background: #f7221f;
    box-shadow: 0 12px 28px rgba(247, 34, 31, 0.24);
}

.app-download-secondary {
    color: #0a1f3f;
    background: #ffffff;
    border: 1px solid #d9e6ff;
}

.app-download-manual {
    display: none;
    max-width: 460px;
    margin: 18px auto 0;
    color: #31415f;
    line-height: 1.5;
}

.pwa-show-manual-install .app-download-manual {
    display: block;
}

.pwa-standalone .app-download-primary {
    display: none;
}

@media (max-width: 640px) {
    .online-ordering-page {
        overflow-x: hidden;
    }

    .db-brand-banner,
    .online-shell,
    .online-menu-section,
    .online-order-card,
    .online-feature-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .online-order-header {
        flex-wrap: wrap;
    }

    .online-total-chip {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .db-brand-banner {
        margin-left: 0;
        margin-right: 0;
    }

    .db-brand-side .online-hero-card,
    .db-brand-side .online-hero-card.is-advert {
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .db-banner-actions {
        width: 100%;
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
        padding: 0;
        box-sizing: border-box;
    }

    .db-brand-install-link,
    .db-brand-install-button,
    .db-brand-about-trigger {
        flex: 1 1 calc(50% - 8px);
        width: calc(50% - 8px);
        min-width: 0;
        max-width: none;
        min-height: 42px;
        padding: 0 14px;
        font-size: 14px;
        white-space: nowrap;
    }

    .app-download-brand {
        border-radius: 12px;
        margin-bottom: 18px;
    }

    .app-download-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}


