:root{font-family:system-ui,-apple-system,sans-serif;color:#1f2937;background:#fff;font-size:15px;--wine:#334155;--accent:#334155;--accent-text:#fff;--border:#e5e7eb;--muted:#667085;--nav-height:54px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--border);border-radius:14px;padding:12px 16px;color:var(--wine);background:white;min-height:44px}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:3px}.primary{background:var(--accent);color:var(--accent-text);border-color:var(--accent);font-weight:650}.secondary{background:transparent}.muted{color:var(--muted);font-size:14px;line-height:1.6}header{display:flex;gap:20px;align-items:center;justify-content:space-between;max-width:1120px;margin:auto;padding:24px 28px}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:inherit}.brand-mark{font-size:38px;color:var(--wine)}#brand-name{font:600 24px Georgia,serif;letter-spacing:-.5px;overflow-wrap:anywhere}#brand-subtitle{font-size:11px;color:var(--muted);display:block;margin-top:5px}.header-tools{display:flex;gap:16px;align-items:center}#table{font-size:13px;color:var(--wine);font-weight:650;white-space:nowrap;background:white;padding:9px 12px;border-radius:30px}.language{display:flex;gap:5px;align-items:center;color:var(--wine)}.language select{border:0;background:transparent;min-height:44px;max-width:100px;color:inherit;font-size:13px;font-weight:600}main{max-width:1120px;margin:auto;padding:0 28px 16px}h1{font:400 clamp(32px,5vw,46px) Georgia,serif;letter-spacing:-1.2px;margin:12px 0}h2{font-size:22px;letter-spacing:-.4px}p{line-height:1.6}.welcome{position:relative;isolation:isolate;overflow:hidden;border-radius:26px;background:#eaece4;padding:32px 36px;margin:0 0 24px;min-height:180px}.eyebrow{color:var(--wine);font-size:11px;text-transform:uppercase;letter-spacing:1.8px;font-weight:650}.welcome h1,.welcome p{position:relative;z-index:1;max-width:75%}.welcome p{margin:0;max-width:65%}.welcome-decoration{position:absolute;right:24px;top:-45px;color:var(--accent);font:240px Georgia,serif;opacity:.12;z-index:-1}.menu-tools{position:sticky;top:0;z-index:3;background:#fff;padding-top:8px;padding-bottom:4px}.search-wrap{display:flex;align-items:center;gap:10px;background:white;border:1px solid var(--border);border-radius:16px;padding:0 16px}.search-wrap>span{font-size:28px;color:var(--muted)}#search{width:100%;border:0;background:transparent;padding:15px 0;min-width:0;outline-offset:0}.categories{display:flex;overflow:auto;gap:8px;scrollbar-width:none;margin:14px 0 4px;padding-bottom:4px}.categories button{white-space:nowrap;padding:10px 17px;border-radius:30px;font-size:14px;font-weight:600}.categories .selected{color:var(--accent-text);background:var(--accent);border-color:var(--accent)}#subsections{margin-top:8px}#subsections:empty{display:none}#subsections button{padding:7px 12px;font-size:13px;min-height:40px;background:transparent;border:0}#subsections .selected{background:white;color:var(--wine);box-shadow:0 0 0 1px var(--border) inset}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:20px 0 14px}#breadcrumb{margin:0;font:500 26px Georgia,serif;letter-spacing:-.4px}#product-count{white-space:nowrap;font-size:12px}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product{position:relative;text-align:left;display:flex;flex-direction:column;padding:0;overflow:hidden;border:1px solid #e8e5dd;border-radius:22px;background:white;box-shadow:0 4px 12px #2d302506;min-width:0;color:inherit}.product-visual{width:100%;aspect-ratio:1;background:#eeede7;display:flex;align-items:center;justify-content:center;overflow:hidden}.product-visual img,.detail-image img{width:100%;height:100%;object-fit:cover;display:block}.image-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(140deg,#e4e9df,#f3ede2);color:var(--wine);font:56px Georgia,serif;letter-spacing:-2px}.product-copy{display:flex;flex:1;flex-direction:column;gap:8px;padding:17px}.product strong{font-size:16px;font-weight:650;line-height:1.35}.product .description{font-size:13px;color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product .price{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:auto;padding-top:8px;font-size:15px;font-weight:650;color:var(--wine)}.product .add{display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-text);border-radius:50%;width:34px;height:34px;font-size:24px;font-weight:400}.product .view{font-size:12px;line-height:34px}.account-help{color:var(--wine);font-size:13px;line-height:1.55;background:#eeeae2;padding:14px 16px;border-radius:14px}#notice:empty{display:none}#notice{background:#e8ece2;border-radius:14px;padding:14px;margin-bottom:18px;font-size:14px}.test{font-size:11px;color:#785318;padding:9px 12px;background:#f5e8cf;border-radius:12px;margin-bottom:14px}nav{position:fixed;z-index:5;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:4px;padding:4px 12px calc(4px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--border);height:calc(var(--nav-height) + env(safe-area-inset-bottom))}nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;position:relative;border:0;background:transparent;padding:2px 8px;font-size:11px;line-height:14px;color:var(--muted);max-width:180px;flex:1}nav button[aria-selected=true]{color:var(--wine);font-weight:700}.nav-icon{font-size:20px;line-height:22px}#cart-count:empty{display:none}#cart-count{position:absolute;top:0;left:calc(50% + 8px);background:var(--accent);color:var(--accent-text);min-width:18px;height:18px;line-height:18px;border-radius:20px;font-size:10px;font-weight:700}footer{position:fixed;bottom:calc(var(--nav-height) + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:calc(100% - 32px);max-width:600px;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px 12px 10px 20px;border-radius:20px;background:#fff;box-shadow:0 6px 28px #282c2920;border:1px solid var(--border)}footer span{font-weight:700;font-size:18px}footer button{border-radius:13px}.card,.summary{background:white;border-radius:20px;padding:10px 20px}.row{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:17px 0;border-bottom:1px solid var(--border)}.row:last-child{border-bottom:0}.row .left{flex:1;min-width:0}.row strong{font-size:15px}.row p{margin:6px 0;font-size:12px;color:var(--muted)}.row .amount{white-space:nowrap;font-size:14px}.row button{font-size:12px;min-height:36px;padding:6px 10px;margin-top:6px}.total{font-size:24px;font-weight:650;margin:24px 0}.summary{margin:22px 0;padding:16px}.summary .row{border:0;padding:8px}.summary .balance{font-weight:700;font-size:22px;color:var(--wine)}#send,#pay{width:100%;margin:10px 0;min-height:54px}.confirmation{background:#e6eee7;border:1px solid #b6c9b6;border-radius:18px;padding:18px;margin:20px 0;color:#30613d}.confirmation button{display:block;margin-top:12px;width:100%;text-align:left}#suggestions button{margin:0 8px 8px 0}dialog{position:fixed;inset:0;margin:auto;border:0;border-radius:26px;padding:0;max-width:480px;width:calc(100% - 28px);max-height:90dvh;overflow:auto;overscroll-behavior:contain;box-shadow:0 15px 55px #282c2933;color:inherit;background:#fff}dialog::backdrop{background:#17221bcc;backdrop-filter:blur(4px)}.detail-image{aspect-ratio:1;width:100%;overflow:hidden}.detail-body{padding:24px}.detail-body h2{font:400 32px Georgia,serif;margin:0 0 12px}.close{position:absolute;right:14px;top:14px;border-radius:50%;width:44px;height:44px;padding:0;font-size:28px;background:white;box-shadow:0 3px 12px #0002;z-index:1}#product-price{font-weight:650;color:var(--wine)}.field{display:block;margin:17px 0;font-size:14px;font-weight:550}.field input,.field textarea,fieldset textarea{display:block;margin-top:9px;border:1px solid var(--border);border-radius:12px;width:100%;padding:12px}.field textarea{resize:vertical;min-height:85px}.quantity{display:flex;align-items:center;justify-content:space-between}.quantity input{width:90px;margin:0}fieldset{border:1px solid var(--border);border-radius:14px;margin:18px 0;padding:14px}legend{font-weight:650;font-size:15px}fieldset label{display:flex;align-items:center;gap:10px;padding:11px 0;font-size:14px}fieldset input{accent-color:var(--accent);width:19px;height:19px}fieldset small{color:var(--muted)}#product-error{color:#a43c34;font-size:13px}#add{width:100%;min-height:54px}#loading{padding:24px;text-align:center}[hidden]{display:none!important}@media(max-width:640px){header{padding:18px 18px;gap:10px}.brand{gap:8px}.brand-mark{font-size:28px}#brand-name{font-size:21px}#brand-subtitle{max-width:160px}.header-tools{gap:4px;flex-direction:column;align-items:flex-end}#table{padding:5px 10px;font-size:11px}.language select{min-height:32px;font-size:12px}main{padding:0 16px 16px}.welcome{padding:26px 22px;min-height:180px;margin-bottom:16px;border-radius:22px}.welcome h1{max-width:90%;font-size:36px}.welcome p{max-width:80%;font-size:13px}.welcome-decoration{font-size:190px;right:-40px;top:-10px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product{border-radius:17px}.product-copy{padding:13px;gap:7px}.product strong{font-size:14px}.product .description{font-size:12px}.product .price{font-size:14px}.product .add{width:28px;height:28px;font-size:21px}.categories button{font-size:13px;padding:9px 15px}#breadcrumb{font-size:23px}.section-heading{align-items:flex-end}dialog{max-height:92dvh}.detail-body{padding:20px}.card{padding:8px 16px}}@media(max-width:350px){.products{grid-template-columns:1fr}.header-tools{gap:0}#brand-name{font-size:18px}}@media(prefers-reduced-motion:no-preference){button{transition:background .15s,box-shadow .15s,transform .15s}.product:hover{transform:translateY(-2px);box-shadow:0 8px 22px #2d302510}}
/* A phone presents a quick, readable list; larger screens use the photo grid. */
@media(max-width:640px){.welcome{padding:24px 22px;min-height:154px}.welcome p{max-width:85%}.products{grid-template-columns:1fr;gap:12px}.product{flex-direction:row;align-items:stretch;min-height:128px}.product-visual{width:104px;height:104px;flex-shrink:0;margin:12px 0 12px 12px;border-radius:12px}.product-copy{padding:14px 14px 14px 16px;min-width:0}.product strong{font-size:16px}.product .description{font-size:12px}.image-placeholder{font-size:42px}.product .price{padding-top:7px}.section-heading{margin:18px 0 14px}}

.detail-photo{width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden}

svg.nav-icon{width:20px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Language first, centered business identity, table on the trailing edge. */
header{display:block;padding:12px 28px 22px}.language{gap:0;font-size:12px}.identity-row .language{grid-column:1;grid-row:1;justify-self:start;min-width:0;max-width:100%}.language select{border:1px solid var(--border);border-radius:12px;background:white;padding:0 10px;max-width:100%;width:100%;min-width:0}.identity-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr) minmax(0,1fr);align-items:center;min-height:84px;gap:12px}.identity-row .brand{grid-column:2;grid-row:1;justify-content:center;flex-direction:column;gap:5px;text-align:center;min-width:0}.identity-row #table{grid-column:3;grid-row:1;justify-self:end;white-space:normal;text-align:center;max-width:100%}#brand-logo{max-width:100%;width:150px;height:72px;object-fit:contain}#brand-name{font-size:25px}#brand-subtitle{max-width:100%}.welcome{min-height:120px;padding:24px 28px}.welcome h1{font-size:32px}.welcome-decoration{font-size:180px;top:-40px}#categories{gap:12px;margin-top:16px}#categories button{font-size:21px;min-height:72px;min-width:140px;border-radius:18px;padding:16px 24px}#categories button[aria-pressed=true]{background:var(--accent);color:var(--accent-text)}#subsections button{font-size:16px;min-height:46px;padding:10px 16px}.table-accounts{display:flex;align-items:center;gap:8px;overflow:auto;padding:12px 0 18px}.table-accounts button{white-space:nowrap}.table-accounts .selected{background:var(--accent);color:var(--accent-text)}.table-accounts span{white-space:nowrap;color:var(--muted);font-size:13px}
@media(max-width:640px){header{padding:10px 16px 18px}.identity-row{min-height:90px;gap:8px;grid-template-columns:minmax(84px,1fr) minmax(0,2.4fr) minmax(72px,1fr)}#brand-logo{width:130px;height:66px}#brand-name{font-size:23px}.identity-row #table{font-size:12px;padding:8px;border-radius:12px}.language select{min-height:44px}.welcome{min-height:118px;padding:20px 22px}.welcome h1{font-size:30px}#categories button{font-size:20px;min-height:68px;min-width:128px;padding:14px 20px}}

/* Put search directly below the identity, before notices and categories. */
.welcome{display:none}.search-wrap{margin-top:0;margin-bottom:14px}.menu-tools{padding-top:0}#categories{margin-top:0}

.field select{display:block;width:100%;margin-top:9px;min-height:44px;border:1px solid var(--border);border-radius:12px;background:white;padding:10px;color:inherit}.portion-item{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--border);cursor:pointer}.portion-item input{width:20px;height:20px;accent-color:var(--accent)}.portion-item span{flex:1}.profile-detail{overflow-wrap:anywhere}#tab-draft button{width:100%;margin-top:12px}#portion-total{font-weight:650;color:var(--wine)}


