:root {
    --bg: #f6f5f2;
    --card: #ffffff;
    --text: #1f1f1f;
    --muted: #6b6b6b;
    --border: #e3e1dc;
    --primary: #c2410c;
    --primary-text: #ffffff;
    --danger: #b91c1c;
    --badge: #efece6;
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a { color: var(--primary); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.25; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; margin-top: 1.2em; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.grow { flex: 1; min-width: 0; }
.error { color: var(--danger); background: #fdecec; padding: 8px 12px; border-radius: 6px; }
.warning { color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; padding: 10px 14px; border-radius: 6px; }
.warning a { color: inherit; font-weight: 600; }

.container { max-width: 900px; margin: 0 auto; padding: 24px 16px 60px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }

/* Forms & buttons */
label { display: block; margin-bottom: 12px; font-weight: 500; }
label.check { display: flex; align-items: center; gap: 6px; font-weight: 400; white-space: nowrap; margin: 0; }
input, select, textarea {
    font: inherit; width: 100%; padding: 8px 10px; margin-top: 4px;
    border: 1px solid var(--border); border-radius: 6px; background: #fff; color: inherit;
}
input[type=checkbox], input[type=radio] { width: auto; margin: 0; }
textarea { resize: vertical; }

.btn {
    display: inline-flex; align-items: center; gap: 4px;
    font: inherit; padding: 7px 14px; border-radius: 6px; cursor: pointer;
    border: 1px solid var(--border); background: #fff; color: var(--text); text-decoration: none;
}
.btn:hover { border-color: #c9c5bd; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.danger { color: var(--danger); }
.btn.small { padding: 4px 10px; font-size: .85rem; }
.btn.icon { padding: 4px 9px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > label { margin-bottom: 12px; }

/* Auth pages */
body.auth { display: grid; place-items: center; align-content: center; gap: 18px; min-height: 100vh; padding: 16px; }

/* Yemekji Karekod logo + name (inc/brand.php) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text, #1d1d1b); text-decoration: none; }
.brand img { height: 42px; width: auto; display: block; }
.brand-name { font-weight: 700; font-size: 1.1rem; letter-spacing: -.01em; color: #be1e2d; white-space: nowrap; }
.brand-name b { color: #688c0a; font-weight: 700; }
.auth-brand { flex-direction: column; gap: 6px; }
.auth-brand img { height: 84px; }
.auth-brand .brand-name { font-size: 1.45rem; }
.topbar-brand { padding-right: 12px; margin-right: 4px; border-right: 1px solid var(--border); }
.topbar-brand img { height: 34px; }
.topbar-brand .brand-name { font-size: 1rem; }
.brand-footer { text-align: center; padding: 18px 16px 28px; opacity: .85; }
.brand-footer .brand img { height: 28px; }
.brand-footer .brand-name { font-size: .9rem; }
body.has-cart .brand-footer { padding-bottom: 110px; }
@media (max-width: 560px) {
    .topbar-brand .brand-name { display: none; }
    .topbar-brand { padding-right: 8px; }
}
.auth-card { width: 100%; max-width: 380px; }
.auth-card .btn { width: 100%; justify-content: center; }

/* Dashboard */
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--border);
}
.topbar nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* "Yönetim" drop-down in the top bar */
.nav-menu { position: relative; }
.nav-menu > summary { list-style: none; user-select: none; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu[open] > summary { border-color: #c9c5bd; background: var(--badge); }
.nav-menu-list {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 220px;
    display: flex; flex-direction: column; padding: 6px;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
.nav-menu-list > a, .nav-menu-list > button {
    display: block; width: 100%; text-align: left; font: inherit; color: var(--text); text-decoration: none;
    padding: 8px 10px; border: 0; border-radius: 6px; background: none; cursor: pointer;
}
.nav-menu-list > a:hover, .nav-menu-list > button:hover { background: var(--badge); }
.nav-menu-list > .current { color: var(--primary); font-weight: 600; }
.nav-menu-list > [hidden] { display: none; }
.admin-bar { padding: 8px 16px; background: #fff7ed; border-bottom: 1px solid var(--border); font-size: .9rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

.category { margin-top: 16px; }
.category.inactive, .item.inactive { opacity: .6; }
.cat-head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.cat-head h2 { margin: 2px 0; }

.handle { cursor: grab; color: var(--muted); font-size: 1.2rem; user-select: none; padding: 0 4px; }

.items { list-style: none; margin: 12px 0 0; padding: 0; min-height: 44px; border-radius: 8px; }
.items:empty { border: 2px dashed var(--border); }
.items:empty::before { content: "Ürün yok – bir ürün ekle ya da buraya sürükle"; display: block; padding: 10px; color: var(--muted); font-size: .85rem; }
.item {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 10px 8px; border-top: 1px solid var(--border); background: var(--card);
}
.item:first-child { border-top: 0; }
.sortable-ghost { opacity: .35; }

.badge { display: inline-block; font-size: .72rem; font-weight: 500; padding: 1px 7px; border-radius: 99px; background: var(--badge); color: var(--muted); vertical-align: middle; }
.price-tag { font-weight: 600; white-space: nowrap; }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* Dialogs */
dialog { border: 0; border-radius: var(--radius); padding: 0; width: min(460px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog.wide { width: min(720px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.4); }
.dlg { padding: 20px; max-height: 85vh; overflow-y: auto; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.opt-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fbfaf8; }
.opt-group input { margin-top: 0; }
.choices { margin: 8px 0 8px 28px; }
.choice { margin-bottom: 6px; flex-wrap: nowrap; }
.choice .price { width: 100px; }

#toast {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: #1f1f1f; color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 1000;
}
#toast.error { background: var(--danger); }

/* Public menu */
.menu-header { text-align: center; padding: 32px 16px 8px; }
.menu-section { scroll-margin-top: 12px; margin-top: 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px; }
.menu-section > summary {
    display: flex; align-items: center; gap: 8px; padding: 14px 4px; cursor: pointer; list-style: none; user-select: none;
}
.menu-section > summary::-webkit-details-marker { display: none; }
.menu-section > summary h2 { margin: 0; flex: 1; }
.menu-section > summary::after {
    content: ""; width: 8px; height: 8px; margin-right: 4px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg); transition: transform .2s;
}
.menu-section[open] > summary::after { transform: rotate(-135deg); }
.menu-section[open] { padding-bottom: 12px; }
.menu-section > p.muted { margin: 0 4px 4px; }
.menu-section .menu-item { background: var(--bg); }
.menu-section .menu-item:first-of-type { margin-top: 0; }
.menu-item {
    display: flex; justify-content: space-between; gap: 16px; width: 100%; text-align: left;
    font: inherit; color: inherit; background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px; margin-top: 10px; cursor: pointer;
}
.menu-item:hover { border-color: #c9c5bd; }
.menu-item .opts { margin-top: 4px; }
.opt-fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.opt-fieldset legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.opt-fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 0; padding: 6px 0; }
.opt-fieldset label span:last-child { margin-left: auto; color: var(--muted); }
.total { font-size: 1.1rem; font-weight: 600; }

/* Customer cart */
.qty { display: flex; align-items: center; gap: 8px; }
.qty span { min-width: 1.5em; text-align: center; font-weight: 600; }
.cart-bar {
    position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 20;
    display: flex; justify-content: space-between; gap: 16px; width: min(500px, calc(100vw - 32px));
    font: inherit; font-weight: 600; padding: 14px 18px; border: 0; border-radius: var(--radius); cursor: pointer;
    background: var(--primary); color: var(--primary-text); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.cart-bar[hidden] { display: none; }
body.has-cart .container { padding-bottom: 110px; }
.cart-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.cart-line:first-child { border-top: 0; }
#toast[hidden] { display: none; }
body.has-cart #toast { bottom: 90px; }

/* Live connection (WebSocket) */
.btn.current { border-color: var(--primary); color: var(--primary); }
.btn .count { background: var(--primary); color: #fff; border-radius: 99px; font-size: .75rem; font-weight: 600; padding: 0 7px; }
.btn .count[hidden] { display: none; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #c9c5bd; }
.live.on .dot { background: #16a34a; box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.live.off .dot { background: var(--danger); }

#notices { position: fixed; top: 64px; right: 12px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; width: min(340px, calc(100vw - 24px)); }
.notice {
    display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--radius);
    background: var(--card); color: var(--text); text-decoration: none; border-left: 4px solid var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,.18); animation: slide-in .25s ease-out;
}
.notice span { font-size: .85rem; color: var(--muted); }
/* "Masa 5 garson çağırıyor" (assets/staff.js): orange like the board's waiter calls, stays until done */
.notice.waiter { border-left-color: #fb923c; background: #fff7ed; }
.notice.waiter strong { color: #9a3412; font-size: 1.05rem; }
@keyframes slide-in { from { transform: translateX(30px); opacity: 0; } }

/* Order board */
.container.wide { max-width: 1280px; }
.board-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.board-tab {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 1.05rem; font-weight: 600;
    padding: 10px 18px; border-radius: 99px; cursor: pointer;
    border: 1px solid var(--border); background: var(--card); color: var(--text);
}
.board-tab:hover { border-color: #c9c5bd; }
.board-tab[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.board-tab[aria-selected="true"] .badge { background: rgba(255,255,255,.25); color: #fff; }
/* "Yeni" while new orders are waiting and another list is open: lime with red text.
   Once opened it looks like any other open list. */
.board-tab.has-new:not([aria-selected="true"]) { background: #c4d600; border-color: #c4d600; color: #be1e2d; }
.board-tab.has-new:not([aria-selected="true"]) .badge { background: #1d1d1b; color: #fff; }
.board { margin-top: 16px; }
.board-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; align-items: start; }
.board-list[hidden] { display: none; }
/* Business closed (orders.php): no tabs, the board shows only the warning */
.board-tabs[hidden], .board.closed .board-list { display: none; }
.board .empty { grid-column: 1 / -1; padding: 24px 0; border: 2px dashed var(--border); border-radius: var(--radius); }
.order { transition: box-shadow .3s; }
.order.status-new { border-left: 4px solid var(--primary); }
.order.status-ready { border-left: 4px solid #16a34a; }
.order.status-on_the_way { border-left: 4px solid #0284c7; }
.order.status-cancelled { opacity: .55; }
.order.flash { box-shadow: 0 0 0 3px var(--primary); }
.order-head, .order-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-head .order-no { color: #c2410c; font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.order-foot { margin-top: 10px; }
.order-lines { list-style: none; margin: 10px 0 0; padding: 0; }
.order-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--border); }
.order-note { margin: 8px 0 0; padding: 8px 10px; background: var(--badge); border-radius: 6px; font-size: .9rem; }
.order-foot .total { font-size: 1rem; }

/* Customer: sending an order and following it */
.cart-send { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.cart-send[hidden] { display: none; }

/* Delivery address on the staff order board (assets/orders.js) */
.order-address { margin: 8px 0 4px; padding: 8px 10px; border-radius: 6px; background: #f0f9ff; border: 1px solid #bae6fd; font-size: .9rem; }
.order-address a { color: inherit; font-weight: 600; }
.order-type { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 99px; font-size: .85rem; font-weight: 700; }
.order-type-delivery { background: #e0f2fe; color: #075985; }
.order-type-dine_in { background: #fef3c7; color: #92400e; }
.order-table { margin: 6px 0 2px; font-size: 1.25rem; font-weight: 800; }

/* First step of the public menu: home delivery or in the restaurant (order-start.php) */
.start { max-width: 640px; }
.start-title { text-align: center; margin: 8px 0 16px; }
.start-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
@media (max-width: 480px) { .start-choices { grid-template-columns: 1fr; } }
.start-choice {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    font: inherit; color: var(--text); background: #fff; cursor: pointer;
    padding: 22px 14px; border: 2px solid var(--border); border-radius: 14px;
}
.start-choice strong { font-size: 1.15rem; }
.start-choice:hover, .start-choice.current { border-color: var(--primary); }
.start-choice.current { background: #fff7f5; }
/* Business closed: both choices disabled, "Şu an işletme kapalıdır" below them */
.start-choice:disabled { opacity: .5; cursor: not-allowed; border-color: var(--border); background: #f5f5f5; }
.start-closed { text-align: center; font-weight: 600; }
.start-icon { font-size: 2.2rem; line-height: 1; }
.start-delivery[hidden] { display: none; }
.start-delivery [hidden] { display: none !important; }
.start-tabs { margin-bottom: 14px; }
.start-sub { font-size: 1.05rem; margin: 14px 0 2px; }
.start-saved { padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.start-saved p { margin: 4px 0; }
.start-or { text-align: center; margin-top: 12px !important; }
.start-delivery .start-go, .start-dine .start-go { width: 100%; justify-content: center; padding: 11px; font-size: 1.05rem; margin-top: 4px; }
/* "Restoran müşterisiyim": the table number (order-start.php) */
.start-dine[hidden] { display: none; }
.start-dine .start-sub { margin-top: 0; }
.start-dine input { max-width: 200px; display: block; font-size: 1.1rem; }
/* Table number fields are type="number" (digits only): no up/down arrows */
.table-no-input { -moz-appearance: textfield; appearance: textfield; }
.table-no-input::-webkit-outer-spin-button,
.table-no-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* The restaurant customer's table in the band above the menu and "Masa no değiştir" (menu.php) */
.table-badge { white-space: nowrap; }
.order-mode .link-btn { margin-left: 4px; }
.waiter-box .link-btn { margin-top: 2px; }
.link-btn[hidden] { display: none; }

/* "Garson çağır" and the browsing-only notice on the public menu (menu.php) */
.waiter-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.waiter-box .grow { min-width: 200px; }
.waiter-called { color: #166534 !important; font-weight: 600; }
.qty[hidden], #d-add[hidden] { display: none; }

/* Waiter calls on the order board (orders.php, assets/orders.js) */
.waiter-calls { margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--radius); background: #fff7ed; border: 2px solid #fb923c; }
.waiter-calls[hidden] { display: none; }
.waiter-calls h2 { font-size: 1.05rem; margin: 0 0 8px; color: #9a3412; }
.waiter-call { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #fed7aa; }
.waiter-call:first-of-type { border-top: 0; }
.waiter-call strong { font-size: 1.15rem; }

/* Chosen order type above the menu (menu.php) */
.order-mode { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-mode .grow { min-width: 200px; }

/* Delivery address and customer account in the cart (menu.php) */
.cart-account { margin-bottom: 14px; }
.cart-account [hidden] { display: none !important; }
.acc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-address { margin: 6px 0 2px; }
.acc-tabs { display: flex; gap: 6px; margin-bottom: 8px; }
.acc-tabs button {
    flex: 1; font: inherit; padding: 8px; border: 1px solid var(--border); border-radius: 6px;
    background: #fff; color: var(--text); cursor: pointer;
}
.acc-tabs button.current { border-color: var(--primary); color: var(--primary); font-weight: 700; background: #fff7f5; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; margin-top: 8px; }
.acc-grid .full { grid-column: 1 / -1; }
@media (max-width: 480px) { .acc-grid { grid-template-columns: 1fr; } }
.field-error { display: block; color: var(--danger); font-size: .85rem; font-weight: 400; margin-top: 2px; }
.field-error:empty { display: none; }
.acc-forgot { margin: -4px 0 10px; }
.link-btn { font: inherit; font-size: .9rem; padding: 0; border: 0; background: none; color: var(--primary); text-decoration: underline; cursor: pointer; }
.acc-ok { color: #166534; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 8px 12px; border-radius: 6px; font-size: .9rem; }
.auth-card .field-error { display: block; color: var(--danger); font-size: .85rem; font-weight: 400; margin-top: 2px; }
label.has-error input, label.has-error select { border-color: var(--danger); }
.active-order { margin-top: 8px; text-align: center; border: 2px solid var(--primary); }
.active-order[hidden] { display: none; }
.active-order-no { font-size: 2.6rem; font-weight: 800; line-height: 1.1; color: var(--primary); }
.active-order-status { display: inline-block; margin: 8px 0 4px; padding: 4px 14px; border-radius: 99px; font-weight: 700; background: #dbeafe; color: #1d4ed8; }
.active-order.status-accepted .active-order-status { background: #fef3c7; color: #92400e; }
.active-order.status-ready .active-order-status { background: #dcfce7; color: #166534; }
.active-order.status-on_the_way .active-order-status { background: #e0f2fe; color: #075985; }
.active-order p { margin: 4px 0 0; }
.ready-dlg { text-align: center; }
.ready-dlg h2 { margin: 4px 0; color: #166534; font-size: 2.2rem; line-height: 1.15; }
.ready-dlg p { margin: 8px 0 0; }
.ready-icon { font-size: 3rem; line-height: 1; }
.my-orders { margin-top: 8px; }
.my-orders[hidden] { display: none; }
.my-order { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.my-order .badge { font-size: .8rem; padding: 3px 10px; }
.my-order.status-accepted .badge { background: #fef3c7; color: #92400e; }
.my-order.status-ready .badge { background: #dcfce7; color: #166534; }
.my-order.status-on_the_way .badge { background: #e0f2fe; color: #075985; }
.my-order.status-cancelled .badge { background: #fdecec; color: var(--danger); }

/* Public menu theme (menu.php only): red #be1e2d for the brand and actions, lime #c4d600 as
   accent. Lime is too light for text on white, so it is only used as a fill behind dark text. */
body.public-menu {
    --primary: #be1e2d;
    --primary-dark: #9c1724;
    --accent: #c4d600;
    --accent-soft: #f4f8cc;
    --ink: #1d1d1b;
    --bg: #faf9f4;
    --border: #ebe8dc;
    --badge: #f1efe6;
    --radius: 14px;
    accent-color: var(--primary);
}
.public-menu .container { padding-top: 20px; }
.public-menu :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.public-menu .menu-header {
    position: relative; padding: 36px 16px 30px; color: #fff; background: var(--primary);
    border-bottom: 6px solid var(--accent);
}
.public-menu .menu-header h1 { margin: 0; font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
.menu-tagline {
    display: inline-block; margin: 10px 0 0; padding: 3px 14px; border-radius: 99px;
    background: var(--accent); color: var(--ink); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* Category accordion */
.public-menu .menu-section {
    margin-top: 14px; padding: 0 14px 14px; border: 1px solid var(--border); border-left: 6px solid var(--accent);
    box-shadow: 0 1px 2px rgba(29,29,27,.04); transition: box-shadow .2s;
}
.public-menu .menu-section[open] { border-left-color: var(--primary); box-shadow: 0 6px 20px rgba(29,29,27,.08); }
.public-menu .menu-section > summary { padding: 16px 2px; }
.public-menu .menu-section > summary h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.public-menu .menu-section[open] > summary h2 { color: var(--primary); }
.public-menu .menu-section > summary .badge { background: var(--accent); color: var(--ink); font-weight: 700; padding: 2px 9px; }
.public-menu .menu-section > summary::after { border-color: var(--primary); width: 9px; height: 9px; border-width: 0 3px 3px 0; }
.public-menu .menu-section .menu-item { background: #fff; }

.public-menu .menu-item { align-items: center; padding: 14px 16px; transition: border-color .15s, transform .15s; }
.public-menu .menu-item:hover { border-color: var(--accent); }
.public-menu .menu-item:active { transform: scale(.99); }
.public-menu .menu-item strong { font-size: 1.02rem; }
.public-menu .price-tag {
    flex-shrink: 0; color: var(--ink); font-weight: 400;
}
.public-menu .price-tag .currency { margin-left: 4px; }

/* Buttons, dialogs, cart */
.public-menu .btn { border-radius: 10px; }
.public-menu .btn.primary { font-weight: 700; }
.public-menu .btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.public-menu .btn.primary:disabled { opacity: .45; cursor: not-allowed; }
.public-menu dialog { border-top: 6px solid var(--primary); }
.public-menu .dlg h2 { color: var(--primary); font-weight: 800; }
.public-menu .total { color: var(--primary); font-weight: 800; }
.public-menu #dlg-item * { font-weight: 400; }   /* item dialog: no bold text at all */
/* Item description: a tinted panel, clearly apart from the options below it */
.public-menu #d-desc {
    margin: 10px 0 0; padding: 12px 14px; border-radius: 10px;
    background: var(--accent-soft); border-left: 4px solid var(--accent);
    color: var(--ink); font-size: .95rem; line-height: 1.55;
}
.public-menu #d-desc:empty { display: none; }
.public-menu #dlg-item legend { color: var(--primary); }
.public-menu #d-options:not(:empty) { margin-top: 16px; padding-top: 4px; border-top: 1px dashed var(--border); }
.public-menu input:focus, .public-menu textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent-soft); }

.public-menu .cart-bar { background: var(--primary); border-bottom: 4px solid var(--accent); border-radius: 16px; padding: 15px 20px; }
.public-menu .cart-bar #cart-count {
    display: inline-block; min-width: 1.6em; padding: 0 6px; border-radius: 99px;
    background: var(--accent); color: var(--ink); text-align: center;
}

/* Customer's order */
.public-menu .active-order { border: 0; border-top: 6px solid var(--accent); background: #fff; box-shadow: 0 6px 20px rgba(29,29,27,.08); }
.public-menu .active-order-no { color: var(--primary); font-size: 3rem; }
.public-menu .active-order-status { background: var(--accent-soft); color: var(--ink); }
.public-menu .active-order.status-ready .active-order-status { background: var(--accent); color: var(--ink); }
.public-menu .ready-dlg h2 { color: var(--ink); }
.public-menu .ready-dlg .active-order-no { display: inline-block; margin-top: 6px; padding: 2px 18px; border-radius: 12px; background: var(--accent); color: var(--ink); }
.public-menu .my-order.status-ready .badge { background: var(--accent); color: var(--ink); }
.public-menu .active-order.status-on_the_way .active-order-status { background: #e0f2fe; color: #075985; }


@media (max-width: 560px) {
    .choices { margin-left: 0; }
    .choice .price { width: 80px; }
}
