/* Shared navigation and the transactional screens of the local ordering preview. */
.foot nav {display:flex;align-items:center;flex-wrap:wrap;gap:0 18px}
.foot small {flex-basis:100%;margin:0}
.ordering main {min-height:54vh;padding-block:clamp(20px,3.5vw,46px)}
.ordering main :where(h1,h2,h3){font-weight:900;overflow-wrap:anywhere}
.ordering main h1 {font-size:clamp(1.65rem,3.4vw,2.9rem)}
.ordering main h2 {font-size:clamp(1.15rem,2vw,1.6rem)}
.ordering main h3 {font-size:1rem}
.page-heading {margin-bottom:clamp(18px,3vw,32px)}
.page-heading p,.muted,.field-help,.basket-empty p,.summary-note,.detail-price>span,.confirmation-panel p,.empty-state p,.history-item-summary,.order-line-name span {color:var(--quiet)}
.page-heading p,.detail-description,.info-panel p,.branch-card p,.confirmation-panel p {max-width:64ch;margin-top:8px;line-height:1.85}
.button,.text-button,.quantity-control button,.remove-line,.history-filters button {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;border:1px solid transparent;border-radius:11px;padding:9px 18px;font:inherit;font-weight:800}
.button.primary,.card-add {background:var(--orange);color:var(--ink)}
.button.secondary,.history-filters button,.text-button {background:white;border-color:var(--stroke);color:var(--ink)}
.button:disabled,.ordering button:disabled,.add:disabled {cursor:not-allowed;opacity:.56}
.full {width:100%}.text-button {font-size:.84rem;padding-inline:12px}
.notice,.payment-note,.payment-state,.error-summary {background:#fff4e9;border-radius:12px;padding:14px 16px;margin:14px 0;line-height:1.8}
.payment-note,.payment-state {display:flex;align-items:center;gap:12px}.payment-note svg,.payment-state svg{flex:none}
.error-summary,.field-error{color:#932b19}.error-summary a{text-decoration:underline}
.checkout-layout,.product-detail,.history-layout,.receipt-grid,.branch-grid {display:grid;align-items:start;gap:clamp(14px,2.5vw,30px)}
.checkout-layout {grid-template-columns:minmax(0,1fr) minmax(250px,.46fr)}
.checkout-main,.history-content {display:grid;gap:18px;min-width:0}
.content-panel,.basket-panel,.branch-card,.account-panel,.info-panel,.history-sidebar,.history-row,.empty-state,.confirmation-panel {min-width:0;border:1px solid var(--stroke);background:white;border-radius:16px;padding:clamp(16px,2.5vw,30px)}
.panel-heading,.history-reference,.history-row-actions,.detail-heading,.detail-price,.confirmation-actions,.details-actions,.social-links,.history-filters {display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.panel-heading {justify-content:space-between;margin-bottom:12px}
.basket-panel {position:sticky;top:16px;border-top:4px solid var(--orange)}
.basket-items {margin-top:12px}.basket-line,.order-line {display:flex;align-items:center;gap:12px;padding-block:13px;border-bottom:1px solid var(--stroke);min-width:0}
.basket-line-content,.order-line-name {flex:1;min-width:0}.basket-line-content>bdi,.order-line-name span{display:block;font-size:.86rem}
.photo-placeholder.small,.thumbnail {width:54px;height:54px;flex:none;border-radius:10px;background:var(--tile);display:grid;place-items:center;overflow:hidden}
.quantity-control{display:inline-flex;align-items:center;justify-content:space-between;direction:ltr;border:1px solid var(--stroke);border-radius:10px;background:var(--tile);min-height:44px}
.quantity-control button,.remove-line{width:44px;padding:0;background:transparent}
.quantity-control bdi{min-width:1.4em;text-align:center;font-weight:800}.quantity-control svg,.remove-line svg{width:17px}.remove-line{color:var(--quiet)}
.order-line>bdi,.detail-price bdi,.history-row-actions>bdi{font-weight:850;white-space:nowrap}
.summary-lines {margin:12px 0}
.summary-lines>div{display:flex;align-items:baseline;justify-content:space-between;gap:10px;border-bottom:1px solid var(--stroke);padding-block:10px}
.summary-lines dd{margin:0;font-weight:800}.summary-subtotal dd{font-size:1.25rem}.summary-note,.field-help{font-size:.88rem;line-height:1.8}
.basket-panel>.button,.account-form>.button,.checkout-form>.button{margin-top:16px}
.form-field{display:grid;gap:4px;margin-block:14px}.form-field label{font-weight:780}
.form-field input{width:100%;min-height:46px;background:white;border:1px solid #929ba9;border-radius:10px;padding:8px 12px}
.form-field input[aria-invalid=true]{border-color:#a43619}.account-panel{max-width:540px;margin:12px auto}.account-panel>.text-link{margin-bottom:14px}.account-panel .account-switch{margin:12px 0 0}
.product-page{max-width:1050px;margin:auto}.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:12px;color:var(--quiet);margin-bottom:14px;font-size:.9rem}
.breadcrumb a{display:inline-flex;align-items:center;min-height:44px;color:var(--accent);font-weight:750}
.product-detail{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.product-detail:not(:has(.detail-image)){max-width:680px;grid-template-columns:1fr}
.detail-image{margin:0;min-width:0}.detail-image .food-image{aspect-ratio:1.18;border-radius:18px;background:var(--tile)}
.product-detail-copy .muted{display:block;margin-bottom:5px;font-size:.89rem;color:var(--accent);font-weight:800}
.detail-price{margin:16px 0}.detail-price bdi{font-size:1.55rem}.detail-price span{font-size:.9rem}
.quantity-field{max-width:220px}.product-detail-copy>.text-link {margin-top:8px}
.empty-state,.confirmation-panel {text-align:center;max-width:740px;margin-inline:auto;padding-block:clamp(30px,6vw,80px)}
.empty-state>svg,.confirmation-mark {margin:0 auto 14px}.empty-state p,.confirmation-panel p {margin-inline:auto}
.empty-state .button,.confirmation-actions{margin-block-start:18px}.confirmation-actions{justify-content:center}
.confirmation-mark,.branch-marker,.timeline-dot {display:grid;place-items:center;width:44px;height:44px;background:#ffe8d9;border-radius:14px;color:var(--accent)}
.confirmation-panel .status-tag{margin-bottom:12px}.status-tag{display:inline-flex;width:fit-content;padding:4px 12px;border-radius:99px;font-size:.8rem;font-weight:800;background:var(--tile);color:var(--ink)}.status-rejected{background:#ffebe7;color:#842d22}.status-pending{background:#fff1d2;color:#68480c}
.history-layout{grid-template-columns:minmax(180px,.32fr) minmax(0,1fr)}.history-sidebar nav{display:grid;margin-block:16px}.history-sidebar a{min-height:44px;display:flex;align-items:center;gap:10px;color:var(--accent)}
.history-identity{display:grid;gap:8px}.history-identity span{font-size:.86rem;color:var(--quiet)}
.history-filters button.active,.history-filters button[aria-pressed=true]{background:var(--ink);color:white}.history-filters button{font-size:.85rem;padding-inline:13px}
.history-thumbnails{display:flex;gap:6px;margin-block:10px}.history-row-actions{margin-top:10px}.history-row-actions>bdi{margin-inline-end:auto}.history-row-info>.field-help{display:block;margin-top:5px}
.order-timeline{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:14px}.order-timeline li{display:flex;align-items:center;gap:8px}.timeline-dot{width:28px;height:28px;background:var(--tile)}.complete .timeline-dot{background:#ffe8d9}.timeline-dot svg{width:14px}
.receipt-grid,.branch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.detail-heading .page-heading{margin:0;margin-inline-end:auto}.branch-card .branch-marker{margin-bottom:12px}.branch-card .button{margin-top:16px}
.info-panel{max-width:800px}.info-panel>section+section,.faq-item+.faq-item{border-top:1px solid var(--stroke);margin-top:16px;padding-top:16px}
.faq-item summary{cursor:pointer;min-height:44px;font-weight:800}.contact-hotline{display:block;width:max-content;font-size:2.1rem;font-weight:900;direction:ltr;color:var(--accent)}.social-links{margin:12px 0}.social-links a{display:flex;align-items:center;min-height:44px;gap:8px}
@media(max-width:800px){
 .checkout-layout,.history-layout {grid-template-columns:1fr}.basket-panel{position:static}
 .history-sidebar{display:none}.order-line{flex-wrap:wrap}.order-line-name{min-width:100px}
 .product-detail{gap:18px}.ordering .foot{margin-top:24px}
}
@media(max-width:640px){
 .product-detail,.branch-grid,.receipt-grid{grid-template-columns:1fr}
 .detail-image .food-image{aspect-ratio:1.55}.order-line .thumbnail,.order-line>.photo-placeholder.small{width:42px;height:42px}
 .order-line-name{flex-basis:calc(100% - 60px)}.order-line .quantity-control{margin-inline-end:auto}
 .history-filters{gap:5px}.history-filters button{padding-inline:10px}.detail-price{margin:12px 0}
 .order-timeline{gap:8px}.order-timeline li{font-size:.86rem}
}
