/* QR-menu ordering page: Barkat POS [barkat_order] restyled as a phone-first menu.
   One column of dishes (text left, photo right with an ADD button), sticky search and category chips,
   a bottom "View order" bar that opens the order as a sheet. On a wide screen it becomes a menu grid with the order beside it. */
body.bkt-qrmenu{margin:0;background:var(--bk-bg);-webkit-tap-highlight-color:transparent}
body.bkt-qrmenu .bkq-main{min-height:100vh;padding-bottom:calc(88px + env(safe-area-inset-bottom))}
body.bkt-qrmenu .bko{--bko-bg:transparent;--bko-card:var(--bk-surface);--bko-panel:var(--bk-surface);--bko-line:var(--bk-border);--bko-text:var(--bk-text);--bko-muted:var(--bk-muted);--bko-accent:var(--bk-accent);max-width:1200px;margin:0 auto;font-family:inherit}
body.bkt-qrmenu .bko>*{max-width:none}
/* top: logo, name, account, and a full-width search */
body.bkt-qrmenu .bko__top{display:grid;grid-template-columns:1fr auto;gap:10px 12px;align-items:center;padding:14px 16px 10px;border:0}
body.bkt-qrmenu .bko__brand{font-size:1.15rem;gap:10px}
body.bkt-qrmenu .bko__brand img{width:42px;height:42px;border-radius:12px}
body.bkt-qrmenu .bko__right{display:flex;gap:8px;align-items:center;font-size:.85rem}
body.bkt-qrmenu .bko__acct{padding:7px 12px;border:1px solid var(--bko-line);border-radius:999px;color:var(--bko-text);text-decoration:none;font-weight:600;white-space:nowrap}
body.bkt-qrmenu .bko__tools{grid-column:1/-1;order:3}
body.bkt-qrmenu .bko__search{width:100%;min-width:0;min-height:48px;border-radius:14px;padding:0 16px 0 42px;background:var(--bko-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='m13 13 4 4'/%3E%3C/svg%3E") 14px 50%/18px no-repeat;border:1px solid var(--bko-line);box-shadow:0 2px 8px rgba(0,0,0,.08)}
body.bkt-qrmenu .bko__grid{display:none}
/* category chips */
body.bkt-qrmenu .bko__tabs{top:0;padding:10px 16px;gap:8px;background:color-mix(in srgb,var(--bk-bg) 92%,transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:0;scrollbar-width:none;z-index:20}
body.bkt-qrmenu .bko__tabs::-webkit-scrollbar{display:none}
body.bkt-qrmenu .bko__tab{padding:9px 16px;font-size:.92rem;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.08)}
body.bkt-qrmenu .bko__tab span{display:none}
body.bkt-qrmenu .bko__tab.on{background:var(--bko-accent);color:var(--bk-bg);border-color:var(--bko-accent)}
/* the menu */
body.bkt-qrmenu .bko__layout{display:block;padding:6px 16px 0}
body.bkt-qrmenu .bko__group{scroll-margin-top:64px;margin:0 0 18px}
body.bkt-qrmenu .bko__gh{font-size:1.3rem;margin:14px 0 10px;color:var(--bko-text)}
body.bkt-qrmenu .bko__gh::after{display:none}
body.bkt-qrmenu .bko__cards{display:grid;grid-template-columns:1fr;gap:12px}
body.bkt-qrmenu .bko__card{display:grid;grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:"body img";align-items:stretch;border-radius:18px;padding:12px;gap:12px;position:relative}
body.bkt-qrmenu .bko__img{grid-area:img;aspect-ratio:1;border-radius:14px;align-self:start;position:relative}
body.bkt-qrmenu .bko__body{grid-area:body;padding:0;gap:6px;min-width:0}
body.bkt-qrmenu .bko__row{flex-direction:column;gap:2px}
body.bkt-qrmenu .bko__row h3{font-size:1.02rem}
body.bkt-qrmenu .bko__price{color:var(--bko-accent);font-size:1.02rem}
body.bkt-qrmenu .bko__body p{font-size:.84rem;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;flex:0}
/* the ADD button sits on the photo's bottom edge */
body.bkt-qrmenu .bko__btn{position:absolute!important;right:20px!important;left:auto!important;top:calc(12px + 112px - 18px)!important;bottom:auto!important;width:96px;min-height:36px;line-height:34px;padding:0;border-radius:10px;background:var(--bk-surface);border:1.5px solid var(--bko-accent);color:var(--bko-accent);font-weight:800;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase;box-shadow:0 4px 10px rgba(0,0,0,.18);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body.bkt-qrmenu .bko__btn:hover,body.bkt-qrmenu .bko__btn:focus-visible,body.bkt-qrmenu .bko__btn:active{background:var(--bko-accent);color:var(--bk-bg)}
body.bkt-qrmenu .bko__card{min-height:calc(112px + 36px)}
body.bkt-qrmenu .bko__btn.is-off{font-size:.68rem;color:var(--bko-muted);border-color:var(--bko-line)}
/* the order: a sheet on phones, a side panel on wide screens */
body.bkt-qrmenu .bko__panel{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:9100;max-height:82vh;border-radius:22px 22px 0 0;border:0;padding:18px 16px calc(18px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .28s cubic-bezier(.2,.8,.2,1);box-shadow:0 -12px 40px rgba(0,0,0,.35);overflow:auto;background:var(--bk-surface)}
body.bkt-qrmenu .bko__panel.is-open{transform:none}
body.bkt-qrmenu .bko__panel::before{content:"";display:block;width:44px;height:4px;border-radius:2px;background:var(--bko-line);margin:-6px auto 12px}
body.bkt-qrmenu .bkq-scrim{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:9090;opacity:0;pointer-events:none;transition:opacity .2s}
body.bkt-qrmenu .bkq-scrim.on{opacity:1;pointer-events:auto}
body.bkt-qrmenu .bkq-bar{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:9000;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:0 18px;border:0;border-radius:18px;background:var(--bk-accent);color:var(--bk-bg);font:inherit;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.35);transform:translateY(140%);transition:transform .25s ease;cursor:pointer;max-width:760px;margin:0 auto}
body.bkt-qrmenu .bkq-bar.on{transform:none}
body.bkt-qrmenu .bkq-bar small{font-weight:600;opacity:.85;display:block;font-size:.76rem}
body.bkt-qrmenu .bkq-bar b{font-size:1.05rem}
body.bkt-qrmenu .bkq-bar .go{display:inline-flex;align-items:center;gap:6px}
/* Swatches: the order bar replaces the floating cart; the Get offers button rides above it */
body.bkt-qrmenu .bks-fc__btn{display:none!important}
body.bkt-qrmenu #bks-dock{bottom:84px}
body.bkt-qrmenu .bko__toast{bottom:90px}
/* wide screens: menu grid with the order beside it */
@media(min-width:900px){
 body.bkt-qrmenu .bko__top{grid-template-columns:auto minmax(260px,520px) auto;padding:18px 24px}
 body.bkt-qrmenu .bko__tools{grid-column:auto;order:0}
 body.bkt-qrmenu .bko__tabs{padding:10px 24px}
 body.bkt-qrmenu .bko__layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:24px;padding:6px 24px 0}
 body.bkt-qrmenu .bko__cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.bkt-qrmenu .bko__panel{position:sticky;top:70px;transform:none;left:auto;right:auto;bottom:auto;max-height:calc(100vh - 90px);border-radius:20px;border:1px solid var(--bko-line);box-shadow:none;padding:18px}
 body.bkt-qrmenu .bko__panel::before{display:none}
 body.bkt-qrmenu .bkq-bar,body.bkt-qrmenu .bkq-scrim{display:none}
 body.bkt-qrmenu .bkq-main{padding-bottom:40px}
 body.bkt-qrmenu #bks-dock{bottom:16px}
}
@media(min-width:1280px){body.bkt-qrmenu .bko__cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* sky behind the menu: glass cards */
html.bk-scene body.bkt-qrmenu .bko__card,html.bk-scene body.bkt-qrmenu .bko__panel,html.bk-scene body.bkt-qrmenu .bko__search{background-color:rgba(10,14,30,.5);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.bk-scene body.bkt-qrmenu .bko__btn{background:rgba(10,14,30,.6)}
@media(prefers-reduced-motion:reduce){body.bkt-qrmenu .bko__panel,body.bkt-qrmenu .bkq-bar{transition:none}}

/* v1.7.0 polish: short ADD label, readable active chip */
body.bkt-qrmenu .bko__chip.is-on,body.bkt-qrmenu .bko__chip.is-active,body.bkt-qrmenu .bko__chips .is-on,body.bkt-qrmenu .bko__chips [aria-current="true"],body.bkt-qrmenu .bko__chips .active{color:#1a1206!important}
body.bkt-qrmenu .bko__tab.is-on,body.bkt-qrmenu .bko__tab.is-active,body.bkt-qrmenu .bko__tab[aria-selected="true"],body.bkt-qrmenu .bko__tab[aria-current]{color:#1a1206!important}
body.bkt-qrmenu .bko__tab.on{color:#1a1206!important;-webkit-text-fill-color:#1a1206!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;text-shadow:none!important}
body.bkq-sheet #bks-dock,body.bkq-sheet #bk-loc,body.bkq-sheet #bk-wx{display:none!important}

/* v1.7.1 — match the RestoGenius ordering page: vertical cards (photo on top), counts on tabs, outlined full-width button */
body.bkt-qrmenu .bko__tab span{display:inline-block;margin-left:6px;padding:0 7px;border-radius:999px;background:rgba(127,127,127,.18);font-size:.72rem;font-weight:700}
body.bkt-qrmenu .bko__cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.bkt-qrmenu .bko__card{display:flex!important;flex-direction:column;padding:0!important;gap:0;overflow:hidden;border-radius:16px;min-height:0!important}
body.bkt-qrmenu .bko__img{order:-1;width:100%;aspect-ratio:2/1;border-radius:0;align-self:stretch}
body.bkt-qrmenu .bko__img img{width:100%;height:100%;object-fit:cover}
body.bkt-qrmenu .bko__body{padding:10px 12px 12px;gap:6px;flex:1;display:flex;flex-direction:column}
body.bkt-qrmenu .bko__row{flex-direction:row;justify-content:space-between;align-items:baseline;gap:8px}
body.bkt-qrmenu .bko__row h3{font-size:.92rem;font-weight:600}
body.bkt-qrmenu .bko__price{font-size:.9rem;font-weight:700;color:var(--bko-text);white-space:nowrap}
body.bkt-qrmenu .bko__body p{font-size:.76rem;color:var(--bko-muted);margin:0}
body.bkt-qrmenu .bko__btn{position:static!important;width:100%;margin-top:auto;min-height:38px;line-height:36px;border-radius:10px;background:transparent;font-size:.82rem!important;letter-spacing:0;text-transform:none;box-shadow:none;border-width:1px}
body.bkt-qrmenu .bko__btn:not(.is-off)::after{content:none}
body.bkt-qrmenu .bko__btn.is-off{font-size:.78rem!important}
@media(min-width:900px){
 body.bkt-qrmenu .bko__layout{grid-template-columns:minmax(0,1fr) 340px}
 body.bkt-qrmenu .bko__cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.bkt-qrmenu .bko{max-width:1500px}
}
@media(min-width:1300px){body.bkt-qrmenu .bko__cards{grid-template-columns:repeat(4,minmax(0,1fr))}}
body.bkt-qrmenu .bko__btn:hover,body.bkt-qrmenu .bko__btn:focus-visible,body.bkt-qrmenu .bko__btn:active{background:var(--bko-accent)!important;color:#1a1206!important}

/* v1.7.2 light "RestoGenius" look (Customizer: QR menu colours) + header Pickup/Delivery switch */
body.bkq-light{--bk-bg:#f6f3ee;--bk-surface:#fff;--bk-text:#1c1f2a;--bk-muted:#8a8f9c;--bk-border:#e7e4de;--bk-accent:var(--bkq-accent,#0d47a1)}
body.bkq-light.bkt-qrmenu{background:#f6f3ee;color:#1c1f2a}
body.bkq-light .bko{--bko-accent:var(--bkq-accent,#0d47a1)}
body.bkq-light .bko__top{background:#fff;border-bottom:1px solid #eceae6}
body.bkq-light .bko__tabs{background:rgba(255,255,255,.92)}
body.bkq-light .bko__tab{background:#fff;color:#4b5060;border:1px solid #e7e4de;box-shadow:none}
body.bkq-light .bko__tab.on{background:var(--bkq-accent,#0d47a1)!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:transparent}
body.bkq-light .bko__tab.on span{background:rgba(255,255,255,.25)}
body.bkq-light .bko__card,body.bkq-light .bko__panel{background:#fff;border:1px solid #efece7;box-shadow:0 1px 6px rgba(20,20,40,.05)}
body.bkq-light .bko__search{background-color:#f4f2ee;border:1px solid #ece9e3;color:#1c1f2a}
body.bkq-light .bko__btn{color:var(--bkq-accent,#0d47a1);border-color:var(--bkq-accent,#0d47a1);background:#fff}
body.bkq-light .bko__btn:hover,body.bkq-light .bko__btn:focus-visible,body.bkq-light .bko__btn:active{background:var(--bkq-accent,#0d47a1)!important;color:#fff!important}
body.bkq-light .bko__acct{background:var(--bkq-accent,#0d47a1);color:#fff;border-color:transparent}
body.bkq-light .bko__checkout{background:var(--bkq-accent,#0d47a1);color:#fff}
body.bkq-light .bkq-bar{background:var(--bkq-accent,#0d47a1);color:#fff}
body.bkq-light .bko__brand strong{color:var(--bkq-accent,#0d47a1)}
html.bk-scene body.bkq-light .bko__card,html.bk-scene body.bkq-light .bko__panel,html.bk-scene body.bkq-light .bko__search{background-color:rgba(255,255,255,.82)}
html.bk-scene body.bkq-light .bko__btn{background:#fff}
.bkq-seg{display:none}
@media(min-width:900px){
 body.bkt-qrmenu .bkq-seg{display:inline-flex;grid-column:2;justify-self:center;padding:3px;border:1px solid var(--bko-line);border-radius:12px;background:var(--bk-surface)}
 .bkq-seg button{border:0;background:transparent;font:inherit;font-weight:600;font-size:.85rem;padding:8px 22px;border-radius:9px;color:var(--bko-muted);cursor:pointer}
 .bkq-seg button.on{background:var(--bkq-accent,var(--bk-accent));color:#fff}
 body.bkt-qrmenu .bko__top{grid-template-columns:auto 1fr minmax(200px,300px) auto}
 body.bkt-qrmenu .bkq-seg{grid-column:2;grid-row:1}
 body.bkt-qrmenu .bko__top .bko__tools{grid-column:3;grid-row:1}
 body.bkt-qrmenu .bko__top .bko__right{grid-column:4;grid-row:1}
}
