/* Guest ordering chrome + cart */
.alvita-order-chrome {
    position: sticky;
    top: 0;
    z-index: 120;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 1rem;
    padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.alvita-lang-switch {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}

.alvita-lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.35rem;
    height: 1.85rem;
    padding: 0 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-decoration: none;
    color: #64748b;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.alvita-lang-link:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.alvita-lang-link.is-active {
    background: #0f172a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.alvita-table-banner {
    flex: 1 1 12rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    min-width: 0;
    line-height: 1.4;
}

.alvita-table-banner--browse {
    color: #475569;
    font-weight: 500;
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.alvita-table-banner--warn {
    color: #b45309;
    width: 100%;
    flex-basis: 100%;
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.alvita-table-banner--demo {
    color: #1d4ed8;
    text-align: left;
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    font-weight: 600;
}

.alvita-waiter-call {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin: 0.7rem auto 0;
    max-width: 1100px;
    padding: 0 1rem;
}
.alvita-waiter-call__button {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.65rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(15, 118, 110, 0.35);
    border-radius: 999px;
    background: #ecfeff;
    color: #115e59;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 160ms ease, transform 160ms ease;
}
.alvita-waiter-call__button:hover:not(:disabled) { transform: translateY(-1px); }
.alvita-waiter-call__button:disabled { cursor: default; opacity: 0.78; }
.alvita-waiter-call__button:focus-visible { outline: 3px solid rgba(13, 148, 136, 0.45); outline-offset: 3px; }
.alvita-waiter-call__status { margin: 0; color: #0f766e; font-size: 0.9rem; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .alvita-waiter-call__button { transition: none; } }

.alvita-cart-fab {
    position: fixed;
    right: max(0.85rem, env(safe-area-inset-right, 0px));
    bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    z-index: 6000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    padding: 0.8rem 1.15rem;
    background: #0f172a;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    cursor: pointer;
    max-width: min(12rem, calc(50vw - 1.5rem));
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

body.ai-chef-dialog-open .alvita-cart-fab {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

body.alvita-dialog-open .ai-chef-fab {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}
#alvita-cart-count {
    background: #38bdf8;
    color: #0f172a;
    border-radius: 999px;
    min-width: 1.4rem;
    height: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}
.alvita-cart-fab.is-pulse {
    animation: alvita-cart-pulse 0.65s ease;
}
@keyframes alvita-cart-pulse {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.06); }
    70% { transform: scale(0.98); }
}
.alvita-toast-region {
    position: fixed;
    left: 50%;
    bottom: max(5.5rem, calc(env(safe-area-inset-bottom, 0px) + 4.75rem));
    transform: translateX(-50%);
    z-index: 7030;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}
.alvita-toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #0f172a;
    color: #f8fafc;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
    pointer-events: auto;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
}
.alvita-toast__msg {
    flex: 1;
    min-width: 0;
}
.alvita-toast__action {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    color: #7dd3fc;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0;
    white-space: nowrap;
}
.alvita-toast__action:hover,
.alvita-toast__action:focus-visible {
    color: #bae6fd;
    outline: none;
}
@media (prefers-reduced-motion: reduce) {
    .alvita-cart-fab.is-pulse {
        animation: none;
    }
}

.alvita-cart-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(100vw, 380px);
    z-index: 60;
    background: #fff;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
}
.alvita-cart-panel[hidden] { display: none !important; }
.alvita-order-review[hidden] { display: none !important; }
.alvita-cart-header { display: flex; justify-content: space-between; align-items: center; }
.alvita-cart-header h2 { margin: 0; font-size: 1.1rem; }
.alvita-cart-header button { border: none; background: transparent; font-size: 1.5rem; cursor: pointer; }
.alvita-cart-lines { flex: 1; overflow: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
.alvita-cart-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #e2e8f0;
}
.alvita-cart-line-controls { display: flex; gap: 0.35rem; align-items: center; }
.alvita-cart-line-controls button {
    width: 1.75rem; height: 1.75rem; border-radius: 6px; border: 1px solid #cbd5e1; background: #f8fafc; cursor: pointer;
}
.alvita-cart-field { display: block; margin-bottom: 0.75rem; font-size: 0.85rem; }
.alvita-cart-field input, .alvita-cart-field textarea {
    width: 100%; margin-top: 0.25rem; padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 8px;
    font: inherit;
}
.alvita-cart-footer { border-top: 1px solid #e2e8f0; padding-top: 0.75rem; }
.alvita-cart-total { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 1rem; }
.alvita-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.alvita-cart-submit {
    width: 100%; border: none; border-radius: 10px; padding: 0.85rem; background: #0284c7; color: #fff; font-weight: 700; cursor: pointer;
}
.alvita-cart-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.alvita-cart-continue {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.85rem;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.alvita-cart-msg { min-height: 1.2rem; font-size: 0.85rem; color: #0369a1; }
.alvita-cart-msg.is-error { color: #b91c1c; }
.alvita-my-bill { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px dashed #cbd5e1; font-size: 0.85rem; }
.alvita-add-btn {
    margin-top: 0.5rem;
    border: 1px solid currentColor;
    background: transparent;
    border-radius: 8px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    min-height: 2.5rem;
}
.alvita-item-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}
.alvita-item-order-actions .alvita-add-btn { margin-top: 0; }
.alvita-customize-btn {
    min-height: 2.5rem;
    border: 1px solid #94a3b8;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: pointer;
}
.alvita-discard-ingredients-btn {
    border-color: #f59e0b;
    color: #92400e;
    background: #fffbeb;
}
.alvita-discard-ingredients-btn:hover { background: #fef3c7; }
@media (max-width: 420px) {
    .alvita-item-order-actions > button { flex: 1 1 auto; }
}

/* Dark templates: keep chrome readable without fighting the theme */
.tpl-neon .alvita-order-chrome,
.tpl-luxe .alvita-order-chrome {
    background: rgba(8, 8, 16, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}
.tpl-neon .alvita-lang-switch,
.tpl-luxe .alvita-lang-switch {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: none;
}
.tpl-neon .alvita-lang-link,
.tpl-luxe .alvita-lang-link {
    color: #94a3b8;
}
.tpl-neon .alvita-lang-link:hover,
.tpl-luxe .alvita-lang-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
}
.tpl-neon .alvita-lang-link.is-active,
.tpl-luxe .alvita-lang-link.is-active {
    background: #f8fafc;
    color: #0f172a;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.tpl-neon .alvita-table-banner,
.tpl-luxe .alvita-table-banner {
    color: #f1f5f9;
}
.tpl-neon .alvita-table-banner--browse,
.tpl-luxe .alvita-table-banner--browse {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.tpl-neon .alvita-table-banner--warn,
.tpl-luxe .alvita-table-banner--warn {
    color: #fcd34d;
    background: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.28);
}

.tpl-neon .alvita-table-banner--demo,
.tpl-luxe .alvita-table-banner--demo {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(147, 197, 253, 0.35);
}

@media (max-width: 768px) {
    .alvita-order-chrome {
        gap: 0.5rem;
        padding-left: max(0.85rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.85rem, env(safe-area-inset-right, 0px));
    }
    .alvita-table-banner {
        flex-basis: 100%;
        text-align: left;
        font-size: 0.78rem;
    }
    .alvita-cart-fab {
        padding: 0.8rem 1.05rem;
        font-size: 0.9rem;
    }
    .alvita-cart-panel {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: 100%;
        max-height: min(92dvh, 92vh);
        border-radius: 1.1rem 1.1rem 0 0;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
        padding-top: 0.85rem;
    }
}

/* RTL (Arabic) */
html[dir="rtl"] .alvita-order-chrome {
    flex-direction: row-reverse;
}
html[dir="rtl"] .alvita-cart-fab {
    right: auto;
    left: 1rem;
}
html[dir="rtl"] .alvita-cart-panel {
    right: auto;
    left: 0;
}
html[dir="rtl"] .alvita-cart-line,
html[dir="rtl"] .alvita-cart-total {
    flex-direction: row-reverse;
}
html[dir="rtl"] .nav-arrow-left,
html[dir="rtl"] .nav-arrow-right {
    transform: scaleX(-1);
}
@media (max-width: 640px) {
    html[dir="rtl"] .alvita-cart-panel {
        left: 0;
        right: 0;
    }
}

/* Accessible cart and modifier dialogs sit above the sticky menu chrome. */
body.alvita-dialog-open { overflow: hidden; }
.alvita-cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 6010;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(2px);
}
.alvita-cart-panel {
    z-index: 6020;
    overscroll-behavior: contain;
}
.alvita-modifier-sheet {
    position: fixed;
    z-index: 6030;
    right: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: min(100vw - 2rem, 32rem);
    max-height: min(82dvh, 42rem);
    overflow: auto;
    transform: translateX(50%);
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}
.alvita-modifier-sheet[hidden] { display: none !important; }
.alvita-modifier-item { margin: 0.75rem 0; color: #475569; font-weight: 600; }
.alvita-option-group {
    margin: 0 0 0.9rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}
.alvita-option-group legend { padding: 0 0.25rem; font-weight: 700; }
.alvita-option-choice {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.35rem 0;
    cursor: pointer;
}
.alvita-option-choice input { width: 1.1rem; height: 1.1rem; }
.alvita-removal-warning {
    margin: 0.75rem 0;
    padding: 0.7rem 0.8rem;
    border-left: 4px solid #d97706;
    border-radius: 0.5rem;
    background: #fffbeb;
    color: #78350f;
    font-size: 0.82rem;
    line-height: 1.45;
}
.alvita-removal-summary,
.order-removal {
    display: block;
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}
.floor-order-line-detail { white-space: pre-line; }
.alvita-modifier-actions { display: flex; gap: 0.75rem; margin-top: 1rem; }
.alvita-modifier-actions > * { flex: 1; }
.alvita-modifier-cancel {
    min-height: 2.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.alvita-line-note {
    display: block;
    width: 100%;
    min-height: 2.4rem;
    margin-top: 0.45rem;
    padding: 0.4rem 0.5rem;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    font: inherit;
    font-size: 0.8rem;
}
.alvita-cart-line-controls button,
.alvita-cart-header button,
.alvita-add-btn,
.alvita-cart-submit { min-height: 2.75rem; }
.alvita-cart-line-controls button { min-width: 2.25rem; }
.alvita-cart-fab:focus-visible,
.alvita-cart-panel button:focus-visible,
.alvita-cart-panel input:focus-visible,
.alvita-cart-panel textarea:focus-visible,
.alvita-modifier-sheet button:focus-visible,
.alvita-modifier-sheet input:focus-visible,
.alvita-add-btn:focus-visible,
.alvita-customize-btn:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}
@media (max-width: 768px) {
    .alvita-modifier-sheet {
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(92dvh, 92vh);
        transform: none;
        border-radius: 1.1rem 1.1rem 0 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .alvita-cart-fab,
    .alvita-cart-panel,
    .alvita-modifier-sheet { transition: none !important; }
}

/* Refined guest basket: calm hierarchy, compact item editing, stable checkout. */
.alvita-cart-panel {
    width: min(100vw, 27rem);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 1.25rem 0 0 1.25rem;
}
.alvita-cart-header {
    position: relative;
    position: sticky;
    top: 0;
    z-index: 3;
    min-height: 4.5rem;
    padding: 1.25rem 1.25rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e8edf3;
}
.alvita-cart-header h2 {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}
.alvita-cart-header button {
    display: inline-grid;
    width: 2.5rem;
    height: 2.5rem;
    place-items: center;
    border: 1px solid #d7e0eb;
    border-radius: 0.75rem;
    background: #fff;
    color: #0f172a;
    font-size: 1.35rem;
}
.alvita-cart-lines {
    flex: 0 0 auto;
    min-height: auto;
    margin: 0;
    overflow: visible;
    padding: 0.9rem 1rem 0.45rem;
    background: #fbfcfe;
}
.alvita-cart-line {
    display: block;
    margin-bottom: 0.7rem;
    padding: 0.85rem;
    border: 1px solid #e4eaf1;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.alvita-cart-line-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}
.alvita-cart-line-details { min-width: 0; }
.alvita-cart-line-details strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 0.95rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.alvita-line-meta {
    margin-top: 0.22rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}
.alvita-line-removals-action {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    margin-top: 0.5rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #f59e0b;
    border-radius: 0.6rem;
    background: #fffbeb;
    color: #92400e;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
}
.alvita-line-removals-action:hover { background: #fef3c7; }
.alvita-line-removals-action:focus-visible {
    outline: 3px solid rgba(14, 165, 233, 0.45);
    outline-offset: 2px;
}
.alvita-cart-line-controls {
    display: grid;
    grid-template-columns: 2.25rem 1.7rem 2.25rem 2rem;
    gap: 0.2rem;
    align-items: center;
}
.alvita-cart-line-controls button {
    width: auto;
    min-width: 0;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0;
    border: 1px solid #d7e0eb;
    border-radius: 0.6rem;
    background: #f8fafc;
    color: #1e293b;
    font-size: 1.05rem;
    line-height: 1;
}
.alvita-cart-line-controls span {
    color: #172033;
    font-size: 0.86rem;
    font-weight: 800;
    text-align: center;
}
.alvita-cart-line-controls button[data-act="rm"] {
    margin-left: 0.18rem;
    border-color: transparent;
    background: transparent;
    color: #94a3b8;
    font-size: 1.15rem;
}
.alvita-line-note-toggle {
    display: inline-flex;
    max-width: 100%;
    min-height: 1.8rem;
    margin-top: 0.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #0f7cba;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.alvita-line-note {
    display: none;
    width: 100%;
    min-height: 2.5rem;
    margin-top: 0.35rem;
    padding: 0.55rem 0.65rem;
    resize: none;
    border: 1px solid #cdd9e6;
    border-radius: 0.65rem;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    font-size: 0.82rem;
}
.alvita-cart-line.is-note-open .alvita-line-note { display: block; }
@media (max-width: 420px) {
    .alvita-line-removals-action { width: 100%; justify-content: center; }
}
.alvita-cart-field {
    margin: 0;
    padding: 0.55rem 1rem;
    background: #fff;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 700;
}
.alvita-cart-field input,
.alvita-cart-field textarea {
    min-height: 2.6rem;
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    border-color: #d5e0eb;
    border-radius: 0.7rem;
    background: #fbfcfe;
}
.alvita-cart-field textarea { min-height: 3.4rem; resize: vertical; }
.alvita-cart-footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 0.35rem;
    padding: 0.9rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}
.alvita-cart-total {
    margin-bottom: 0.8rem;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 700;
}
.alvita-cart-total strong {
    color: #0f172a;
    font-size: 1.15rem;
}
.alvita-cart-actions {
    gap: 0.65rem;
}
.alvita-cart-submit {
    min-height: 3rem;
    border-radius: 0.85rem;
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 8px 18px rgba(2, 132, 199, 0.2);
}
.alvita-cart-continue {
    min-height: 2.85rem;
    border-radius: 0.85rem;
    border-color: #d0d9e4;
    background: #f8fafc;
    color: #334155;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.alvita-cart-continue:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}
.alvita-cart-continue:active {
    background: #e2e8f0;
}
.alvita-cart-continue:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.alvita-cart-msg { margin: 0.5rem 0 0; text-align: center; }
.alvita-my-bill {
    margin: 0;
    padding: 0.65rem 1rem max(1rem, env(safe-area-inset-bottom, 0px));
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
}
.alvita-my-bill summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.9rem;
    cursor: pointer;
    list-style: none;
    color: #172033;
    font-size: 0.9rem;
    font-weight: 800;
}
.alvita-my-bill > summary::-webkit-details-marker { display: none; }
.alvita-my-bill > summary::after {
    margin-left: auto;
    color: #64748b;
    content: "+";
    font-size: 1.25rem;
    font-weight: 500;
}
.alvita-my-bill[open] > summary::after { content: "−"; }
.alvita-my-bill-orders { display: grid; gap: 0.55rem; padding: 0.2rem 0 0.7rem; }
.alvita-my-bill-order {
    overflow: hidden;
    border: 1px solid #dbe5ee;
    border-radius: 0.85rem;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}
.alvita-my-bill-order > summary {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.7rem;
    padding: 0.55rem 0.7rem;
    cursor: pointer;
    list-style: none;
}
.alvita-my-bill-order > summary::-webkit-details-marker { display: none; }
.alvita-my-bill-order > summary::after {
    flex: 0 0 auto;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: #eff6ff;
    color: #0369a1;
    content: "+";
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45rem;
    text-align: center;
}
.alvita-my-bill-order[open] > summary { border-bottom: 1px solid #e8edf3; }
.alvita-my-bill-order[open] > summary::after { content: "−"; }
.alvita-my-bill-order__meta { display: grid; min-width: 0; gap: 0.22rem; }
.alvita-my-bill-order__meta > strong { color: #172033; font-size: 0.86rem; }
.alvita-my-bill-order__amount { margin-left: auto; color: #172033; font-size: 0.88rem; white-space: nowrap; }
.alvita-my-bill-order__status {
    justify-self: start;
    padding: 0.18rem 0.42rem;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1.1;
}
.alvita-my-bill-order__status.is-ready,
.alvita-my-bill-order__status.is-served { background: #dcfce7; color: #15803d; }
.alvita-my-bill-order__status.is-voided { background: #fee2e2; color: #b91c1c; }
.alvita-my-bill-order__lines { padding: 0.15rem 0.7rem 0.7rem; }
.alvita-my-bill-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f0f3f6;
    color: #475569;
    font-size: 0.78rem;
}
.alvita-my-bill-line > div { display: grid; gap: 0.16rem; min-width: 0; }
.alvita-my-bill-line > div:first-child > strong { color: #334155; overflow-wrap: anywhere; }
.alvita-my-bill-line > div:first-child > span { color: #64748b; font-style: italic; overflow-wrap: anywhere; }
.alvita-my-bill-line > div:last-child { text-align: right; white-space: nowrap; }
.alvita-my-bill-line > div:last-child > span { color: #64748b; }
.alvita-my-bill-line > div:last-child > strong { color: #334155; }
.alvita-my-bill-order__total,
.alvita-my-bill-total { display: flex; justify-content: space-between; align-items: center; }
.alvita-my-bill-order__total { padding-top: 0.7rem; color: #475569; font-size: 0.8rem; font-weight: 700; }
.alvita-my-bill-order__total strong { color: #172033; }
.alvita-my-bill-total {
    margin: 0.1rem 0 0.75rem;
    padding: 0.8rem 0 0;
    border-top: 1px solid #cbd5e1;
    color: #475569;
    font-size: 0.86rem;
    font-weight: 750;
}
.alvita-my-bill-total strong { color: #0f172a; font-size: 1.05rem; }
.alvita-my-bill-refresh {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.8rem;
    border: 1px solid #b8d5e8;
    border-radius: 0.7rem;
    background: #fff;
    color: #0369a1;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 750;
    cursor: pointer;
}
.alvita-my-bill-refresh:hover { background: #f0f9ff; }
.alvita-my-bill-refresh:disabled { cursor: wait; opacity: 0.65; }
.alvita-my-bill-status {
    min-height: 1.2rem;
    margin: 0.45rem 0 0;
    color: #475569;
    font-size: 0.78rem;
    text-align: center;
}
/* The mobile Chef sheet occupies the lower viewport. Keep add-to-basket feedback
   above the sheet rather than silently rendering it underneath the dialog. */
body.ai-chef-dialog-open .alvita-toast-region {
    top: max(1rem, env(safe-area-inset-top, 0px));
    bottom: auto;
}
.alvita-order-review {
    position: fixed;
    z-index: 6040;
    right: 50%;
    bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    width: min(calc(100vw - 2rem), 27rem);
    max-height: min(82dvh, 42rem);
    overflow: auto;
    transform: translateX(50%);
    border-radius: 1.25rem;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
}
.alvita-order-review__body { padding: 0.25rem 1rem 1rem; }
.alvita-order-review__prompt { margin: 0.35rem 0; color: #172033; font-weight: 750; }
.alvita-order-review__count { margin: 0 0 0.75rem; color: #64748b; font-size: 0.85rem; font-weight: 700; }
.alvita-order-review__lines { border-top: 1px solid #e8edf3; }
.alvita-order-review__line { display: flex; justify-content: space-between; gap: 1rem; padding: 0.72rem 0; border-bottom: 1px solid #e8edf3; color: #334155; font-size: 0.9rem; }
.alvita-order-review__line span:last-child { flex: 0 0 auto; color: #172033; font-weight: 700; }
.alvita-order-review__optional-details {
    margin-top: 0.8rem;
    border: 1px solid #dbe5ee;
    border-radius: 0.85rem;
    background: #f8fafc;
}
.alvita-order-review__optional-details > summary {
    display: flex;
    align-items: center;
    min-height: 2.9rem;
    padding: 0.45rem 0.75rem;
    cursor: pointer;
    list-style: none;
    color: #0369a1;
    font-size: 0.84rem;
    font-weight: 800;
}
.alvita-order-review__optional-details > summary::-webkit-details-marker { display: none; }
.alvita-order-review__optional-details > summary > span { min-width: 0; }
.alvita-order-review__optional-details > summary::after {
    width: 1.45rem;
    height: 1.45rem;
    margin-left: auto;
    border-radius: 50%;
    background: #e0f2fe;
    content: "+";
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35rem;
    text-align: center;
}
.alvita-order-review__optional-details[open] > summary { border-bottom: 1px solid #dbe5ee; }
.alvita-order-review__optional-details[open] > summary::after { content: "−"; }
.alvita-order-review__fields { padding: 0 0.75rem 0.75rem; }
.alvita-order-review__fields .alvita-cart-field { padding: 0; }
.alvita-order-review__fields .alvita-cart-field + .alvita-cart-field { margin-top: 0.75rem; }
.alvita-order-review__details-done {
    width: 100%;
    min-height: 2.75rem;
    margin-top: 0.8rem;
    border: 1px solid #b8d5e8;
    border-radius: 0.7rem;
    background: #fff;
    color: #0369a1;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
}
.alvita-order-review__details-done:hover { background: #f0f9ff; }
.alvita-order-review__total { display: flex; justify-content: space-between; margin-top: 0.95rem; padding-top: 0.9rem; border-top: 1px solid #dbe5ee; color: #475569; font-weight: 700; }
.alvita-order-review__total strong { color: #0f172a; font-size: 1.15rem; }
.alvita-order-review__actions {
    position: sticky;
    top: 4.5rem;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e8edf3;
    background: #fff;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.04);
}
.alvita-order-review__actions .alvita-cart-submit,
.alvita-order-review__actions .alvita-cart-continue { min-height: 3rem; }
@media (max-width: 768px) {
    .alvita-cart-panel {
        height: min(88dvh, 40rem);
        max-height: calc(100dvh - 0.75rem);
        border-radius: 1.35rem 1.35rem 0 0;
    }
    .alvita-cart-header::before {
        position: absolute;
        top: 0.55rem;
        left: 50%;
        width: 2.5rem;
        height: 0.25rem;
        border-radius: 999px;
        background: #d6e0ea;
        content: "";
        transform: translateX(-50%);
    }
    .alvita-cart-header { padding-top: 1.45rem; }
    .alvita-cart-header { touch-action: pan-x; }
    .alvita-cart-panel.is-dragging { transition: none !important; }
    .alvita-cart-panel.is-settling { transition: transform 200ms ease-out; }
    .alvita-cart-panel.is-sliding-away { transition: transform 180ms ease-in; }
    .alvita-cart-actions {
        gap: 0.55rem;
    }
    .alvita-cart-submit,
    .alvita-cart-continue {
        min-height: 2.85rem;
        font-size: 0.95rem;
    }
    .alvita-cart-footer {
        padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
    }
    .alvita-order-review {
        right: 0;
        bottom: var(--alvita-review-keyboard-offset, 0px);
        width: 100%;
        max-height: min(calc(var(--alvita-review-visible-height, 82dvh) - 0.5rem), 42rem);
        transform: none;
        border-radius: 1.35rem 1.35rem 0 0;
    }
    .alvita-order-review.is-editing-details { scroll-padding-bottom: 1rem; }
}

/* Keep shared menu metadata readable on the dark luxe and neon templates.
   This file is loaded after the template styles, so these component overrides
   remain effective regardless of template-specific CSS load order. */
.tpl-luxe .alvita-add-btn {
    color: #0b0906;
    background: #c5a059;
    border-color: #c5a059;
    font-weight: 700;
}

.tpl-neon .alvita-add-btn {
    color: #03161b;
    background: #00f2ff;
    border-color: #00f2ff;
    font-weight: 800;
}

.tpl-luxe .ingredients {
    color: #d8d0c2;
    background: rgba(197, 160, 89, 0.1);
    border-color: rgba(197, 160, 89, 0.28);
}

.tpl-neon .ingredients {
    color: #d9fbff;
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.28);
}

.tpl-luxe .ingredients strong,
.tpl-neon .ingredients strong {
    color: #f8feff;
}

.tpl-luxe .allergens-section {
    padding: 0.75rem 1rem;
    background: rgba(197, 160, 89, 0.08);
    border-color: rgba(197, 160, 89, 0.22);
}

.tpl-neon .allergens-section {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(251, 146, 60, 0.38);
}

.tpl-luxe .allergens-section-label,
.tpl-neon .allergens-section-label {
    color: #fdba74;
    opacity: 1;
}

.tpl-luxe .allergen-pill,
.tpl-neon .allergen-pill {
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border-color: rgba(253, 186, 116, 0.35);
}

.tpl-luxe .macros-summary {
    color: #f5f1e8;
    background: rgba(197, 160, 89, 0.12);
    border-color: rgba(226, 201, 143, 0.32);
}

.tpl-neon .macros-summary {
    color: #f8fafc;
    background: rgba(0, 242, 255, 0.08);
    border-color: rgba(0, 242, 255, 0.28);
}

.tpl-luxe .macro-hint,
.tpl-luxe .macro-label,
.tpl-luxe .icon-chevron {
    color: #cfc4b3;
}

.tpl-neon .macro-hint,
.tpl-neon .macro-label,
.tpl-neon .icon-chevron {
    color: #cbd5e1;
}

.tpl-luxe .macro-main-val,
.tpl-luxe .macro-value {
    color: #e2c98f;
}

.tpl-neon .macro-main-val,
.tpl-neon .macro-value {
    color: #00f2ff;
}

.tpl-luxe .macros-grid {
    background: rgba(197, 160, 89, 0.07);
    border-color: rgba(226, 201, 143, 0.25);
}

.tpl-neon .macros-grid {
    background: rgba(0, 242, 255, 0.05);
    border-color: rgba(0, 242, 255, 0.22);
}
