/* Customer menu, basket and receipt. All existing controls and focus hooks remain native. */
body[data-mode=customer]{--ink:#193d37;--muted:#596b63;--accent:#974329;--paper:#fffdf8;background:#f5f3ed}
body[data-mode=customer] main{max-width:1000px;padding:32px 24px 64px}
body[data-mode=customer] .restaurant-header{background:var(--paper);border-color:#deded4;min-height:68px}
body[data-mode=customer] .restaurant-intro h1{max-width:22ch;margin:10px 0 16px;overflow-wrap:anywhere}
body[data-mode=customer] #restaurant-actions{margin:16px 0 24px}
body[data-mode=customer] #restaurant-actions a{background:transparent;color:var(--ink);border:1px solid #b9c9bf;padding:10px 16px;min-height:44px;font-size:14px}
body[data-mode=customer] .restaurant-category-nav{gap:8px;background:#f5f3ed;padding:8px 0 10px;flex-wrap:wrap;overflow:visible}
body[data-mode=customer] .restaurant-category-nav a{display:flex;align-items:center;justify-content:center;flex:1 1 120px;min-width:0;min-height:44px;padding:4px 8px;border-radius:9px;font-size:13px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;text-align:center;background:var(--paper);border-color:#cbd5cc}
body[data-mode=customer] #restaurant-content{gap:24px}
body[data-mode=customer] .restaurant-section{padding:24px;border-radius:18px;border-color:#dcded3;background:var(--paper)}
body[data-mode=customer] .restaurant-section h2{font-size:26px;line-height:1.25;margin:0 0 14px;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-dish{grid-template-columns:96px minmax(0,1fr) auto;gap:20px;padding:22px 0;align-items:start;border-color:#e5e6dc}
body[data-mode=customer] .restaurant-dish:last-child{padding-bottom:0}
body[data-mode=customer] .restaurant-dish:not(:has(img)){grid-template-columns:minmax(0,1fr) auto}
body[data-mode=customer] .restaurant-dish .restaurant-photo-button{width:96px;height:96px;border-radius:12px;grid-column:auto}
body[data-mode=customer] .restaurant-dish img{width:100%;height:100%;border-radius:12px}
body[data-mode=customer] .restaurant-dish h3{font-size:19px;line-height:1.35;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-dish p{margin:7px 0;font-size:15px;line-height:1.55;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-dish small{margin-top:8px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-dish>div:last-child{min-width:0;max-width:100%;display:grid;justify-items:end;gap:10px}
body[data-mode=customer] .restaurant-dish strong{margin:0;font-size:18px;line-height:1.4;white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--ink)}
body[data-mode=customer] .restaurant-dish-actions{gap:6px;max-width:100%}
body[data-mode=customer] .restaurant-dish .restaurant-add-button{min-width:74px;min-height:44px;padding:9px 12px;border-radius:10px;font-size:14px;gap:6px;background:#e7f0e8;color:#214d39;border:1px solid #9cbcaa}
body[data-mode=customer] .restaurant-dish .restaurant-add-button.restaurant-added{background:#287257;color:#fff;border-color:#287257}
body[data-mode=customer] .restaurant-dish button.restaurant-remove-button{width:44px;min-width:44px;height:44px;min-height:44px;border-color:#b9c9bf;background:#f0f4ef;color:#264b3a;font-size:20px}
body[data-mode=customer] .restaurant-dish-quantity{height:22px;min-width:22px;padding:0 5px;font-size:12px;border-radius:6px}
body[data-mode=customer] #restaurant-basket,body[data-mode=customer] #restaurant-ticket{padding:26px;margin:28px 0;background:var(--paper);border:1px solid #bacfc0;border-radius:18px}
body[data-mode=customer] #restaurant-basket h2{margin:0 0 12px;font:700 27px/1.3 Georgia,serif}
body[data-mode=customer] .restaurant-cart-line{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;padding:16px 0;border-color:#dce5dc}
body[data-mode=customer] .restaurant-cart-info strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-cart-info small{margin-top:4px;color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums}
body[data-mode=customer] .restaurant-quantity{gap:4px}
body[data-mode=customer] .restaurant-quantity button{width:44px;height:44px;min-height:44px;padding:0;font-size:20px;border-radius:9px;background:#edf4ed;color:#264b3a;border-color:#a6bdaa}
body[data-mode=customer] .restaurant-quantity input{width:44px;min-height:44px;padding:8px 2px;border-color:#b7c6b9;background:#fff;font-size:16px}
body[data-mode=customer] .restaurant-remove-dish{min-height:44px;background:transparent;color:#69473b;border:1px solid #d5c5ba;border-radius:9px;font-size:12px;padding:9px 10px;line-height:1.35}
body[data-mode=customer] #restaurant-basket label{font-size:15px;font-weight:700;line-height:1.45}
body[data-mode=customer] .restaurant-instructions-field{margin:20px 0;padding:16px;gap:8px;background:#f3f6ef;border:1px solid #d5dfd0;border-radius:12px}
body[data-mode=customer] #restaurant-basket .restaurant-instructions-field label{margin:0}
body[data-mode=customer] #restaurant-instructions{min-height:100px;padding:12px;font-size:16px;line-height:1.5;border-color:#afc3b3}
body[data-mode=customer] #restaurant-table{display:block;width:140px;min-height:48px;margin-top:8px;background:#fff;font-size:18px;border-color:#afc3b3}
body[data-mode=customer] #restaurant-table-help,body[data-mode=customer] #restaurant-payment-note{margin:8px 0 20px;font-size:14px;line-height:1.55;color:var(--muted)}
body[data-mode=customer] #restaurant-total{padding:18px 0 0;margin:20px 0 14px;border-top:1px solid #d6e0d4;font-size:24px;font-weight:800;font-variant-numeric:tabular-nums}
body[data-mode=customer] #restaurant-payment-choice{min-height:48px;border:1px solid #afc3b3;border-radius:9px;background:#fff;padding:10px 12px;color:var(--ink);font-size:16px}
body[data-mode=customer] #restaurant-basket>button[type=submit]{width:100%;min-height:52px;border-radius:11px;background:#1d5d45;color:white;font-size:17px;padding:13px 20px}
body[data-mode=customer] #restaurant-order-status:empty{display:none}
body[data-mode=customer] .restaurant-basket-bar{background:#193d37;border-color:#8ea99a;padding-top:10px}
body[data-mode=customer] .restaurant-basket-bar-inner{max-width:952px}
body[data-mode=customer] .restaurant-basket-count{min-width:38px;height:38px;border-radius:10px;font-size:18px}
body[data-mode=customer] .restaurant-basket-bar button{min-height:44px;background:#eef4df;color:#21432e;border-radius:10px;padding:10px 14px}
body[data-mode=customer].restaurant-has-basket main{padding-bottom:140px}
body[data-mode=customer] .restaurant-receipt-head{align-items:center;flex-wrap:wrap}
body[data-mode=customer] .restaurant-receipt-head h2{font-size:clamp(56px,8vw,80px);color:#1d5d45;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-receipt-status{background:#eaf3e8;color:#275537;border:1px solid #bed1b8;border-radius:9px}
body[data-mode=customer] #restaurant-ticket[data-status=ready]{border-color:#479568}
body[data-mode=customer] .restaurant-receipt-items{border-color:#d6e0d4;padding:14px 0;font-size:15px}
body[data-mode=customer] .restaurant-receipt-items>div{gap:18px;margin:10px 0}
body[data-mode=customer] .restaurant-receipt-items span{min-width:0;overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-receipt-items strong{font-variant-numeric:tabular-nums}
body[data-mode=customer] .restaurant-receipt-total{font-size:24px}
body[data-mode=customer] .restaurant-receipt-actions button{min-height:44px;border:1px solid #a9c1b1;background:#edf4ed;color:#264b3a;font-size:14px;line-height:1.45;padding:10px 14px}
body[data-mode=customer] #restaurant-ticket>p,body[data-mode=customer] #restaurant-ticket>small{overflow-wrap:anywhere}
body[data-mode=customer] .restaurant-order-summary{background:#edf4e9;border-color:#b2c9b4;border-radius:12px}
body[data-mode=customer] .restaurant-saved-receipts{background:var(--paper);border-color:#d5dfd0}
body[data-mode=customer] .restaurant-saved-receipts a{min-height:44px;background:#f0f5ec}
body[data-mode=customer] button:focus-visible,body[data-mode=customer] a:focus-visible,body[data-mode=customer] input:focus-visible,body[data-mode=customer] textarea:focus-visible,body[data-mode=customer] select:focus-visible{outline:3px solid #974329;outline-offset:3px}
.restaurant-customer-announcement{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:600px){
 body[data-mode=customer] main{padding:24px 16px 48px}
 body[data-mode=customer] .restaurant-header{padding:14px 16px}
 body[data-mode=customer] .restaurant-intro h1{font-size:34px;line-height:1.15}
 body[data-mode=customer] .restaurant-section{padding:18px 16px}
 body[data-mode=customer] .restaurant-section h2{font-size:24px}
 body[data-mode=customer] .restaurant-dish{grid-template-columns:76px minmax(0,1fr);gap:12px;padding:20px 0}
 body[data-mode=customer] .restaurant-dish:not(:has(img)){grid-template-columns:minmax(0,1fr)}
 body[data-mode=customer] .restaurant-dish .restaurant-photo-button{width:76px;height:84px;grid-column:auto}
 body[data-mode=customer] .restaurant-dish h3{font-size:18px}
 body[data-mode=customer] .restaurant-dish p{font-size:14px}
 body[data-mode=customer] .restaurant-dish>div:last-child{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
 body[data-mode=customer] #restaurant-basket,body[data-mode=customer] #restaurant-ticket{padding:20px 16px}
 body[data-mode=customer] .restaurant-cart-line{grid-template-columns:minmax(0,1fr) auto;gap:10px}
 body[data-mode=customer] .restaurant-cart-info{grid-column:1/-1}
 body[data-mode=customer] .restaurant-remove-dish{justify-self:end;max-width:110px}
 body[data-mode=customer] .restaurant-instructions-field{padding:12px}
 body[data-mode=customer] .restaurant-basket-bar-inner{gap:8px}
 body[data-mode=customer] .restaurant-basket-bar button{padding:10px;font-size:13px}
 body[data-mode=customer] .restaurant-basket-bar-info strong{font-size:13px}
 body[data-mode=customer] .restaurant-receipt-head{gap:12px}
 body[data-mode=customer] .restaurant-receipt-actions{gap:8px}
}
/* Keep category links in normal flow while the active order summary stays within reach. */
body[data-mode=customer].restaurant-has-active-order .restaurant-order-summary{top:0}
body[data-mode=customer].restaurant-has-active-order .restaurant-category-nav{position:static}
@media(max-width:600px){
 body[data-mode=customer] .restaurant-order-summary-number{display:grid;gap:2px}
 body[data-mode=customer] .restaurant-order-summary-number small{max-width:none;font-size:11px;line-height:1.3}
 body[data-mode=customer] .restaurant-order-summary-state{font-size:13px}
}

/* Receipt recovery links and native buttons share one consistent action row. */
body[data-mode=customer] .restaurant-receipt-actions{align-items:stretch}
body[data-mode=customer] .restaurant-receipt-actions>:is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-width:0;min-height:48px;margin:0;padding:10px 14px;font:700 14px/1.45 system-ui,sans-serif;text-align:center;white-space:normal}
body[data-mode=customer] #restaurant-cart-empty{color:#29583d;font-weight:700;border-top:1px solid #cbdac9;padding-top:12px}
/* Embedded phone previews can be narrower than a phone's full viewport. */
html:has(body[data-mode=customer]){scroll-padding-block-start:100px}
body[data-mode=customer] .restaurant-dish button{scroll-margin-block:100px}
@media(max-width:260px){
 body[data-mode=customer] .restaurant-dish{grid-template-columns:minmax(0,1fr)}
 body[data-mode=customer] .restaurant-dish .restaurant-photo-button{width:100%;height:128px}
}
@media(max-width:300px){
 body[data-mode=customer] .restaurant-section{padding-inline:12px}
 body[data-mode=customer] .restaurant-dish h3{overflow-wrap:break-word}
}

/* Quantity and removal actions share a 44 px row, including narrow demo phones. */
body[data-mode=customer] .restaurant-remove-dish{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;white-space:nowrap}
body[data-mode=customer] .restaurant-remove-dish::before{width:16px;height:16px;margin-inline-end:0}
@media(max-width:350px){
 body[data-mode=customer] .restaurant-remove-dish{width:44px;min-width:44px;max-width:44px;height:44px;padding:0;gap:0}
 body[data-mode=customer] [data-customer-remove-label]{display:none}
 body[data-mode=customer] .restaurant-cart-info{grid-column:1;grid-row:1}
 body[data-mode=customer] .restaurant-quantity{grid-column:1/-1;grid-row:2}
 body[data-mode=customer] .restaurant-remove-dish{grid-column:2;grid-row:1;align-self:center}
}

/* Compact customer actions keep a full touch target without oversized styling. */
@media(max-width:600px){
 body[data-mode=customer] .restaurant-dish .restaurant-add-button{min-width:68px;min-height:44px;padding:7px 10px;border-radius:8px;font-size:13px;gap:6px}
 body[data-mode=customer] #restaurant-basket>button[type=submit]{min-height:44px;padding:10px 14px;border-radius:9px;font-size:15px;line-height:1.4}
 body[data-mode=customer] .restaurant-receipt-actions>:is(button,a){min-height:44px;padding:8px 10px;border-radius:8px;font-size:13px;line-height:1.4}
}
@media(max-width:300px){body[data-mode=customer] .restaurant-category-nav{position:static}body[data-mode=customer] .restaurant-receipt-actions>:is(button,a){padding-inline:8px;font-size:12px}}

/* Narrow embedded phones still have room for a thumbnail beside the dish. */
@media(min-width:261px) and (max-width:350px){
 body[data-mode=customer] .restaurant-dish{grid-template-columns:64px minmax(0,1fr);gap:10px}
 body[data-mode=customer] .restaurant-dish:not(:has(img)){grid-template-columns:minmax(0,1fr)}
 body[data-mode=customer] .restaurant-dish .restaurant-photo-button{width:64px;height:72px;grid-column:auto}
 body[data-mode=customer] .restaurant-dish h3{font-size:16px}
}
body[data-mode=customer] .restaurant-add-button[data-button-icon]::before,
body[data-mode=customer] .restaurant-receipt-actions [data-button-icon]::before{margin-inline-end:0}

/* Receipt and sticky summary express the same state as the staff queue and board. */
body[data-mode=customer] :is(#restaurant-ticket[data-status=received] .restaurant-receipt-status,#restaurant-ticket[data-status=canceled] .restaurant-receipt-status,.restaurant-order-summary[data-status=received],.restaurant-order-summary[data-status=canceled]){background:#fff0ed;color:#862d36;border-color:#d9a5ab}
body[data-mode=customer] :is(#restaurant-ticket[data-status=preparing] .restaurant-receipt-status,.restaurant-order-summary[data-status=preparing]){background:#fff0dc;color:#864300;border-color:#d9a35d}
body[data-mode=customer] :is(#restaurant-ticket[data-status=ready] .restaurant-receipt-status,#restaurant-ticket[data-status=completed] .restaurant-receipt-status,.restaurant-order-summary[data-status=ready],.restaurant-order-summary[data-status=completed]){background:#e3f3e7;color:#185b32;border-color:#8ebc9b}
