/* ============================================================
   GRANDEUR SUPERSTORES — shared stylesheet
   Loaded by index.php, admin.php and staff.php AFTER their own
   styles, so the rules here have the final say on every screen.
     1. Every page: fits the screen, stays still, no zoom jumps
     2. Shop (index.php): header, departments, products, popups
     3. WhatsApp buying: buttons, "how to buy", "can't find it?"
     4. Phone bottom bar, account and chat widgets
     5. Admin and staff panels
   Storefront rules start with body.gk-store, panels with body.gk-panel.
   ============================================================ */

:root{
  --gk-wa:#0f7f42;          /* readable green for WhatsApp buttons */
  --gk-wa-dark:#0b6333;
  --gk-bar:64px;
  --gk-head:76px;           /* real header height is set by the page */
}

/* ============ 1. EVERY PAGE ============ */
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; overflow-x:hidden; touch-action:pan-x pan-y; }
body{ overflow-x:hidden; overscroll-behavior-x:none; max-width:100%; overflow-wrap:break-word; }
@supports (overflow:clip){ html, body{ overflow-x:clip; } }
html.gk-lock, html.gk-lock body{ overflow:hidden; }
img, video, canvas, iframe, table{ max-width:100%; }
button, a, label, select, input{ -webkit-tap-highlight-color:rgba(214,18,126,.18); }
@media (pointer:coarse), (max-width:860px){
  html body #sortSelect, html body #productSearch, html body #orderCodeInput{ font-size:16px; }
  /* Under 16px, iPhones zoom the whole page when a box is tapped. */
  html body input:not([type=checkbox]):not([type=radio]), html body select, html body textarea{ font-size:16px; }
}

/* ============ 2. SHOP ============ */
body.gk-store section{ scroll-margin-top:var(--gk-head); }
body.gk-store .modal-box, body.gk-store #cartBody, .gk-sheet, #gkAiMsgs{ overscroll-behavior:contain; }
body.gk-store :is(.prod-name, .cart-item-name, .review-card, .about-text, .plan-card, .visit-row div, .sec-head){ overflow-wrap:anywhere; min-width:0; }
body.gk-store #reviewGrid{ grid-template-columns:repeat(auto-fill, minmax(min(260px,100%), 1fr)); }
body.gk-store .plan-grid{ grid-template-columns:repeat(auto-fit, minmax(min(220px,100%), 1fr)); }

/* basket drawer: fully off screen when closed (it used to peek in on screens wider than 420px) */
body.gk-store #cartDrawer{ right:0; width:min(440px,100%); max-width:100%; transform:translateX(105%); visibility:hidden; transition:transform .4s var(--ease), visibility 0s .4s; }
body.gk-store #cartDrawer.open{ transform:none; visibility:visible; transition:transform .4s var(--ease); }
@media (max-width:560px){ body.gk-store #cartDrawer{ width:100%; } }

/* departments: even tiles, each with its own WhatsApp button */
body.gk-store .dept-grid{ grid-template-columns:repeat(3, minmax(0,1fr)); }
body.gk-store .dept-card, body.gk-store .dept-card:nth-child(3n+1){ grid-row:auto; aspect-ratio:1/1; min-width:0; }
.dept-open{ position:absolute; inset:0; display:block; color:inherit; }
.dept-open::after{ content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(21,14,31,.92) 0%,rgba(21,14,31,.45) 45%,rgba(21,14,31,.05) 75%); }
body.gk-store .dept-card::after{ content:none; }
body.gk-store .dept-info{ padding:0 20px 74px; pointer-events:none; }
.dept-wa{ position:absolute; left:20px; bottom:18px; z-index:3; max-width:calc(100% - 40px); }

