﻿:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --ink: #162033;
    --muted: #687486;
    --line: #dfe5ec;
    --primary: #1f6f78;
    --primary-strong: #155660;
    --accent: #c57b38;
    --danger: #b73535;
    --shadow: 0 14px 34px rgba(22, 32, 51, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: auto;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.topbar {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 22px;
    background: #18233a;
    color: #ffffff;
}

.topbar p,
.panel-title h2,
.order-head h2 {
    margin: 0;
}

.brand-logo {
    display: block;
    width: auto;
    max-width: min(260px, 52vw);
    max-height: 54px;
    object-fit: contain;
}

.topbar p {
    margin-top: 6px;
    color: #b8c5d9;
    font-size: 14px;
}

.device-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.device-controls label,
.table-total-chip,
.tablet-chip,
.settings-button,
.fullscreen-button {
    min-height: 56px;
    display: grid;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.device-controls .bill-button {
    min-height: 56px;
    min-width: 128px;
}

.settings-button {
    background: rgba(255, 255, 255, 0.08);
}

.waiter-button {
    min-height: 48px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
}

.icon-top-button {
    width: 58px;
    min-width: 58px;
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    font-size: 26px;
    line-height: 1;
    font-weight: 900;
}

.evaluate-button {
    min-height: 56px;
    min-width: 128px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    background: #514593;
    font-weight: 800;
}

.device-controls label {
    grid-template-columns: auto 126px;
}

.table-total-chip {
    grid-template-columns: auto minmax(108px, auto) 38px;
}

.tablet-chip {
    grid-template-columns: auto 74px;
}

.device-controls span,
.table-total-chip span,
.tablet-chip span {
    color: #d9e2ef;
    font-size: 14px;
}

.device-controls select,
.tablet-chip button {
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    color: #152033;
    background: #ffffff;
    font-weight: 800;
}

.fullscreen-button {
    background: rgba(255, 255, 255, 0.08);
}

.fullscreen-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: block;
}

.fullscreen-icon::before,
.fullscreen-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(#ffffff, #ffffff) left top / 10px 3px no-repeat,
        linear-gradient(#ffffff, #ffffff) left top / 3px 10px no-repeat,
        linear-gradient(#ffffff, #ffffff) right top / 10px 3px no-repeat,
        linear-gradient(#ffffff, #ffffff) right top / 3px 10px no-repeat,
        linear-gradient(#ffffff, #ffffff) left bottom / 10px 3px no-repeat,
        linear-gradient(#ffffff, #ffffff) left bottom / 3px 10px no-repeat,
        linear-gradient(#ffffff, #ffffff) right bottom / 10px 3px no-repeat,
        linear-gradient(#ffffff, #ffffff) right bottom / 3px 10px no-repeat;
}

.fullscreen-button.is-fullscreen .fullscreen-icon {
    transform: rotate(180deg);
}

.device-controls select {
    padding: 0 10px;
}

.tablet-chip button {
    font-size: 22px;
}

.table-total-chip strong {
    color: #ffffff;
    font-size: 22px;
    text-align: right;
    white-space: nowrap;
}

.total-visibility-button {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
    line-height: 1;
}

.total-visibility-button:active {
    transform: translateY(1px);
}

.tablet-menu {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(430px, 1fr) minmax(310px, 390px);
    gap: 14px;
    padding: 14px;
    min-height: 0;
    overflow: hidden;
}

.mobile-section-tabs {
    display: none;
}

.menu-panel,
.cart-panel {
    height: calc(100vh - 178px);
}

.menu-panel,
.cart-panel {
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-title {
    min-height: 60px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--line);
}

.order-head {
    min-height: 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.panel-title > div {
    min-width: 0;
}

.panel-title h2,
.order-head h2 {
    font-size: 20px;
    line-height: 1.05;
}

.panel-title span,
.eyebrow {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.panel-title span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.panel-title input,
.tablet-dialog input,
.tablet-dialog select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--ink);
}

.category-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 62px;
    padding: 10px 14px 12px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.category-tabs[hidden] {
    display: none;
}

.promotion-banner {
    position: relative;
    min-height: 112px;
    border-bottom: 1px solid var(--line);
    background: #172239;
    overflow: hidden;
}

.promotion-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 152px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #172239, #1f6f78);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transition: opacity 240ms ease;
}

.promotion-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.promotion-slide img {
    width: 152px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f5;
}

.promotion-slide span {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.promotion-slide small {
    color: #f5b632;
    font-weight: 900;
    text-transform: uppercase;
}

.promotion-slide strong {
    overflow-wrap: break-word;
    font-size: 21px;
}

.promotion-slide em {
    color: #ffffff;
    font-size: 24px;
    font-style: normal;
    font-weight: 900;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    max-width: min(260px, 72vw);
    padding: 0 16px;
    border-radius: 999px;
    background: #eef2f5;
    color: var(--ink);
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    scroll-snap-align: start;
}

.category-tabs button.active {
    background: var(--primary);
    color: #ffffff;
}

.category-tabs button:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.subgroup-tabs {
    min-height: 52px;
    padding-block: 8px;
    background: #f8fafc;
}

.subgroup-tabs button {
    min-height: 38px;
    font-size: 14px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
    align-content: start;
    grid-auto-rows: 286px;
    gap: 12px;
    padding: 12px;
    overflow: auto;
    min-height: 0;
}

.menu-card {
    height: 286px;
    min-height: 286px;
    display: grid;
    grid-template-rows: 104px minmax(62px, 1fr) 82px;
    gap: 8px;
    padding: 9px 9px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.menu-card-image {
    display: block;
    width: 100%;
    height: 104px;
    object-fit: cover;
    border-radius: 7px;
    background: #eef2f5;
}

.menu-card h3 {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.12;
    overflow-wrap: break-word;
}

.menu-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-rating {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    max-width: 100%;
    min-height: 18px;
    margin-top: 5px;
    color: #8a95a3;
    white-space: nowrap;
    overflow: hidden;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.product-stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 1px;
    color: #cbd2dc;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.product-stars .active {
    color: #f5b632;
}

.product-rating small {
    min-width: 0;
    color: #526175;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-card-footer {
    display: grid;
    gap: 10px;
    align-self: end;
    padding-top: 2px;
}

.menu-card-actions {
    display: grid;
    grid-template-columns: minmax(88px, 0.42fr) minmax(0, 1fr);
    gap: 8px;
}

.menu-card strong {
    color: var(--primary-strong);
    font-size: 20px;
}

.menu-card button,
.finish-button,
.secondary-button,
#saveTabletButton {
    min-height: 48px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--primary);
    font-weight: 800;
}

.menu-card button {
    width: 100%;
    min-height: 42px;
}

.menu-card .details-button {
    color: var(--primary-strong);
    background: #edf3f5;
}

.order-head strong {
    min-width: max-content;
    text-align: right;
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.order-items {
    flex: 1;
    padding: 12px;
    overflow: auto;
}

.empty-state {
    min-height: 180px;
    display: grid;
    place-items: center;
    color: var(--muted);
    text-align: center;
    padding: 22px;
}

.order-line {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 10px;
}

.order-line h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.order-line p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.cart-additionals {
    display: block;
    margin: -2px 0 6px;
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.order-observation {
    display: grid;
    gap: 7px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
}

.order-observation span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.order-observation textarea {
    width: 100%;
    min-height: 64px;
    max-height: 116px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

.quantity-controls {
    display: grid;
    grid-template-columns: 46px 42px 46px;
    align-items: center;
    gap: 6px;
}

.quantity-controls button {
    min-height: 46px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
}

.quantity-controls button:first-child {
    background: #eef2f5;
    color: var(--ink);
}

.quantity-controls span {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
}

.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--line);
}

.checkout-row button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    text-align: center;
}

.finish-button#finishOrderButton {
    grid-column: 1 / -1;
    justify-self: stretch;
}

.secondary-button {
    background: #eef2f5;
    color: var(--ink);
}

.finish-button {
    background: var(--accent);
}

.bill-button {
    min-height: 48px;
    border-radius: 8px;
    background: var(--danger);
    color: #ffffff;
    font-weight: 800;
}

.tablet-dialog {
    width: min(360px, calc(100vw - 32px));
    border: 0;
    border-radius: 8px;
    padding: 22px;
    box-shadow: var(--shadow);
}

.tablet-dialog::backdrop {
    background: rgba(12, 18, 30, 0.64);
}

.tablet-dialog h2 {
    margin: 0 0 14px;
}

.tablet-dialog input {
    width: 100%;
}

.tablet-dialog select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 800;
}

.field-label {
    display: grid;
    gap: 8px;
}

.field-label span,
.dialog-summary {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.dialog-summary {
    margin: -4px 0 14px;
}

.existing-comandas {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.existing-comandas[hidden] {
    display: none;
}

.existing-comandas-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.existing-comandas-head span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
}

.existing-comandas-head .secondary-button {
    min-height: 40px;
    padding: 0 12px;
}

.existing-comandas-head .secondary-button.active {
    background: var(--primary);
    color: #ffffff;
}

.existing-comandas-list {
    display: grid;
    gap: 8px;
    max-height: 184px;
    overflow: auto;
}

.comanda-option {
    min-height: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.comanda-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.comanda-option strong {
    color: var(--primary-strong);
    white-space: nowrap;
}

.comanda-option.active {
    border-color: var(--primary);
    background: #e9f4f5;
}

.waiter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
    margin: 12px 0;
}

.waiter-option {
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
    font-weight: 800;
}

.waiter-option span {
    overflow-wrap: break-word;
}

.waiter-option.active {
    border-color: var(--primary);
    background: #e9f4f5;
    color: var(--primary-strong);
}

.waiter-dialog {
    width: min(1040px, calc(100vw - 18px));
    height: min(650px, calc(100dvh - 18px));
    border: 0;
    border-radius: 0;
    padding: 0;
    background: #2b344c;
    color: #ffffff;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.waiter-dialog::backdrop {
    background: rgba(12, 18, 30, 0.74);
}

.waiter-form {
    height: 100%;
    display: grid;
    grid-template-rows: 44px minmax(0, 1fr);
}

.waiter-page-header {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 150px;
    align-items: center;
    min-height: 44px;
    background: #4a3f91;
    border-bottom: 2px solid #d6d0a7;
}

.waiter-page-header strong {
    text-align: center;
    font-weight: 900;
}

.waiter-page-header img {
    justify-self: end;
    max-width: 118px;
    max-height: 34px;
    margin-right: 14px;
    object-fit: contain;
}

.waiter-back-button {
    width: 54px;
    height: 44px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
}

.waiter-page-body {
    min-height: 0;
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
}

.waiter-hero {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    justify-items: center;
    gap: 20px;
    padding: 42px 14px 28px;
}

.waiter-hero h2 {
    max-width: 300px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 30px);
    line-height: 1.28;
    text-align: center;
}

.waiter-person {
    position: relative;
    width: 150px;
    height: 200px;
    align-self: center;
}

.waiter-person::before {
    content: "";
    position: absolute;
    left: 48px;
    top: 20px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #ff9a76;
    box-shadow: 0 -16px 0 -4px #121827;
}

.waiter-person::after {
    content: "";
    position: absolute;
    left: 32px;
    top: 84px;
    width: 86px;
    height: 104px;
    border-radius: 28px 28px 8px 8px;
    background: linear-gradient(90deg, #252b3f 0 24%, #833a75 24% 76%, #252b3f 76%);
}

.waiter-person span {
    position: absolute;
    right: 10px;
    top: 82px;
    width: 76px;
    height: 44px;
    border-radius: 44px 44px 10px 10px;
    background: #d7dbe6;
    border-bottom: 7px solid #f2cb35;
    z-index: 2;
}

.waiter-request {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto auto minmax(154px, 1fr) auto 70px;
    align-content: start;
    border-left: 2px solid #d6d0a7;
    overflow: hidden;
}

.waiter-request > h2,
.waiter-summary {
    display: none;
}

.waiter-options {
    order: 1;
    display: flex;
    gap: 0;
    margin: 0;
    overflow-x: auto;
    border-bottom: 1px solid #c7c7c7;
}

.waiter-option {
    flex: 0 0 200px;
    min-height: 144px;
    display: grid;
    grid-template-rows: minmax(92px, 1fr) 30px;
    align-items: stretch;
    padding: 0;
    border: 0;
    border-right: 2px solid #111827;
    border-radius: 0;
    background: #2b344c;
    color: #ffffff;
    text-align: center;
}

.waiter-option span {
    display: grid;
    place-items: center;
    padding: 14px;
    font-size: 22px;
    font-style: italic;
    font-weight: 900;
}

.waiter-option strong {
    display: grid;
    place-items: center;
    background: #486ff1;
    color: #ffffff;
    font-size: 20px;
}

.waiter-option.active {
    border-color: #111827;
    background: #303b58;
    color: #ffffff;
}

.waiter-help {
    order: 2;
    display: block;
    padding: 8px 0;
    color: #ffffff;
    font-size: 18px;
}

.waiter-selection-box {
    order: 3;
    min-height: 154px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    border-top: 1px solid #c7c7c7;
    border-bottom: 1px solid #c7c7c7;
    background: #ffffff;
}

.waiter-selected-list {
    display: grid;
    align-content: start;
    gap: 3px;
    padding: 8px;
    color: #111827;
    overflow: auto;
}

.waiter-selected-list span {
    font-size: 14px;
}

.waiter-clear-button {
    display: grid;
    place-items: center;
    border-left: 2px solid #a0a0a0;
    background: #ffffff;
    color: #ef4458;
    font-size: 44px;
}

.waiter-note {
    order: 4;
    padding: 12px 0 0;
}

.waiter-note span {
    color: #ffffff;
}

.waiter-note input {
    min-height: 46px;
    border-radius: 0;
}

.waiter-actions {
    order: 5;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
}

.waiter-confirm-button {
    min-height: 68px;
    background: #486ff1;
    color: #ffffff;
    font-size: 17px;
}

.tablet-dialog menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0;
    margin: 14px 0 0;
}

.dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.single-action {
    grid-template-columns: 1fr;
}

.bill-dialog {
    width: min(430px, calc(100vw - 32px));
}

.product-details-dialog {
    width: min(520px, calc(100vw - 32px));
}

.additional-dialog {
    width: min(460px, calc(100vw - 32px));
}

.product-details-dialog form {
    display: grid;
    gap: 12px;
}

.product-details-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    background: #eef2f5;
}

.product-details-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.product-details-head h2 {
    margin: 2px 0 0;
    overflow-wrap: break-word;
}

.product-details-head strong {
    color: var(--primary-strong);
    font-size: 24px;
    white-space: nowrap;
}

.product-details-description {
    min-height: 46px;
    margin: 0;
    color: #3e4a5f;
    font-size: 15px;
    line-height: 1.45;
}

.additional-list {
    display: grid;
    gap: 12px;
    max-height: min(330px, 48vh);
    overflow: auto;
}

.additional-group {
    display: grid;
    gap: 8px;
}

.additional-group-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.additional-group-head strong {
    display: block;
    overflow-wrap: break-word;
}

.additional-group-head span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.additional-group-head small {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.additional-group.required .additional-group-head span,
.additional-group.required .additional-group-head small {
    color: var(--accent);
}

.additional-group.optional .additional-group-head span {
    color: var(--primary-strong);
}

.additional-group.invalid .additional-group-head small {
    color: var(--danger);
}

.additional-option {
    min-height: 58px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.additional-option input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--primary);
}

.additional-option span {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.additional-option strong {
    overflow-wrap: break-word;
}

.additional-option small {
    color: var(--primary-strong);
    font-weight: 800;
    white-space: nowrap;
}

.additional-quantity-option {
    min-height: 58px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 132px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.additional-quantity-option > strong {
    overflow-wrap: break-word;
}

.additional-quantity-option > small {
    color: var(--primary-strong);
    font-weight: 800;
    white-space: nowrap;
}

.additional-stepper {
    display: grid;
    grid-template-columns: 42px 38px 42px;
    align-items: center;
    gap: 5px;
}

.additional-stepper button {
    min-height: 42px;
    border-radius: 0;
    background: #496ee8;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.additional-stepper span {
    text-align: center;
    font-size: 18px;
    font-weight: 800;
}

.additional-total {
    min-height: 50px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.additional-total span {
    color: var(--muted);
    font-weight: 800;
}

.additional-total strong {
    color: var(--primary-strong);
    font-size: 22px;
    white-space: nowrap;
}

.settings-dialog {
    width: min(470px, calc(100vw - 32px));
}

.settings-dialog form {
    display: grid;
    gap: 12px;
}

.token-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 8px;
}

.token-input-row button {
    min-height: 44px;
    padding: 0;
    font-weight: 900;
}

.url-preset-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.url-preset-row button {
    min-height: 40px;
    font-weight: 900;
}

.api-login-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
}

.api-login-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.api-login-actions button {
    min-height: 44px;
}

.api-login-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.danger-button {
    color: var(--danger);
}

.qr-scanner-dialog {
    width: min(520px, calc(100vw - 24px));
}

.qr-scanner-dialog form {
    display: grid;
    gap: 14px;
}

.qr-camera-frame {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: 8px;
    background: #0f1728;
}

.qr-camera-frame video {
    display: block;
    width: 100%;
    height: min(58vh, 420px);
    object-fit: cover;
}

.qr-camera-frame span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
}

.bill-list {
    display: grid;
    gap: 8px;
    max-height: min(360px, 50vh);
    overflow: auto;
}

.bill-line,
.bill-total {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.bill-line {
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
}

.bill-select {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.bill-select input {
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    accent-color: var(--primary);
}

.bill-select span {
    min-width: 0;
}

.bill-line h3 {
    margin: 0 0 5px;
    font-size: 17px;
    overflow-wrap: break-word;
}

.bill-line p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.bill-payment {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.bill-line .bill-payment strong {
    color: var(--danger);
    font-size: 12px;
}

.bill-times {
    display: grid;
    gap: 3px;
    margin-top: 7px;
    padding: 7px 8px;
    border-radius: 8px;
    background: #f3f7f8;
}

.bill-times small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bill-times span {
    color: var(--primary-strong);
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: break-word;
}

.bill-items {
    display: grid;
    gap: 5px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.bill-items.empty {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.bill-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.bill-item span {
    overflow-wrap: break-word;
}

.bill-item.canceled {
    opacity: 0.78;
}

.bill-item.canceled .bill-item-name {
    color: var(--muted);
    text-decoration: line-through;
}

.bill-item-status {
    display: block;
    margin-top: 2px;
    color: var(--danger);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.bill-item strong {
    color: var(--ink);
    font-size: 13px;
}

.bill-item.canceled strong {
    color: var(--danger);
}

.bill-line strong {
    color: var(--primary-strong);
    font-size: 18px;
    white-space: nowrap;
}

.bill-total {
    margin-top: 12px;
    padding: 12px 2px 0;
    border-top: 1px solid var(--line);
}

.bill-total span {
    color: var(--muted);
    font-weight: 800;
    text-transform: uppercase;
}

.bill-total strong {
    color: var(--ink);
    font-size: 24px;
    white-space: nowrap;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%) translateY(18px);
    max-width: min(460px, calc(100vw - 28px));
    padding: 13px 16px;
    border-radius: 8px;
    background: #18233a;
    color: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rest-page {
    position: fixed;
    inset: 0;
    z-index: 18;
    display: grid;
    grid-template-rows: 82px minmax(0, 1fr) 82px;
    padding: 18px;
    background: #18233a;
    color: #ffffff;
}

.rest-page[hidden] {
    display: none;
}

.rest-brand,
.rest-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.rest-brand img {
    display: block;
    width: auto;
    max-width: min(300px, 44vw);
    max-height: 64px;
    object-fit: contain;
}

.rest-brand span,
.rest-footer span {
    color: #d9e2ef;
    font-weight: 900;
}

.rest-brand span {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 19px;
}

.rest-marketing-banner {
    position: relative;
    min-height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #0f1728;
    box-shadow: var(--shadow);
}

.rest-marketing-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 34px;
    padding: clamp(18px, 4vw, 54px);
    opacity: 0;
    transform: scale(1.015);
    transition: opacity 360ms ease, transform 360ms ease;
}

.rest-marketing-slide.active {
    opacity: 1;
    transform: scale(1);
}

.rest-product-slide {
    grid-template-columns: minmax(0, 1fr);
    padding: clamp(18px, 3vw, 42px);
}

.rest-product-card {
    width: min(920px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(300px, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rest-product-card .menu-card-image {
    height: min(58vh, 430px);
    min-height: 260px;
    border-radius: 0;
}

.rest-product-info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 12px;
    padding: clamp(20px, 4vw, 48px);
    color: var(--ink);
}

.rest-product-info small {
    color: var(--primary);
}

.rest-product-info h2 {
    color: var(--ink);
    font-size: clamp(32px, 5vw, 62px);
}

.rest-product-info p {
    color: var(--muted);
}

.rest-product-info .product-rating {
    min-height: 24px;
}

.rest-product-info .product-stars {
    font-size: 22px;
}

.rest-product-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 14px;
}

.rest-product-price span {
    color: #8a97a8;
    font-size: clamp(18px, 2.4vw, 28px);
    font-weight: 900;
    text-decoration: line-through;
}

.rest-product-price strong {
    color: var(--primary-strong);
}

.rest-media-frame {
    position: relative;
    width: 100%;
    height: min(58vh, 420px);
    min-height: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
}

.rest-media-frame img,
.rest-media-frame video,
.rest-media-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
    border: 0;
    display: block;
}

.rest-media-frame img.fallback-logo {
    object-fit: contain;
    padding: 28px;
}

.rest-file-frame {
    display: grid;
    place-items: center;
}

.rest-file-frame img {
    position: absolute;
    inset: 0;
    opacity: 0.16;
    object-fit: contain;
    padding: 28px;
}

.rest-file-frame audio {
    position: relative;
    z-index: 2;
    width: min(420px, 86%);
}

.rest-marketing-slide.brand-slide .rest-media-frame img {
    object-fit: contain;
    padding: 28px;
}

.rest-media-fallback {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    place-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    background: #ffffff;
    color: var(--ink);
}

.rest-media-fallback strong {
    color: var(--ink);
    font-size: clamp(20px, 3vw, 34px);
}

.rest-media-fallback span {
    color: var(--muted);
    font-weight: 800;
}

.rest-media-fallback a {
    color: var(--primary);
    font-weight: 900;
}

.rest-media-frame.media-error .rest-media-fallback,
.rest-media-frame.rest-file-frame .rest-media-fallback {
    display: grid;
}

.rest-marketing-content {
    min-width: 0;
    display: grid;
    gap: 14px;
}

.rest-marketing-slide small {
    color: #85d7df;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
}

.rest-marketing-slide h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 1.02;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.rest-marketing-slide p {
    max-width: 620px;
    margin: 0;
    color: #d9e2ef;
    font-size: clamp(18px, 2vw, 26px);
    line-height: 1.28;
}

.rest-marketing-slide strong {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 56px);
}

.rest-footer {
    color: #ffffff;
}

.rest-footer strong {
    font-size: 30px;
}

.rest-footer span {
    font-size: 20px;
}

.review-page {
    position: fixed;
    inset: 0;
    z-index: 20;
    min-height: 100vh;
    display: grid;
    grid-template-rows: 64px minmax(0, 1fr);
    background: var(--bg);
    color: var(--ink);
    overflow: auto;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.review-page[hidden] {
    display: none;
}

.review-header {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) minmax(150px, 220px);
    align-items: center;
    min-height: 64px;
    padding: 0 14px;
    background: #18233a;
    color: #ffffff;
}

.review-header h2 {
    margin: 0;
    font-size: 19px;
    text-align: center;
    line-height: 1.15;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.review-logo {
    justify-self: end;
    display: block;
    width: auto;
    max-width: min(210px, 24vw);
    max-height: 48px;
    object-fit: contain;
}

.review-back-button {
    width: 48px;
    min-height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
}

.review-form {
    width: min(1180px, calc(100vw - 24px));
    min-height: 0;
    margin: 12px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    grid-template-rows: minmax(0, 1fr) 58px;
    gap: 14px;
}

.review-ratings,
.review-fields {
    min-height: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.review-ratings {
    display: grid;
    align-content: start;
    gap: 16px;
}

.review-ratings p {
    max-width: 700px;
    margin: 0;
    font-size: 18px;
    line-height: 1.32;
    text-align: left;
    font-weight: 800;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.review-criteria {
    display: grid;
    gap: 10px;
}

.review-row {
    display: grid;
    grid-template-columns: 34px minmax(150px, 1fr) minmax(190px, auto);
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fafb;
}

.review-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.review-label {
    color: var(--ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.18;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.review-stars {
    display: grid;
    grid-template-columns: repeat(5, 38px);
    justify-content: end;
    gap: 5px;
}

.review-stars button {
    width: 38px;
    height: 38px;
    background: transparent;
    color: #cbd2dc;
    font-size: 39px;
    line-height: 1;
    text-align: center;
}

.review-stars button.active {
    color: #f4bd35;
}

.review-fields {
    display: grid;
    align-content: start;
    gap: 16px;
}

.review-fields label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.review-fields input,
.review-fields textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: #162033;
    font-size: 18px;
    padding: 10px;
}

.review-fields input {
    min-height: 48px;
}

.review-fields textarea {
    min-height: 104px;
    resize: vertical;
}

.review-submit-button {
    grid-column: 1 / -1;
    min-height: 58px;
    border-radius: 8px;
    background: var(--primary);
    color: #ffffff;
    font-weight: 900;
    box-shadow: var(--shadow);
}

@media (max-width: 1060px) {
    .tablet-menu {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    }
}

@media (max-width: 760px) {
    body {
        min-height: 100dvh;
    }

    .app-shell {
        min-height: 100dvh;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        padding: 12px;
    }

    .brand-logo {
        max-width: min(240px, 70vw);
        max-height: 46px;
    }

    .device-controls {
        justify-content: stretch;
    }

    .promotion-banner {
        min-height: 102px;
    }

    .promotion-slide {
        grid-template-columns: 116px minmax(0, 1fr);
        gap: 10px;
        padding: 10px 12px;
    }

    .promotion-slide img {
        width: 116px;
        height: 76px;
    }

    .promotion-slide strong {
        font-size: 17px;
    }

    .promotion-slide em {
        font-size: 21px;
    }

    .mobile-section-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }

    .mobile-section-tabs button {
        min-height: 50px;
        display: grid;
        place-items: center;
        gap: 2px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #ffffff;
        color: var(--ink);
        font-weight: 800;
    }

    .mobile-section-tabs button.active {
        border-color: var(--primary);
        background: var(--primary);
        color: #ffffff;
    }

    .mobile-section-tabs span {
        font-size: 12px;
        font-weight: 700;
        opacity: 0.82;
    }

    .device-controls label,
    .table-total-chip,
    .tablet-chip,
    .device-controls .bill-button,
    .evaluate-button,
    .settings-button,
    .fullscreen-button {
        flex: 1;
    }

    .review-form {
        width: min(760px, calc(100vw - 20px));
        grid-template-columns: 1fr;
        grid-template-rows: auto auto 58px;
        overflow: auto;
    }

    .rest-page {
        grid-template-rows: 70px minmax(0, 1fr) 76px;
        padding: 12px;
    }

    .rest-marketing-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 18px;
        padding: 18px;
        text-align: center;
    }

    .rest-product-card {
        grid-template-columns: 1fr;
    }

    .rest-product-card .menu-card-image {
        height: min(36vh, 260px);
        min-height: 180px;
    }

    .rest-product-info {
        justify-items: center;
        padding: 18px;
    }

    .rest-product-price {
        justify-content: center;
    }

    .rest-media-frame {
        height: min(42vh, 300px);
    }

    .rest-marketing-slide p {
        margin: 0 auto;
    }

    .review-ratings {
        border-right: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
    }

    .review-row {
        grid-template-columns: 34px minmax(0, 1fr) minmax(180px, auto);
        align-items: center;
    }

    .review-stars {
        grid-column: auto;
        grid-template-columns: repeat(5, 34px);
    }

    .review-stars button {
        width: 34px;
        height: 34px;
        font-size: 35px;
    }

    .review-submit-button {
        position: sticky;
        bottom: 0;
    }

    .tablet-menu {
        flex: 1;
        display: block;
        min-height: 0;
        padding: 10px;
        overflow: hidden;
    }

    body[data-mobile-section="menu"] .cart-panel,
    body[data-mobile-section="cart"] .menu-panel {
        display: none;
    }

    .menu-panel,
    .cart-panel {
        height: calc(100dvh - 218px);
        min-height: 0;
    }

    .cart-panel {
        box-shadow: none;
    }

    .panel-title {
        min-height: 58px;
        grid-template-columns: minmax(0, 1fr) minmax(160px, 42vw);
        gap: 8px;
        padding: 7px 10px;
    }

    .panel-title input {
        min-height: 42px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 178px), 1fr));
        gap: 10px;
        padding: 10px;
    }

    .category-tabs {
        gap: 7px;
        min-height: 58px;
        padding: 8px 10px 10px;
    }

    .category-tabs button {
        min-height: 42px;
        max-width: min(220px, 76vw);
        padding: 0 14px;
        font-size: 14px;
    }

    .menu-card {
        height: 274px;
        min-height: 274px;
        grid-template-rows: 104px minmax(58px, 1fr) 80px;
        padding: 8px 8px 11px;
        gap: 8px;
    }

    .menu-card-image {
        height: 104px;
    }

    .menu-card h3 {
        font-size: 16px;
    }

    .menu-card p {
        font-size: 12px;
        margin-top: 4px;
    }

    .product-rating {
        gap: 5px;
        min-height: 18px;
        margin-top: 5px;
    }

    .product-stars {
        font-size: 14px;
    }

    .product-rating small {
        font-size: 11px;
    }

    .menu-card strong {
        font-size: 18px;
    }

    .menu-card button {
        min-height: 40px;
    }

    .menu-card-actions {
        grid-template-columns: minmax(76px, 0.42fr) minmax(0, 1fr);
        gap: 7px;
    }

    .order-head {
        min-height: 68px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 10px 12px;
    }

    .order-head strong {
        min-width: auto;
        font-size: 22px;
    }

    .order-items {
        padding: 12px;
    }

    .order-line {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 12px;
    }

    .order-line h3 {
        font-size: 16px;
        overflow-wrap: break-word;
    }

    .order-line p {
        font-size: 13px;
    }

    .quantity-controls {
        grid-template-columns: 48px 34px 48px;
        gap: 7px;
    }

    .quantity-controls button {
        min-height: 48px;
    }

    .checkout-row {
        position: sticky;
        bottom: 0;
        background: #ffffff;
    }
}

@media (max-width: 460px) {
    .device-controls {
        flex-direction: column;
    }

    .device-controls label,
    .table-total-chip,
    .tablet-chip,
    .evaluate-button,
    .settings-button,
    .fullscreen-button {
        width: 100%;
    }

    .review-header {
        grid-template-columns: 54px 1fr minmax(92px, 128px);
    }

    .review-header h2 {
        font-size: 15px;
    }

    .review-logo {
        max-width: 124px;
        max-height: 38px;
    }

    .review-form {
        width: calc(100vw - 16px);
        margin: 8px auto;
        gap: 10px;
    }

    .rest-brand,
    .rest-footer {
        gap: 10px;
    }

    .rest-brand img {
        max-width: 190px;
        max-height: 48px;
    }

    .rest-brand span,
    .rest-footer span {
        font-size: 14px;
    }

    .rest-footer strong {
        font-size: 22px;
    }

    .rest-marketing-slide h2 {
        font-size: 32px;
    }

    .rest-marketing-slide p {
        font-size: 17px;
    }

    .rest-marketing-slide strong {
        font-size: 30px;
    }

    .review-ratings,
    .review-fields {
        padding: 12px;
    }

    .review-ratings p {
        font-size: 15px;
    }

    .review-row {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }

    .review-label {
        font-size: 16px;
    }

    .review-stars {
        grid-column: 2;
        justify-content: start;
        grid-template-columns: repeat(5, 32px);
    }

    .review-stars button {
        width: 32px;
        height: 32px;
        font-size: 33px;
    }

    .promotion-banner {
        min-height: 92px;
    }

    .promotion-slide {
        grid-template-columns: 94px minmax(0, 1fr);
        padding: 8px 10px;
    }

    .promotion-slide img {
        width: 94px;
        height: 66px;
    }

    .promotion-slide strong {
        font-size: 15px;
    }

    .promotion-slide em {
        font-size: 19px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
    }

    .checkout-row {
        grid-template-columns: 1fr 1fr;
    }

    .finish-button#finishOrderButton {
        grid-column: 1 / -1;
        justify-self: stretch;
    }

    .menu-panel,
    .cart-panel {
        height: calc(100dvh - 286px);
    }

    .menu-card-image {
        height: 96px;
    }

    .menu-card {
        height: 264px;
        min-height: 264px;
        grid-template-rows: 96px minmax(58px, 1fr) 78px;
    }
}

.tablet-dialog.waiter-dialog {
    width: min(420px, calc(100vw - 32px));
    height: auto;
    max-height: calc(100dvh - 32px);
    border: 0;
    border-radius: 8px;
    padding: 22px;
    background: #ffffff;
    color: var(--ink);
    overflow: auto;
}

.tablet-dialog.waiter-dialog .waiter-form {
    height: auto;
    display: block;
}

.tablet-dialog.waiter-dialog .waiter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    gap: 8px;
    margin: 12px 0;
    overflow: visible;
    border: 0;
}

.tablet-dialog.waiter-dialog .waiter-option {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    grid-template-rows: 1fr;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    color: var(--ink);
    text-align: left;
}

.tablet-dialog.waiter-dialog .waiter-option span {
    display: block;
    padding: 0;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
}

.tablet-dialog.waiter-dialog .waiter-option strong {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
}

.tablet-dialog.waiter-dialog .waiter-option.active {
    border-color: var(--primary);
    background: #e9f4f5;
    color: var(--primary-strong);
}

.tablet-dialog.waiter-dialog .waiter-selection-box {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
    margin: 10px 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
}

.tablet-dialog.waiter-dialog .waiter-selected-list {
    display: grid;
    align-content: start;
    gap: 4px;
    padding: 10px;
    color: var(--ink);
    overflow: auto;
}

.tablet-dialog.waiter-dialog .waiter-clear-button {
    border-left: 1px solid var(--line);
    background: #eef2f5;
    color: var(--danger);
    font-size: 14px;
    font-weight: 900;
}

.tablet-dialog.waiter-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