/* Clean white menu: compact controls, neutral surfaces and consistent typography. */
body,.menu-tools{background:#fff}
button{border-radius:12px}
header{padding:12px 28px 14px}
.identity-row{min-height:72px}
#brand-logo{height:56px}
#brand-name,h1,#breadcrumb,.detail-body h2{font-family:system-ui,-apple-system,sans-serif;font-weight:650;letter-spacing:-.6px}
h1{font-size:clamp(28px,4vw,36px)}
#breadcrumb{font-size:22px}
.detail-body h2{font-size:28px}
#table{background:#f3f4f6;border-radius:10px;padding:8px 10px}
.language select{border-color:var(--border);border-radius:10px}

.search-wrap{background:#f6f7f9;border-color:#f0f1f3;border-radius:12px;margin-bottom:12px}
.search-wrap>span{font-size:24px}
#search{padding:12px 0;min-height:46px;font-size:14px}
#categories{gap:8px;margin-bottom:2px}
#categories button{font-size:16px;min-height:46px;min-width:92px;border-radius:12px;padding:10px 16px}
#subsections{gap:4px;margin-top:4px}
#subsections button{font-size:14px;min-height:44px;padding:8px 12px;border-radius:10px}
#subsections .selected{background:#f3f4f6;box-shadow:none}
.section-heading{margin:18px 0 12px}
.products{gap:12px}
.product{border-color:var(--border);border-radius:14px;box-shadow:none}
.product:hover{box-shadow:none;transform:none;border-color:#d0d5dd}
.product-visual{background:#f3f4f6}
.image-placeholder{background:#f3f4f6;font:600 36px/1 system-ui,-apple-system,sans-serif;letter-spacing:-1px}
.product-copy{gap:6px;padding:14px}
.product .add{width:30px;height:30px;font-size:22px}
.account-help,#notice{background:#f6f7f9;color:#475467;border:1px solid #eef0f3;border-radius:12px;padding:12px 14px}
#notice{margin-bottom:12px;font-size:13px}
.card,.summary{border:1px solid var(--border);border-radius:14px}
.table-accounts{padding:8px 0 12px}
.bill-panel{margin:18px 0 26px}
.bill-panel-heading{display:flex;align-items:center;gap:12px;margin:0 0 12px}
.bill-panel-heading h2{font-size:21px;line-height:1.2;margin:0;letter-spacing:-.35px}
.bill-panel-heading p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.4}
.bill-panel-icon{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:12px;background:#f3f4f6;color:var(--wine)}
.bill-panel-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.payment-panel{padding:16px;border:1px solid var(--border);border-radius:18px;background:#fafbfc}
.payment-panel .bill-panel-heading{margin-bottom:14px}
.payment-panel .bill-panel-icon{background:#e9edf3}
.payment-panel>.summary,.payment-panel>.reward-invitation{margin:12px 0}
.payment-panel>.summary:first-of-type{margin-top:0}
.payment-panel>#pay{margin:12px 0 4px}
.payment-panel>#payment-help{margin:10px 2px;font-size:12px}
.payment-panel>#payments{margin-top:8px}
footer{border-radius:14px;box-shadow:0 4px 16px #1018280d;padding:8px 10px 8px 16px;gap:12px}
footer button{border-radius:10px}
nav{border-top-color:#eef0f3}
dialog{border-radius:20px}
@media(max-width:640px){
 header{padding:8px 16px 12px}
 .identity-row{min-height:72px}
 #brand-logo{width:124px;height:52px}
 #brand-name{font-size:21px}
 .identity-row #table{border-radius:10px;padding:8px}
 .product{min-height:104px}
 .product-visual{width:80px;height:80px;margin:12px 0 12px 12px;border-radius:10px}
 .product-copy{padding:12px;gap:5px}
 .product strong{font-size:15px}
 .product .price{font-size:14px;padding-top:4px}
}

/* Subcategory chips jump within one uninterrupted category list. */
.product-sections{display:flex;flex-direction:column;gap:28px}
.menu-subsection{min-width:0}
.subsection-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.subsection-heading h3{margin:0;font-size:18px;font-weight:650;letter-spacing:-.3px}
.subsection-heading span{font-size:12px}

/* KDS progress stays visible on the account after payment. */
#preparation-tracking{padding:16px;margin:12px 0 20px}
.preparation-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.preparation-heading h2{margin:0;font-size:17px}
.preparation-status{display:inline-block;margin-top:8px;border-radius:8px;background:#f3f4f6;padding:5px 8px;color:#475467;font-size:12px;font-weight:600;line-height:1.35}
.preparation-heading .preparation-status{margin-top:0}
.preparation-status.accepted,.preparation-status.preparing{background:#fff5e4;color:#80531d}
.preparation-status.ready{background:#e9f6ef;color:#216347}
.preparation-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:6px;padding:0;margin:20px 0 12px}
.preparation-steps li{position:relative;padding-top:12px;color:var(--muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}
.preparation-steps li:before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:#eef0f3;border-radius:3px}
.preparation-steps .complete{color:var(--wine);font-weight:650}
.preparation-steps .complete:before{background:var(--accent)}
#preparation-tracking p{margin:0 0 4px;font-size:13px}
#preparation-tracking small{color:var(--muted);font-size:11px}

/* Payment fields remain mounted while account and KDS data refresh. */
.inline-payment{max-width:580px;margin:16px auto;border:1px solid var(--border);border-radius:16px;padding:20px;scroll-margin-top:16px}
.inline-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.inline-heading h2{margin:0;font-size:19px}
.inline-heading strong{color:var(--wine);font-size:18px}
.payment-test{font-size:12px;color:var(--muted);margin:8px 0 18px}
.payment-divider{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:18px 0}
.payment-divider:before,.payment-divider:after{content:'';height:1px;background:var(--border);flex:1}
#contact-element{margin-bottom:16px}
#confirm-payment{width:100%;min-height:48px;margin-top:16px}
.payment-message{color:#b42318;font-size:13px;margin:12px 0 0;overflow-wrap:anywhere}
.payment-message:empty{display:none}
.payment-secure{font-size:11px;color:var(--muted);text-align:center;margin:12px 0 0}
@media(max-width:640px){.inline-payment{padding:16px}.inline-heading h2{font-size:17px}}

.tip-tools h2{font-size:16px;margin:0 0 12px}.tip-options{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.tip-option{padding:10px 12px;min-height:44px;font-size:14px;border-radius:12px}.tip-option[aria-pressed="true"]{background:var(--accent,#334155);color:#fff}.tip-tools .field{margin:12px 0}.tip-tools .row:last-child{font-weight:700}

/* Order preview and tabs share one card attached to the bottom edge. */
.bottom-dock{position:fixed;bottom:var(--viewport-bottom-inset,0px);left:0;right:0;z-index:5;background:#fff;border-top:1px solid var(--border);border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}
.bottom-dock:has(nav[hidden]){display:none}
.bottom-dock>footer{position:static;bottom:auto;left:auto;transform:none;width:100%;max-width:600px;margin:0 auto;border:0;border-bottom:1px solid var(--border);border-radius:0;background:transparent;box-shadow:none;padding:10px 16px;gap:12px}
.bottom-dock>footer span{white-space:nowrap}
.bottom-dock>nav{position:static;width:100%;max-width:600px;margin:0 auto;border:0;background:transparent;height:auto;min-height:54px;padding:4px 12px}

/* Optional rewards signup stays compact until the customer opens it. */
.reward-invitation{margin:16px 0;padding:16px;border:1px solid #e3e8f0;border-radius:16px;background:#f8fafc;color:inherit}
.reward-banner{display:flex;gap:12px;align-items:flex-start}
.reward-icon{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#e8edf4;color:var(--accent);font-size:24px;line-height:1}
.reward-copy{flex:1;min-width:0}
.reward-invitation h2{font-size:17px;line-height:1.3;letter-spacing:-.3px;margin:0 0 5px}
.reward-invitation p{font-size:13px;line-height:1.5;margin:0}
.reward-join{margin-top:12px;padding:10px 16px;min-height:44px;font-size:14px;font-weight:650}
.reward-invitation .reward-note{font-size:11px;color:var(--muted);margin-top:10px}
.reward-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:14px}
.reward-form .field,.reward-identity{flex:1;min-width:180px;overflow-wrap:anywhere}
.reward-form .field{margin:0}
.reward-form button{min-height:44px;font-size:14px}
.reward-form input{min-height:48px;font-size:16px}
.reward-dismiss{margin-top:10px;background:transparent;font-size:12px;padding:8px 12px;min-height:44px}
.reward-status{font-size:13px;margin-top:12px!important;overflow-wrap:anywhere}
.tip-tools{padding:16px;margin:16px 0}
.tip-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tip-heading h2{margin:0;font-size:17px;letter-spacing:-.3px}
.optional-label{color:var(--muted);font-size:12px}
.tip-tools .tip-help{font-size:12px;margin:6px 0 14px}
.tip-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:8px}
.tip-option{padding:10px 8px;background:#fff;font-size:13px}
.tip-tools .row{padding:10px 0}
.tip-tools .row:last-child{border-top:1px solid var(--border);margin-top:4px}
#pay{width:100%;min-height:48px}
@media(max-width:640px){.reward-form{display:block}.reward-form button{width:100%;margin-top:12px}.reward-form .field{margin-top:10px}.reward-join{width:100%}}

/* Keep ordering controls visible while the product and modifiers scroll. */
#product-dialog{overflow:hidden;max-height:92vh;max-height:92dvh}
#product-form{display:flex;flex-direction:column;max-height:92vh;max-height:92dvh;min-height:0}
#product-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#product-actions{flex:none;padding:14px 16px max(14px,env(safe-area-inset-bottom));border-top:1px solid var(--border);background:#fff;box-shadow:0 -4px 18px #18233208}
#product-actions #product-error{margin:0 0 10px;max-height:4.8em;overflow:auto}
#product-actions #product-error:empty{display:none}
.product-action-row{display:flex;align-items:center;gap:12px}
.quantity-control{display:flex;align-items:center;border:1px solid var(--border);border-radius:14px;flex:none;overflow:hidden}
.quantity-control button{width:44px;height:52px;padding:0;border:0;border-radius:0;font-size:24px}
.quantity-control input{width:36px;text-align:center;padding:0;border:0;background:transparent;appearance:textfield;-moz-appearance:textfield;font-weight:650}
.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#product-actions #add{flex:1;min-width:0;line-height:1.3;padding:10px 12px}
@media(max-width:360px){.product-action-row{gap:8px}.quantity-control button{width:38px}.quantity-control input{width:28px}#product-actions{padding-left:10px;padding-right:10px}#product-actions #add{font-size:13px}}

/* Motion is decorative; progression is exclusively driven by KDS. */
.preparation-hero{--progress-color:#5477ad;display:grid;place-items:center;padding:18px 0 8px;color:var(--progress-color)}
.preparation-hero.accepted{--progress-color:#8061ad}
.preparation-hero.preparing{--progress-color:#b77324}
.preparation-hero.ready{--progress-color:#25845a}
.preparation-art{position:relative;width:108px;height:108px;border-radius:50%;background:color-mix(in srgb,var(--progress-color) 9%,white);display:grid;place-items:center}
.preparation-art:before{content:'';position:absolute;inset:-7px;border:1px solid currentColor;border-radius:50%;opacity:.13}
.preparation-art svg{width:82px;height:82px;overflow:visible}
.status-check{stroke-dasharray:60;stroke-dashoffset:0;animation:status-draw .65s ease-out both}
.preparation-hero.accepted .preparation-art{animation:status-arrive .6s ease-out both}
.preparation-hero.ready .preparation-art{animation:status-arrive .7s ease-out both}
.preparation-hero.preparing .preparation-art:before{animation:preparation-pulse 2.8s ease-in-out infinite}
.preparation-hero.preparing{animation:preparation-color 12s ease-in-out infinite}
.preparation-scene{position:absolute;inset:0;display:grid;place-items:center;opacity:0;animation:preparation-scene 12s infinite}
.wine-scene{animation-delay:0s}.pizza-scene{animation-delay:-8s}.beer-scene{animation-delay:-4s}
.pour-bottle{transform-origin:28px 30px;animation:wine-pour 2s ease-in-out infinite}
.wine-stream{stroke-dasharray:4 5;animation:stream-flow 1s linear infinite}
.wine-fill{fill:currentColor;stroke:none;opacity:.25}
.pizza-steam,.beer-bubble{animation:preparation-steam 2s ease-in-out infinite}
.beer-foam{animation:foam-rise 2s ease-in-out infinite;transform-origin:48px 35px}
#preparation-tracking:has(.preparation-hero.ready){background:#f3fbf6;border-color:#b9dfc9}
#preparation-tracking:has(.preparation-hero.ready) .preparation-steps .complete{color:#216347}
#preparation-tracking:has(.preparation-hero.ready) .preparation-steps .complete:before{background:#25845a}
.preparation-steps [aria-current=step]:before{box-shadow:0 0 0 3px #b7732415}
#preparation-tracking:has(.preparation-hero.preparing) .preparation-steps [aria-current=step]:before{background:#b77324;animation:preparation-bar 2.8s ease-in-out infinite}
@keyframes status-draw{from{stroke-dashoffset:60}to{stroke-dashoffset:0}}
@keyframes status-arrive{0%{transform:scale(.86);opacity:.2}65%{transform:scale(1.04)}100%{transform:scale(1);opacity:1}}
@keyframes preparation-pulse{0%,100%{transform:scale(.98);opacity:.12}50%{transform:scale(1.1);opacity:.3}}
@keyframes preparation-color{0%,100%{color:#9c526e}33%{color:#b77324}66%{color:#aa8b28}}
@keyframes preparation-scene{0%,27%{opacity:1;transform:translateY(0) scale(1)}32%,95%{opacity:0;transform:translateY(5px) scale(.94)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes wine-pour{0%,100%{transform:rotate(-4deg)}50%{transform:rotate(7deg)}}
@keyframes stream-flow{to{stroke-dashoffset:-18}}
@keyframes preparation-steam{0%,100%{transform:translateY(0);opacity:.5}50%{transform:translateY(-4px);opacity:1}}
@keyframes foam-rise{50%{transform:translateY(-2px)}}
@keyframes preparation-bar{50%{opacity:.55}}
@media(prefers-reduced-motion:reduce){.preparation-hero,.preparation-hero *,.preparation-hero *:before,#preparation-tracking .preparation-steps li:before{animation:none!important;transition:none!important}.preparation-scene{display:none}.wine-scene{display:grid;opacity:1}.status-check{stroke-dashoffset:0}}

.preparation-status.sent{background:#edf3fc;color:#405f90}.preparation-status.accepted{background:#f2ecfa;color:#725198}

/* One measured reservation serves Menu, My tab and Profile, including keyboard occlusion. */
body{min-height:100vh;min-height:100svh;display:flex;flex-direction:column}
header{width:100%;margin:0 auto}
main{width:100%;margin:0 auto;flex:1;display:flex;flex-direction:column;min-width:0;padding-bottom:calc(var(--bottom-dock-height,54px + env(safe-area-inset-bottom,0px)) + var(--viewport-occluded-height,0px) + 16px)}
main>section{flex:1}
html{scroll-padding-bottom:calc(var(--bottom-dock-height,54px + env(safe-area-inset-bottom,0px)) + var(--viewport-occluded-height,0px) + 16px)}
.bottom-dock>nav button{min-height:44px;min-width:0;white-space:normal}
.bottom-dock>nav button[aria-current=page]{color:var(--wine);font-weight:700}
.bottom-dock>nav button[aria-current=page] .nav-icon{stroke-width:2}
.viewport-obscured .bottom-dock{padding-bottom:0}
.field input,.field textarea,#search{font-size:16px}
input,textarea,select,button{scroll-margin-block:12px}
#bill{display:flex;flex-direction:column}
.bill-state{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 12px;gap:0}
.bill-state-icon{display:grid;place-items:center;width:48px;height:48px;color:var(--wine);margin-bottom:18px}
.bill-state-icon svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
.bill-state h2{font-size:22px;line-height:1.3;letter-spacing:-.5px;margin:0 0 12px}
.bill-state>p{max-width:340px;font-size:14px;line-height:1.65;color:var(--muted);margin:0}
.bill-state-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:24px}
.bill-state-actions button{min-height:46px}
.bill-state[data-state=loading] .bill-state-actions{display:none}
.bill-state.has-content{flex:none;align-items:flex-start;text-align:left;padding:16px 0;gap:0}
.bill-state.has-content .bill-state-icon{display:none}
.bill-state.has-content h2{font-size:17px}
.bill-state.has-content>p{max-width:none}
.bill-state.has-content .bill-state-actions{margin-top:12px}
.bill-updating{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0}
.bill-history-order{padding:12px 0;border-bottom:1px solid var(--border)}
.bill-history-order h3{font-size:15px;margin:0 0 8px}
.bill-history-order p{margin:6px 0}
#tab-draft .draft-items{display:grid;gap:4px;margin:6px 0 10px}
#tab-draft .draft-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--border)}
#tab-draft .draft-item span{min-width:0;overflow-wrap:anywhere}
#tab-draft .draft-remove{flex:none;width:auto;min-height:36px;margin:0;padding:6px 10px;font-size:12px;color:var(--muted)}
#tab-draft>.primary{width:100%;margin-top:12px}
.bill-item-paid{border-left:4px solid #16815a;background:#f0faf5;border-radius:10px;padding-left:12px;padding-right:12px}
.bill-item-paid .amount{color:#146b4d}
.paid-badge{display:inline-flex;align-items:center;gap:4px;width:max-content;margin-top:6px;padding:4px 9px;border-radius:999px;background:#dcf4e6;color:#115c3f;font-size:12px;font-weight:800}
.portion-item-paid{background:#f0faf5;border-radius:10px;padding-left:8px;padding-right:8px;color:#28624b}
.portion-item .paid-badge{flex:0 0 auto;margin:0}

/* Primary sections are text tabs; subcategories retain their softer buttons. */
#categories{gap:22px;border-bottom:1px solid var(--border);padding:0;margin:6px 0}
#categories button{border:0;border-bottom:3px solid transparent;border-radius:0;min-width:auto;background:transparent;color:var(--muted);padding:12px 2px;font-size:17px}
#categories button.selected{border-bottom-color:var(--accent);color:var(--accent);background:transparent}

/* Optional, decorative artwork keeps the same accessible section label. */
#categories button.has-section-visual{display:flex;align-items:center;gap:9px;text-align:left;flex-shrink:0}
.section-visual{display:inline-flex;align-items:center;justify-content:center;width:24px;height:26px;flex:0 0 24px;font-size:23px;line-height:26px}
.section-visual svg,.section-visual img{width:24px;height:24px;display:block}
.section-visual svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.section-visual img{object-fit:contain}
.promo-block{margin:20px 0;border-radius:20px;overflow:hidden;background:#f1f3ee}
#profile-promos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 20px}
#profile-promos .promo-block{margin:0;border:1px solid var(--border);border-radius:16px;background:#fafbfc}
#profile-promos .promo-copy{padding:14px}
#profile-promos .promo-copy h3{font-size:15px;line-height:1.3}
#profile-promos .promo-copy p{font-size:13px;line-height:1.45;margin-bottom:0}
@media(max-width:640px){#profile-promos{grid-template-columns:1fr}}
.promo-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.promo-slide{min-width:100%;width:100%;scroll-snap-align:start;overflow:hidden}
.promo-slide img{display:block;width:100%;max-height:420px;object-fit:cover;aspect-ratio:16/9}
.promo-copy{padding:20px 22px}.promo-copy h3{font-size:23px;margin:0 0 8px;letter-spacing:-.5px}.promo-copy p{margin:0 0 14px;color:#526054}
.promo-link{display:inline-block;border-radius:24px;background:var(--accent);color:var(--accent-text);font-weight:600;text-decoration:none;padding:12px 20px;min-height:44px}
.promo-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 16px 14px}.promo-controls span{margin-right:auto;font-size:13px;color:var(--muted)}.promo-controls button{font-size:24px;line-height:1;padding:5px;width:44px;background:transparent}
@media(max-width:640px){.product-visual{width:96px!important;min-width:96px!important;height:112px!important;aspect-ratio:auto}.product{grid-template-columns:96px 1fr}.product .description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.promo-copy{padding:18px}.promo-copy h3{font-size:21px}}

.profile-history,.profile-reward{border-top:1px solid var(--border,#e5e7eb);margin-top:20px;padding-top:16px}.profile-reward>strong{font-size:2rem}.profile-order{border-bottom:1px solid var(--border,#e5e7eb);padding:16px 0}.profile-order summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;min-height:44px;align-items:center}.profile-order p{margin:8px 0}

/* Compact products without a real photo; retain the same touch target. */
.product.text-only{grid-template-columns:1fr;min-height:100px}
.product.text-only .product-copy{padding:16px}
#cart-items .left button,#tab-draft .draft-remove{min-height:44px}
fieldset[aria-invalid="true"]{border-color:#a43c34;box-shadow:0 0 0 2px #a43c3422}

.service-time-notice{display:flex;align-items:center;gap:12px;padding:12px 14px;margin:10px 0 14px;border:1px solid var(--border);border-radius:16px;background:#fafbfc;color:var(--wine)}
.service-time-notice>svg{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.service-time-copy{flex:1;min-width:0}.service-time-copy small{display:block;font-size:12px;color:var(--muted);margin-bottom:4px}.service-time-copy time,.service-time-copy strong{font-size:14px;line-height:1.5;font-weight:600;overflow-wrap:anywhere}
.service-time-notice button{min-height:44px;padding:8px 10px;font-size:13px;flex:none}
.service-time-notice.is-selected{gap:9px;padding:6px 8px 6px 10px;margin:6px 0 10px;border-radius:13px;width:fit-content;max-width:100%;background:color-mix(in srgb,var(--wine) 5%,#fff)}
.service-time-notice.is-selected>svg{width:18px;height:18px}
.service-time-notice.is-selected .service-time-copy{flex:0 1 auto}
.service-time-notice.is-selected .service-time-copy small{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.service-time-notice.is-selected .service-time-copy time{display:block;font-size:13px;line-height:1.25;white-space:nowrap;font-weight:600}
.service-time-notice.is-selected button{min-height:44px;padding:6px 10px;font-size:12px}
.service-time-dialog{padding:20px;max-width:480px;max-height:92dvh;overscroll-behavior:contain}
.service-time-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.service-time-heading h2{margin:0;font-size:22px}.service-time-heading button{width:44px;padding:0;font-size:28px}
.service-time-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.service-time-options button{min-height:52px}.service-time-options [aria-pressed=true]{background:var(--accent);color:var(--accent-text);border-color:var(--accent)}
.service-time-actions{position:sticky;bottom:-20px;display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;padding:14px 0 calc(14px + env(safe-area-inset-bottom));background:#fff}.service-time-actions button{flex:1;min-height:48px}.service-time-dialog #service-more-times{width:100%;margin-top:12px}.service-time-dialog [role=alert]{color:#a43c34}
.scheduled-order{border:1px solid var(--border);border-radius:18px;padding:16px;margin:14px 0}.scheduled-order h3{font-size:16px;margin:0 0 8px}.scheduled-order p{margin:8px 0}.scheduled-order button{margin-top:8px;min-height:44px}
.cart-unavailable{color:#a43c34;font-size:13px}
@media(max-width:350px){.service-time-notice{flex-wrap:wrap}.service-time-notice button{margin-left:34px}.service-time-dialog{padding:16px}.service-time-actions{bottom:-16px}}

/* Compact profile cards keep the business's existing color and safe-area layout. */
#profile-introduction{margin:0 0 24px;max-width:540px}
#profile-login{padding:20px;border:1px solid var(--border);border-radius:20px;margin:0 0 24px;max-width:540px;box-shadow:0 4px 20px #1f293705}
#profile-login h2{font-size:20px;margin:0 0 18px;line-height:1.35;overflow-wrap:anywhere}
#profile-login .field{margin:14px 0}
.profile-email-control{display:block;position:relative;margin-top:9px}
.profile-email-control svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;fill:none;stroke:var(--muted);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
#profile-email{font-size:16px;min-height:50px;margin-top:0;padding-left:46px}
#profile-send{width:100%;min-height:50px}
#profile-benefits-heading{font-size:18px;margin:28px 0 18px}
/* Compact customer pages share the same measured bottom-dock reservation. */
header{padding-top:8px;padding-bottom:8px}
.identity-row{min-height:58px}
#brand-logo{height:46px;width:124px}
#profile>h1,#bill>h1{margin:8px 0 12px;font-size:28px;line-height:1.2}
#profile-introduction{margin-bottom:20px;font-size:14px;line-height:1.45}
#profile-message:empty{display:none}
#profile-promos{gap:12px;margin:14px 0 20px;grid-template-columns:1fr;max-width:540px}
#profile-promos .promo-block{border:1px solid var(--customer-border,var(--border));border-radius:18px;background:var(--customer-surface,#fff);box-shadow:0 4px 18px #1f293708}
#profile-promos .promo-profile-card{display:flex;align-items:center;gap:14px;min-height:86px;padding:14px}
#profile-promos .promo-profile-visual,#profile-promos .promo-profile-photo{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border-radius:14px;background:var(--customer-secondary-surface,#f3f4f6);color:var(--customer-secondary-ink,var(--wine));font-size:27px;line-height:1}
#profile-promos .promo-profile-visual[hidden],#profile-promos .promo-profile-photo[hidden]{display:none}
#profile-promos .promo-profile-photo{display:block;object-fit:cover;max-height:none;aspect-ratio:1}
#profile-promos .promo-profile-visual svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#profile-promos .promo-copy{flex:1;min-width:0;padding:0}
#profile-promos .promo-copy h3{font-size:15px;line-height:1.35;margin:0 0 3px}
#profile-promos .promo-copy p{font-size:13px;line-height:1.4;margin:0;overflow-wrap:anywhere}
#profile-promos .promo-controls{padding:0 12px 8px}
.bill-state:not(.has-content){flex:none;min-height:300px;padding:32px 12px}
.bill-state-icon{margin-bottom:12px}
.bill-state h2{font-size:21px;margin-bottom:10px}
.bill-state>p{font-size:14px;line-height:1.5}
.bill-state-actions{margin-top:20px}
@media(max-width:640px){
 header{padding:6px 16px 8px}
 .identity-row{min-height:56px;gap:8px}
 #brand-logo{width:112px;height:44px}
 #brand-name{font-size:19px}
 .search-wrap{margin-bottom:8px}
 #categories{gap:18px;margin-top:2px}
 #categories button{font-size:16px;padding:10px 2px;min-height:44px}
 #subsections{margin-top:2px}
 .product-visual{width:80px!important;min-width:80px!important;height:96px!important}
 .product{grid-template-columns:80px 1fr;min-height:116px}
 .product-copy{padding:12px}
 .product-sections{gap:22px}
}

.profile-benefits{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:540px}
.profile-benefits li{display:flex;align-items:center;gap:14px;min-width:0;padding:16px;border:1px solid var(--border);border-radius:18px;background:#fff;box-shadow:0 3px 16px #1f293703}
.profile-benefit-icon{display:flex;align-items:center;justify-content:center;flex:none;width:48px;height:48px;border-radius:14px;background:#f5f6f8;background:color-mix(in srgb,var(--wine) 9%,#fff)}
.profile-benefit-icon svg{width:25px;height:25px;fill:none;stroke:var(--wine);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.profile-benefit-copy{min-width:0}
.profile-benefits h3{font-size:15px;line-height:1.4;margin:0 0 4px;overflow-wrap:anywhere}
.profile-benefits p{font-size:14px;line-height:1.5;color:var(--muted);margin:0;overflow-wrap:anywhere}
@media(max-width:350px){#profile-login{padding:16px}#profile-login h2{font-size:18px}.profile-benefits li{padding:14px;gap:12px}}
@media(max-width:350px){.service-time-notice.is-selected{gap:6px;flex-wrap:nowrap}.service-time-notice.is-selected button{margin-left:0}.service-time-notice.is-selected .service-time-copy time{font-size:12px}#profile-promos .promo-profile-card{gap:10px;padding:12px}#profile-promos .promo-profile-visual,#profile-promos .promo-profile-photo{width:44px;height:44px}}
/* Top photo banners keep their editable copy inside the image. Other cards retain their layout. */
#menu-promos-top{flex:none}
#menu-entry{display:flow-root;flex:none}
#menu-promos-top .promo-hero-block{margin:0 0 16px;background:#25312b}
.promo-slide.promo-hero{position:relative;isolation:isolate;min-height:clamp(240px,42vw,360px);display:flex;align-items:center;background:#25312b}
.promo-slide.promo-hero>img{position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto;object-fit:cover;z-index:-2}
.promo-hero.promo-hero-copy::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.82),rgba(0,0,0,.7) 70%,rgba(0,0,0,.5));z-index:-1;pointer-events:none}
.promo-hero .promo-copy{position:relative;width:100%;max-width:78%;padding:clamp(24px,4vw,44px);color:#fff;overflow-wrap:anywhere}
.promo-eyebrow{display:block;font-size:11px;font-weight:500;letter-spacing:3px;text-transform:uppercase;margin-bottom:12px;color:#fff}
.promo-hero .promo-copy h3{font:400 clamp(28px,5.6vw,46px)/1.12 Georgia,serif;letter-spacing:-.5px;color:#fff;margin:0 0 12px;text-wrap:balance}
.promo-hero .promo-copy p{font-size:16px;line-height:1.55;color:#fff;margin:0}
.promo-hero .promo-copy .promo-link{margin-top:18px}
.promo-hero-block .promo-controls{background:#fff;padding-top:10px}
@media(max-width:640px){
 #menu-promos-top .promo-hero-block{margin-inline:-16px;border-radius:0;margin-bottom:18px}
 .promo-hero .promo-copy{max-width:88%;padding:28px 24px}
 .promo-hero .promo-copy p{font-size:15px}
 .promo-hero .promo-copy h3{font-size:32px}
 /* The photo continues behind the full-width rounded entry panel. */
 body.has-menu-hero{--menu-hero-overlap:28px}
 body.has-menu-hero #menu-promos-top>.promo-hero-block:last-child{margin-bottom:0}
 body.has-menu-hero #menu-promos-top>.promo-hero-block:last-child .promo-hero{padding-bottom:var(--menu-hero-overlap)}
 body.has-menu-hero #menu-entry{position:relative;z-index:2;margin-top:calc(-1 * var(--menu-hero-overlap));margin-inline:-16px;padding:12px 16px 0;border-radius:var(--menu-hero-overlap) var(--menu-hero-overlap) 0 0;background:#fff}
 body.has-menu-hero #menu-search{margin-top:0;background:#f5f6f7;box-shadow:none;border-radius:24px}
}