body.gk-store .prod-card{ display:flex; flex-direction:column; min-width:0; contain-intrinsic-size:auto 380px; }
body.gk-store .prod-body{ display:flex; flex-direction:column; flex:1; }
body.gk-store .prod-price-row{ flex-wrap:wrap; margin-top:auto; }
body.gk-store .prod-price{ min-width:0; overflow-wrap:anywhere; }
body.gk-store .prod-price .original{ display:inline-block; }
.gk-ask-price{ color:var(--pink-600); font-weight:800; font-size:.9em; }
body.gk-store .prod-add{ width:42px; height:42px; font-size:20px; margin-left:auto; }
body.gk-store .prod-qty-ctrl{ margin-left:auto; }
body.gk-store .prod-qty-ctrl button{ width:32px; height:32px; }
body.gk-store .prod-wish{ width:38px; height:38px; }
body.gk-store .qty-ctrl button{ width:32px; height:32px; }
body.gk-store .qty-ctrl button::before{ inset:-6px; }
body.gk-store .qv-qty button{ width:44px; height:44px; }
body.gk-store #viewMoreBtn{ min-height:48px; }
body.gk-store .hero-dot{ position:relative; }
body.gk-store .hero-dot::before{ content:""; position:absolute; inset:-14px -4px; }
body.gk-store .modal-box h3{ padding-right:44px; }
body.gk-store .field select{ width:100%; min-height:46px; }
body.gk-store .cart-item > div{ min-width:0; }
body.gk-store .cart-item img{ flex-shrink:0; }
body.gk-store .cart-remove{ min-height:40px; display:inline-flex; align-items:center; font-size:12.5px; cursor:pointer; }

/* ============ 3. BUYING ON WHATSAPP ============ */
.gk-wa{
  display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:10px 18px;
  border:none; border-radius:100px; background:var(--gk-wa); color:#fff; font-family:inherit; font-weight:800;
  font-size:14px; line-height:1.2; text-align:center; cursor:pointer; text-decoration:none;
}
.gk-wa:hover, .gk-wa:focus-visible{ background:var(--gk-wa-dark); color:#fff; }
.gk-wa svg{ width:18px; height:18px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.gk-wa.gk-block{ display:flex; width:100%; }
.gk-wa.gk-card-wa{ margin-top:10px; width:100%; padding:9px 8px; font-size:13px; gap:6px; }
.gk-wa.gk-small{ padding:8px 13px; font-size:12.5px; gap:6px; min-height:40px; }
body.gk-store .nav-cta.gk-wa{ background:var(--gk-wa); color:#fff; }
.gk-outline{
  display:flex; align-items:center; justify-content:center; width:100%; min-height:46px; margin-top:10px; border-radius:100px;
  border:1.5px solid var(--royal-950); color:var(--royal-950); background:transparent; font-weight:800; font-size:14px;
}
.gk-outline:disabled{ opacity:.45; cursor:default; }
.gk-note{ font-size:12.5px; color:#6b5b7b; line-height:1.5; margin-top:8px; text-align:center; }

/* three steps */
body.gk-store .gk-how{ padding-top:40px; padding-bottom:0; }
.gk-how h2{ font-size:clamp(22px,3vw,28px); color:var(--royal-950); margin-bottom:16px; text-align:center; }
.gk-how ol{ list-style:none; display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; counter-reset:gkstep; }
.gk-how li{ counter-increment:gkstep; display:flex; gap:12px; align-items:flex-start; background:var(--paper); border:1px solid var(--line); border-radius:18px; padding:16px; }
.gk-how li::before{ content:counter(gkstep); flex-shrink:0; width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--royal-950); color:#fff; font-weight:800; }
.gk-how b{ display:block; font-size:15px; color:var(--royal-950); margin-bottom:2px; }
.gk-how span{ font-size:13.5px; color:#5B4A6B; line-height:1.5; }

/* "Didn't see what you're looking for?" */
.gk-ask{ background:linear-gradient(135deg,var(--royal-950),var(--royal-700)); color:#fff; border-radius:22px; padding:24px; text-align:left; }
.gk-ask h3{ font-family:'Fraunces',serif; font-size:clamp(20px,2.6vw,26px); line-height:1.2; margin-bottom:6px; color:#fff; }
.gk-ask p{ font-size:14px; color:rgba(255,255,255,.82); line-height:1.55; margin-bottom:14px; }
.gk-ask form{ display:flex; gap:10px; flex-wrap:wrap; }
.gk-ask input{ flex:1 1 220px; min-width:0; min-height:48px; padding:12px 18px; border-radius:100px; border:2px solid transparent; font-size:16px; background:#fff; color:var(--ink); }
.gk-ask input:focus{ outline:none; border-color:var(--pink-400); }
.gk-ask .gk-wa{ flex:0 0 auto; min-height:48px; background:#128a49; }
body.gk-store .gk-ask-top{ padding-top:20px; padding-bottom:0; }
#shopAsk{ margin-top:30px; }
#productGrid .gk-ask{ grid-column:1/-1; }

/* ============ 4. PHONE BAR AND WIDGETS ============ */
.gk-bar{ display:none; }

/* account button: grows to fit the name instead of squashing it */
body.gk-store #gkAccountBadge.gk-known{ width:auto; min-width:42px; padding:0 12px; border-radius:100px; gap:6px; }

#gkIdModal, #gkAccountPanel{ top:var(--gk-vtop,0px) !important; bottom:auto !important; height:var(--gk-vh,100%); }
html .gk-sheet{ max-height:calc(var(--gk-vh,100vh) - 16px); padding-bottom:calc(26px + env(safe-area-inset-bottom)); overflow-wrap:anywhere; }
.gk-order-top{ gap:8px; flex-wrap:wrap; }
.gk-skip{ display:block; width:100%; min-height:44px; margin-top:6px; background:none; border:none; color:#6b5b7b; font-weight:700; font-size:13.5px; cursor:pointer; text-decoration:underline; }
div.gk-sheet-signout{ min-height:44px; display:flex; align-items:center; justify-content:center; }

html #gkAiPanel{ height:min(540px, calc(100vh - 180px)); height:min(540px, calc(var(--gk-vh,100vh) - 180px)); visibility:hidden; transition:transform .28s cubic-bezier(.16,.84,.44,1), opacity .22s, visibility 0s .28s; }
html #gkAiPanel.gk-open{ visibility:visible; transition:transform .28s cubic-bezier(.16,.84,.44,1), opacity .22s; }
#gkAiHead, #gkAiInputBar{ flex-shrink:0; }
#gkAiMsgs{ min-height:0; }
.gk-ai-msg{ overflow-wrap:anywhere; flex-shrink:0; }
#gkAiInput{ min-width:0; min-height:44px; }
html #gkAiSend{ width:44px; height:44px; }
.gk-ai-products{ max-width:100% !important; width:100%; }
.gk-ai-prod-card{ flex-wrap:wrap; }
html .gk-ai-prod-add{ min-height:36px; padding:8px 14px; font-size:12px; }
.gk-ai-prod-actions{ display:flex; gap:8px; width:100%; }
.gk-ai-prod-actions > *{ flex:1; }
.gk-ai-msg.bot + .gk-ai-ask, .gk-ai-ask{ align-self:flex-start; flex-shrink:0; }

/* ============ SHOP — tablets and phones ============ */
@media (max-width:1024px){
  body.gk-store .dept-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
/* laptop / landscape-tablet header: everything must fit on one line */
@media (min-width:861px) and (max-width:1279px){
  body.gk-store .nav{ gap:14px; padding-left:20px; padding-right:20px; }
  body.gk-store .nav-links{ gap:14px; font-size:13px; }
  body.gk-store .nav-search{ min-width:0; }
  body.gk-store .nav-search input{ min-width:0; }
}
@media (min-width:861px) and (max-width:1000px){
  body.gk-store #staffLoginBtn{ display:none; } /* staff and admin links are also in the footer */
}
@media (min-width:861px) and (max-width:1439px){
  /* the green WhatsApp button becomes a round icon so the search box keeps its room */
  body.gk-store .nav-cta.gk-wa{ width:42px; height:42px; min-height:42px; padding:0; gap:0; font-size:0; justify-content:center; flex-shrink:0; }
  body.gk-store .nav-cta.gk-wa svg{ width:21px; height:21px; }
}
@media (min-width:861px) and (max-width:1180px){
  body.gk-store .brand span{ display:none; }
}
@media (min-width:1280px){
  body.gk-store .nav{ max-width:1360px; gap:16px; }
  body.gk-store .nav-links{ gap:17px; }
}
@media (max-width:860px){
  body.gk-store{ padding-bottom:calc(var(--gk-bar) + env(safe-area-inset-bottom)); }

  /* header: name + menu + account, then a full-width search box */
  body.gk-store .nav{ flex-wrap:wrap; row-gap:8px; }
  body.gk-store .brand{ flex:1 1 0; min-width:0; min-height:44px; }
  body.gk-store .brand span{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  body.gk-store .nav-search{ display:flex; order:5; flex:1 0 100%; max-width:none; min-height:44px; padding:6px 16px; }
  body.gk-store .nav-toggle{ width:44px; height:44px; }
  body.gk-store .nav-right{ margin-left:0; }
  body.gk-store #cartBtn, body.gk-store .nav-cta, body.gk-store #staffLoginBtn{ display:none; }
  body.gk-store .nav-links{ max-height:calc(100vh - 140px); max-height:calc(100dvh - 140px); overflow-y:auto; }
  body.gk-store .hero{ padding-top:calc(var(--gk-head) + 28px); }

  /* department buttons scroll sideways inside their own row (this row used to stretch the whole page) */
  body.gk-store .shop-toolbar{ flex-wrap:nowrap; }
  body.gk-store .shop-toolbar > *{ min-width:0; max-width:100%; }
  body.gk-store #categoryPills{ width:100%; overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; }
  body.gk-store #categoryPills::-webkit-scrollbar{ display:none; }
  body.gk-store .pill{ flex:0 0 auto; min-height:42px; }
  body.gk-store #sortSelect{ min-height:44px; }

  /* bottom bar: five big, labelled buttons */
  .gk-bar{
    display:flex; position:fixed; left:0; right:0; bottom:0; z-index:380; background:var(--paper);
    border-top:1px solid var(--line); box-shadow:0 -8px 24px -14px rgba(51,14,82,.45);
    padding:0 max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left));
  }
  .gk-bar > *{
    position:relative; flex:1 1 0; min-width:0; height:var(--gk-bar); display:flex; flex-direction:column; align-items:center;
    justify-content:center; gap:3px; background:none; border:none; padding:0 2px; color:var(--royal-950);
    font-family:inherit; font-size:11px; font-weight:700; line-height:1.1; cursor:pointer;
  }
  .gk-bar svg{ width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
  .gk-bar .gk-bar-wa{ color:var(--gk-wa); }
  .gk-bar .gk-bar-wa i{ display:flex; align-items:center; justify-content:center; width:46px; height:46px; margin-top:-24px; border-radius:50%; background:var(--gk-wa); color:#fff; border:3px solid var(--paper); box-sizing:content-box; box-shadow:0 8px 18px -6px rgba(15,127,66,.7); }
  .gk-bar .cart-badge{ top:6px; right:calc(50% - 22px); }

  html #gkAiFab{ display:none; }
  html #gkAiPanel{ right:12px; left:auto; bottom:calc(var(--gk-bar) + 10px + env(safe-area-inset-bottom)); }
  body.gk-store #installBanner{ bottom:calc(var(--gk-bar) + 10px + env(safe-area-inset-bottom)); }
}
@media (max-width:640px){
  body.gk-store .wrap{ padding-left:max(16px, env(safe-area-inset-left)); padding-right:max(16px, env(safe-area-inset-right)); }
  body.gk-store .dept-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  body.gk-store .dept-card, body.gk-store .dept-card:nth-child(3n+1){ aspect-ratio:4/5; border-radius:16px; }
  body.gk-store .dept-info{ padding:0 10px 56px; }
  body.gk-store .dept-info h3{ font-size:16px; line-height:1.15; margin:0; overflow-wrap:anywhere; }
  body.gk-store .dept-info p, body.gk-store .dept-arrow{ display:none; }
  .dept-wa{ left:8px; right:8px; bottom:8px; max-width:none; }
  .dept-wa.gk-wa.gk-small{ padding:8px 4px; font-size:12px; gap:5px; }
  body.gk-store #productGrid{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  body.gk-store .prod-body{ padding:10px; }
  body.gk-store .prod-badges{ right:52px; align-items:flex-start; }
  .gk-wa.gk-card-wa{ font-size:12px; padding:8px 4px; }
  .gk-wa.gk-card-wa svg{ width:15px; height:15px; }
  .gk-how ol{ grid-template-columns:1fr; gap:8px; }
  .gk-how li{ padding:12px; }
  .gk-ask{ padding:18px; border-radius:18px; }
  .gk-ask input{ flex-basis:100%; }
  .gk-ask .gk-wa{ width:100%; }
  body.gk-store .flash{ padding:16px 0 !important; min-height:0 !important; }
  body.gk-store .flash .flash-inner{ flex-direction:column !important; align-items:flex-start !important; gap:12px !important; padding-top:14px !important; padding-bottom:14px !important; }
  body.gk-store .flash .flash-inner[style*="backdrop-filter"]{ width:calc(100% - 24px) !important; padding-left:16px !important; padding-right:16px !important; }
  body.gk-store .flash-text{ font-size:16px !important; }
  body.gk-store .flash-timer{ gap:8px; padding:0 !important; background:none !important; flex-wrap:wrap; }
  body.gk-store .flash-timer b{ font-size:18px !important; }

  /* popups slide up from the bottom and stay above the keyboard */
  body.gk-store .modal{ top:var(--gk-vtop,0px); bottom:auto; height:var(--gk-vh,100%); padding:0; align-items:flex-end; }
  body.gk-store .modal-box{ max-width:none; max-height:calc(var(--gk-vh,100vh) - 16px); border-radius:20px 20px 0 0; padding-bottom:calc(20px + env(safe-area-inset-bottom)); }
  body.gk-store .qv-gallery-main{ aspect-ratio:4/3; }
  body.gk-store .qv-gallery-main img{ object-fit:contain; }
  body.gk-store .qv-qty{ margin:12px 0; }

  /* the shopping assistant fills the screen */
  html #gkAiPanel{ top:var(--gk-vtop,0px); left:0; right:0; bottom:auto; width:100%; height:100vh; height:var(--gk-vh,100dvh); border-radius:0; }
  html #gkAiHead{ padding-top:calc(14px + env(safe-area-inset-top)); }
  html #gkAiInputBar{ padding-bottom:calc(10px + env(safe-area-inset-bottom)); }
}
@media (max-width:360px){
  body.gk-store .brand span{ font-size:15px; }
  body.gk-store .nav-right{ gap:4px; }
  .gk-bar > *{ font-size:10px; }
}
@media (max-height:500px) and (orientation:landscape){
  body.gk-store .hero{ min-height:0; }
  body.gk-store .qv-gallery-main{ aspect-ratio:21/9; }
  :root{ --gk-bar:54px; }
  html #gkAiPanel{ top:var(--gk-vtop,0px); bottom:auto; height:var(--gk-vh,100dvh); border-radius:0; }
  .gk-bar .gk-bar-wa i{ width:30px; height:30px; margin-top:0; border-width:0; }
  .gk-bar svg{ width:19px; height:19px; }
}

/* toasts sit at the top on phones so they never cover buttons */
@media (max-width:640px){
  html #gkToastStack{ top:calc(10px + env(safe-area-inset-top)); bottom:auto; left:12px; right:12px; }
}

/* ============ 5. ADMIN AND STAFF PANELS ============ */
body.gk-panel #main{ min-width:0; }
body.gk-panel :is(.card, .grid2 > *, .grid3 > *, .grid4 > *, .field, .dept-card, #bulkGrid > *){ min-width:0; }
body.gk-panel :is(td, .card p, .dept-body){ overflow-wrap:anywhere; }
body.gk-panel #loginScreen{ min-height:100vh; min-height:100dvh; padding:16px; }
body.gk-panel .price-btn{ background:none; border:1px dashed #cdbddd; border-radius:8px; padding:8px 12px; min-height:40px; font-family:inherit; font-size:13px; font-weight:700; color:var(--royal); cursor:pointer; }
body.gk-panel .price-btn.empty{ color:var(--pink); border-color:var(--pink); }
body.gk-panel .row-actions{ display:flex; gap:8px; flex-wrap:wrap; }
@media (min-width:861px){
  body.gk-panel #shell{ grid-template-columns:230px minmax(0,1fr); }
}
@media (max-width:860px){
  body.gk-panel #shell{ grid-template-columns:minmax(0,1fr); }
  body.gk-panel #loginBox{ width:100%; max-width:360px; }
  body.gk-panel #mobileTopbar{ padding:calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
  body.gk-panel #mobileTopbar button{ width:44px; height:44px; cursor:pointer; }
  body.gk-panel #sidebar{ width:min(280px,82vw); height:100vh; height:100dvh; padding-top:calc(20px + env(safe-area-inset-top)); padding-bottom:calc(20px + env(safe-area-inset-bottom)); overscroll-behavior:contain; }
  body.gk-panel #sidebar button{ min-height:44px; flex-shrink:0; }
  body.gk-panel #main{ padding:calc(76px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  body.gk-panel .btn{ min-height:44px; }
  body.gk-panel .field input:not([type=checkbox]), body.gk-panel .field select{ min-height:44px; }
  body.gk-panel .perm-row label, body.gk-panel #main label:has(> input[type=checkbox]){ min-height:40px; display:inline-flex; align-items:center; gap:8px; }
  body.gk-panel input[type=checkbox]{ width:20px; height:20px; flex-shrink:0; }
  body.gk-panel #main div[style*="display:flex"]{ flex-wrap:wrap; }
  body.gk-panel #orderCodeInput{ min-width:0; }
  body.gk-panel textarea[data-dept-desc]{ font-size:16px !important; } /* beats the inline size */
  body.gk-panel #main select{ min-height:40px; }
  body.gk-panel #bulkGrid [data-bulk-remove]{ width:34px !important; height:34px !important; font-size:15px !important; }
}
@media (max-width:600px){
  body.gk-panel .grid4{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  body.gk-panel #panel-content .grid4{ grid-template-columns:minmax(0,1fr); }

  /* each table row becomes a card: no sideways scrolling */
  body.gk-panel .table-scroll{ overflow:visible; }
  body.gk-panel .table-scroll table{ min-width:0; display:block; background:none; }
  body.gk-panel .table-scroll thead{ display:none; }
  body.gk-panel .table-scroll tbody, body.gk-panel .table-scroll tr, body.gk-panel .table-scroll td{ display:block; width:100%; }
  body.gk-panel .table-scroll tr{ background:var(--paper); border:1px solid var(--line); border-radius:14px; padding:6px 12px; margin-bottom:10px; }
  body.gk-panel .table-scroll td{ display:flow-root; padding:8px 0; text-align:right; font-size:13.5px; border-bottom:1px solid #f1ebf7; overflow-wrap:anywhere; }
  body.gk-panel .table-scroll td:last-child{ border-bottom:none; }
  body.gk-panel .table-scroll td::before{ content:attr(data-label); float:left; margin-right:14px; font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:#8a7a99; text-align:left; }
  body.gk-panel .table-scroll td:empty{ display:none; }
  body.gk-panel .table-scroll td.gk-full{ text-align:center; }
  body.gk-panel .table-scroll .thumb{ width:56px; height:56px; }
}

/* department tiles: keep "Ask on WhatsApp" on one line */
.dept-wa.gk-wa.gk-small{ white-space:nowrap; }
@media (max-width:374px){
  .dept-wa.gk-wa.gk-small svg{ display:none; }
}

/* notification close button: no default grey box */
.gk-toast-close{ background:none; border:0; color:#fff; min-width:28px; min-height:28px; cursor:pointer; }

/* admin: one box per breakfast package */
.bf-admin-row{ border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:10px; }

/* ============ BREAKFAST — Grandeur Sunrise ============ */
/* the "order breakfast" pill at the very top of the page */
body.gk-store .bf-pill{
  display:flex; align-items:center; gap:10px; width:fit-content; max-width:100%; margin-bottom:16px; padding:8px 8px 8px 16px;
  border-radius:100px; background:#FFF3D6; color:#4A2300; font-weight:800; font-size:14px; line-height:1.25;
  box-shadow:0 12px 30px -10px rgba(255,170,40,.65);
}
body.gk-store .bf-pill b{ min-width:0; }
body.gk-store .bf-pill span{ background:#B84E00; color:#fff; border-radius:100px; padding:9px 15px; font-size:12.5px; white-space:nowrap; }

.bf{ background:linear-gradient(165deg,#FFF6E3 0%,#FFE6C4 48%,#FCD9DF 100%); padding:64px 0; scroll-margin-top:var(--gk-head, 72px); }
body.gk-store section.bf{ padding:64px 0; }
.bf-grid{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; align-items:start; }
.bf-intro{ position:sticky; top:calc(var(--gk-head, 72px) + 24px); min-width:0; }
.bf-eyebrow{ font-size:12px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; color:#A84700; margin-bottom:8px; }
.bf h2{ font-family:'Fraunces',serif; font-size:clamp(32px,5vw,50px); line-height:1.05; color:#330E52; margin-bottom:10px; overflow-wrap:anywhere; }
.bf-tagline{ font-size:16px; line-height:1.55; color:#5A3A2A; margin-bottom:14px; }
.bf-notice{ display:inline-block; background:#fff; border-left:4px solid #E8710A; border-radius:10px; padding:10px 14px; font-size:13.5px; font-weight:700; color:#4A2300; margin-bottom:14px; }
.bf-photo{ border-radius:24px; overflow:hidden; aspect-ratio:4/3; background:#FFD9A8; box-shadow:0 30px 60px -28px rgba(110,50,0,.5); }
.bf-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.bf-art{ width:100%; height:100%; display:flex; align-items:center; justify-content:center; gap:18px; font-size:clamp(70px,11vw,128px); background:radial-gradient(circle at 50% 115%, #FFB347 0%, #FFD27F 38%, #FFEBC6 72%); }

.bf-card{ background:#fff; border-radius:24px; padding:22px; min-width:0; box-shadow:0 30px 60px -32px rgba(110,50,0,.45); }
.bf-card fieldset{ border:0; padding:0; margin:0 0 20px; min-width:0; }
.bf-card legend{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:16px; color:#330E52; margin-bottom:12px; padding:0; }
.bf-card legend i{ display:flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:#330E52; color:#fff; font-style:normal; font-size:13px; flex-shrink:0; }
.bf-last{ display:flex; flex-direction:column; gap:2px; width:100%; text-align:left; background:#FFF3D6; border:2px dashed #E8710A; border-radius:14px; padding:11px 14px; margin-bottom:10px; font-family:inherit; color:#4A2300; cursor:pointer; }
.bf-last b{ font-size:14px; }
.bf-last span{ font-size:12.5px; overflow-wrap:anywhere; }
.bf-in{ animation:bfIn .4s ease both; }
@keyframes bfIn{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion:reduce){ .bf-in{ animation:none; } }
.bf-send.bf-in{ animation-name:bfFade; } /* no transform: it must stay stuck to the bottom */
@keyframes bfFade{ from{ opacity:0; } to{ opacity:1; } }
.bf-known button{ background:none; border:0; color:#A81064; font-weight:800; text-decoration:underline; cursor:pointer; font-size:13px; padding:8px 4px; font-family:inherit; }

.bf-pack{ display:flex; align-items:center; justify-content:space-between; gap:12px; border:2px solid #F1E3D3; border-radius:16px; padding:12px 14px; margin-bottom:10px; transition:border-color .2s,background .2s; }
.bf-pack.picked{ border-color:#E8710A; background:#FFF8EE; }
.bf-pack-info{ display:flex; flex-direction:column; gap:2px; min-width:0; overflow-wrap:anywhere; }
.bf-pack-info b{ font-size:15px; color:#2B1B3D; }
.bf-pack-info span{ font-size:12.5px; color:#6d5b52; line-height:1.4; }
.bf-pack-info em{ font-style:normal; font-weight:800; font-size:13px; color:#A81064; }
.bf-step{ display:flex; align-items:center; gap:8px; flex-shrink:0; }
.bf-step button{ width:44px; height:44px; border-radius:50%; border:0; background:#330E52; color:#fff; font-size:22px; line-height:1; cursor:pointer; touch-action:manipulation; }
.bf-step button:disabled{ background:#E8E0EE; color:#A99AB5; cursor:default; }
.bf-step output{ min-width:22px; text-align:center; font-weight:800; font-size:17px; color:#2B1B3D; }

.bf-unit{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:8px 10px; background:#FBF6EE; border-radius:14px; padding:12px; margin-top:8px; }
.bf-unit b{ grid-column:1/-1; font-size:12.5px; color:#330E52; }
.bf-unit label{ font-size:11.5px; font-weight:700; color:#6d5b52; min-width:0; }
.bf-unit select, .bf-field input{
  display:block; width:100%; min-width:0; min-height:46px; margin-top:4px; padding:10px 12px; font-size:16px; font-family:inherit;
  color:#2B1B3D; background:#fff; border:1.5px solid #E4D7EC; border-radius:12px; outline:none;
}
.bf-unit select:focus, .bf-field input:focus{ border-color:#E8710A; box-shadow:0 0 0 3px rgba(232,113,10,.15); }
.bf-field{ display:block; font-size:12.5px; font-weight:700; color:#330E52; margin-bottom:10px; }
.bf-field small{ font-weight:400; color:#8a7a99; }
.bf-field input[type=time]{ -webkit-appearance:none; appearance:none; }
.bf-chips{ display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:10px; }
.bf-chips label{ position:relative; cursor:pointer; }
.bf-chips input{ position:absolute; opacity:0; width:1px; height:1px; }
.bf-chips span{ display:flex; align-items:center; justify-content:center; text-align:center; min-height:46px; padding:8px; border:2px solid #E4D7EC; border-radius:100px; font-weight:800; font-size:13.5px; color:#330E52; }
.bf-chips input:checked + span{ background:#330E52; border-color:#330E52; color:#fff; }
.bf-chips input:focus-visible + span{ outline:3px solid #E8710A; outline-offset:2px; }
.bf-known{ display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; background:#EFF8F1; border-radius:12px; padding:8px 12px; font-size:13.5px; color:#1d4a2c; margin-bottom:10px; }
.bf-card [hidden]{ display:none !important; }
.bf-card fieldset:last-of-type{ margin-bottom:8px; }

.bf-send{ background:#fff; padding-top:8px; }
.bf-send .gk-wa{ min-height:56px; font-size:15.5px; }
.bf-summary{ text-align:center; font-weight:800; font-size:14px; color:#2B1B3D; margin-bottom:8px; }
.bf-error{ background:#FDECEC; color:#A52A1F; border-radius:10px; padding:10px 12px; font-size:13.5px; font-weight:700; margin-bottom:8px; }
.bf-hint{ text-align:center; font-size:12px; color:#8a7a99; line-height:1.5; margin-top:8px; }
.bf-hint a{ color:#A81064; font-weight:800; text-decoration:underline; }

@media (max-width:860px){
  .bf, body.gk-store section.bf{ padding:32px 0 36px; }
  .bf-grid{ grid-template-columns:minmax(0,1fr); gap:18px; }
  .bf-intro{ position:static; }
  .bf-photo{ aspect-ratio:16/11; border-radius:18px; }
  .bf-card{ padding:16px; border-radius:20px; }
  /* once something is chosen, the send button stays within thumb reach */
  .bf-send.ready{ position:sticky; bottom:calc(var(--gk-bar) + env(safe-area-inset-bottom)); z-index:5; margin:0 -16px; padding:10px 16px 8px; border-top:1px solid #F1E3D3; box-shadow:0 -10px 22px -16px rgba(51,14,82,.5); }
  .bf-send.ready .bf-hint:not(#bfFallback){ display:none; }
  html.gk-typing .bf-send.ready{ position:static; }
}

/* ============ payment receipt sheet (payment-widget.php) on small phones ============ */
#gkReceiptSheet .gk-receipt-box{ max-height:92vh; max-height:92dvh; overflow-y:auto; overscroll-behavior:contain; padding-bottom:calc(28px + env(safe-area-inset-bottom)); }
#gkReceiptSheet .gk-bank-copy, .gk-bank-panel .gk-bank-copy{ min-height:36px; }
#gkReceiptSheet .gk-bank-row-value, .gk-bank-panel .gk-bank-row-value{ overflow-wrap:anywhere; }