/* Slotly pearl-turquoise secondary-page theme.
   Home (#explore) keeps its approved design. All overrides are visual only. */
:root{--slotly-pearl:#b9f6f9;--slotly-pearl-soft:#effcff;--slotly-pearl-edge:#38d7e6;--slotly-pearl-deep:#008eaa;--slotly-pearl-ink:#103755}
body:has(#explore[hidden]){background:linear-gradient(145deg,#f4fdff 0%,#b9f6f9 52%,#e4fbff 100%) fixed;color:var(--slotly-pearl-ink)}
body:has(#explore[hidden]) :is(.panel,.card,.box,.sbar,.place-card,.cat),
#explore :is(.slotly-flow-section,.slotly-modern-schedule,.standard-schedule){
 background:linear-gradient(140deg,#ffffff 0%,#e8fbff 60%,#c9f7fa 100%);
 border:1px solid #6bdae5;
 box-shadow:0 8px 24px rgba(0,139,165,.12),inset 0 1px 0 #fff;
 border-radius:18px;
}
body:has(#explore[hidden]) :is(.f,.search,.chip,.tabs button,.iconbtn),
#explore :is(.slotly-flow-section,.slotly-modern-schedule) :is(input,select,textarea,button:not(.btn)){
 border-color:#75d9e6;
}
body:has(#explore[hidden]) :is(.btn:not(.ghost):not(.red),.chip.on,.tabs button.on),
#explore :is(.slotly-flow-section,.slotly-modern-schedule) :is(.btn:not(.ghost):not(.red),button[aria-pressed="true"],button.selected,button.on){
 background:linear-gradient(135deg,#00a6bc,#08cad5 52%,#5ee9eb);
 color:#fff;
 border-color:#008fa8;
 box-shadow:0 5px 14px rgba(0,158,178,.22);
}
body:has(#explore[hidden]) :is(.btn.ghost,.chip:not(.on)),
#explore :is(.slotly-flow-section,.slotly-modern-schedule) :is(.btn.ghost,button:not([aria-pressed="true"]):not(.on):not(.selected)){
 background:linear-gradient(145deg,#fff,#e5fbff);
 color:#123a55;
 border:1px solid #83dce6;
}
body:has(#explore[hidden]) :is(button,input,select,textarea):focus-visible,
#explore :is(.slotly-flow-section,.slotly-modern-schedule) :is(button,input,select,textarea):focus-visible{
 outline:3px solid #008fa8;outline-offset:2px;
}
body:has(#explore[hidden]) :is(button,input):disabled,
#explore :is(.slotly-flow-section,.slotly-modern-schedule) :is(button,input):disabled{
 opacity:.45;box-shadow:none;cursor:not-allowed;
}
@media(prefers-reduced-motion:reduce){body:has(#explore[hidden]) *{transition:none!important}}

/* Booking wizard opens as a modal while Explore stays visible: scope it directly. */
#mb .apw{--panel:#e5fbff;--field:#f8feff;--muted:#315c70;--cyan:#008fa8;--line:#77d9e4;background:linear-gradient(155deg,#f3feff,#b9f6f9 65%,#dffbff);color:#103755;color-scheme:light}
#mb .apw :is(.ap-head,.ap-card,.ap-shop){background:linear-gradient(140deg,#fff,#d6f9fc);color:#103755;border-color:#78dce5}
#mb .apw :is(h2,h3,b,.ap-brand,.ap-monthname,.ap-addon b){color:#103755}
#mb .apw :is(.ap-step,.ap-sub,.ap-label,.ap-days small,.ap-back){color:#315c70}
#mb .apw :is(.ap-days button,.ap-times button,.ap-options button,.ap-arrow,.ap-action){background:#f5fdff;color:#103755;border:1px solid #7edce5}
#mb .apw :is(.ap-days button[aria-pressed="true"],.ap-times button[aria-pressed="true"],.ap-primary){background:linear-gradient(135deg,#008fa8,#13cbd6,#5be9ec);color:white;border-color:#008fa8}
#mb .apw :is(button,input,select,textarea):disabled{opacity:.45;cursor:not-allowed}
#mb .apw :is(input,select,textarea){background:#f8feff;color:#103755;border-color:#77d9e4}
#mb .apw :is(button,input,select,textarea):focus-visible{outline:3px solid #008fa8;outline-offset:2px}
#standard-menus .slotly-modern-schedule{background:linear-gradient(140deg,#fff,#dcfaff);border:1px solid #78dce5;border-radius:18px;padding:12px}
#standard-menus .slotly-modern-day{background:linear-gradient(140deg,#fff,#e4fbff);border-color:#78dce5}
#standard-menus .slotly-modern-day[aria-pressed="true"],#standard-menus .slotly-modern-day.selected{background:linear-gradient(135deg,#008fa8,#2fd5dc);color:#fff}

/* Actual five-step service flow lives in #standard-menus, not #mb .apw. */
#standard-menus{--pearl-ink:#103755;--pearl-edge:#74d9e4;--pearl-deep:#008fa8;color:var(--pearl-ink)}
#standard-menus .slotly-flow-steps span{background:#e0f9fc;border-color:var(--pearl-edge);color:#20556b}
#standard-menus .slotly-flow-steps span[aria-current="step"]{background:linear-gradient(135deg,#008fa8,#35d9e3);border-color:#008fa8;color:#fff}
#standard-menus .slotly-flow-section{border-top-color:var(--pearl-edge)}
#standard-menus .slotly-flow-section-title{color:#007e98}
#standard-menus :is(.slotly-flow-business,.standard-service-row,.flow-note,.flow-business,.standard-schedule,.standard-fields,.slotly-modern-schedule){border-color:var(--pearl-edge);background-color:#effdff;color:var(--pearl-ink)}
#standard-menus .standard-service-row:has(input:checked){background:#b9f6f9;border-color:#008fa8}
#standard-menus .standard-service-row input[type="checkbox"]{accent-color:#008fa8}
#standard-menus :is(.standard-service-price,.flow-note summary,.flow-business summary,.flow-options summary){color:#007e98}
#standard-menus :is(input,select,textarea){border-color:var(--pearl-edge);accent-color:#008fa8}
#standard-menus :is(input,select,textarea,button):focus-visible{outline:3px solid #008fa8;outline-offset:2px}
#standard-menus .flow-footer{background:#e4fbff;border-top-color:var(--pearl-edge)}
#standard-menus .slotly-modern-day{background:#e4fbff;border-color:var(--pearl-edge)}
#standard-menus .slotly-modern-day:is(.selected,[aria-pressed="true"]){background:#008fa8;color:white}

/* Pearl contrast pass: visibly color the dedicated service/order screens only. */
body.service-screen{
 background:linear-gradient(155deg,#e6fbff 0%,#b5eff4 46%,#e7fcff 100%) fixed;
}
body.service-screen #standard-menus>.flow-content{
 background:linear-gradient(145deg,#ffffff 0%,#e4fbfd 62%,#c8f3f7 100%);
 border-inline:1px solid #69d7e1;
 box-shadow:0 10px 26px rgba(0,132,157,.12);
}
body.service-screen #standard-menus :is(.flow-bar,.flow-footer){
 background:linear-gradient(140deg,#b9f3f7,#e8fdff);
 border-color:#69d7e1;
}
body.service-screen #standard-menus :is(.pizza-flow-section,.pizza-flow-review,.pizza-compact-sides){
 background:linear-gradient(145deg,#fff 0%,#e5fcff 66%,#c4f2f7 100%);
 border-color:#68d4e0;
 color:#103755;
}
body.service-screen #standard-menus :is(.pizza-flow-section>summary,.pizza-flow-group legend,.pizza-flow-review>b){
 color:#007d96;
}
body.service-screen #standard-menus :is(.slotly-modern-time:not(:disabled),.slotly-modern-day:not(:disabled)){
 background:#e9fbff;
 border-color:#78d9e4;
 color:#103755;
}
body.service-screen #standard-menus :is(.slotly-modern-time[aria-pressed="true"],.slotly-modern-day[aria-pressed="true"]){
 background:linear-gradient(135deg,#008fa8,#24cdd6);
 border-color:#008fa8;
 color:#fff;
}
body.service-screen #standard-menus .service-choices .standard-service-row:has(input:checked){
 background:#c9f5fa;
 border-color:#59cfdb;
}
#standard-basket-dialog[open]{
 background:linear-gradient(145deg,#e8fcff,#bff1f6);
 border-color:#71d8e3;
 color:#103755;
}
#standard-basket-dialog[open] :is(.flow-content,.flow-footer,.basket-group){
 background:linear-gradient(150deg,#fff,#e0faff);
 border-color:#71d8e3;
}


/* Grocery business chooser refresh — scoped to the grocery service screen.
   Do not change home, checkout, or other service categories. */
body.service-screen:has(#slotly-grocery-area-search) #standard-menus>.flow-content{
  background:linear-gradient(180deg,#fff 0%,#f5fcff 70%,#eefaff 100%);
  border-color:#c6e9f1;color:#102d55;
}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .flow-kicker{
  display:inline-flex;align-items:center;background:#e6f5ff;color:#0c3970;
  padding:5px 12px;border-radius:999px;font-weight:800;letter-spacing:.06em;
}
body.service-screen:has(#slotly-grocery-area-search) #service-screen-title{
  color:#09275b;font-weight:800;letter-spacing:-.035em;line-height:1.13;
}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-flow-section:has(#slotly-grocery-area-search){
  background:transparent;border:0;box-shadow:none;padding:0;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-section-title{
  color:#092e63;font-weight:800;
}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-nearby{
  background:#e9f8ff;color:#063b77;border:1.5px solid #21c5df;
  border-radius:14px;min-height:48px;padding:10px 16px;font-weight:800;
  box-shadow:none;
}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-nearby:focus-visible,
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-area-search:focus-visible,
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business:focus-visible{
  outline:3px solid #00bcd4;outline-offset:3px;
}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-area-search{
  background:#fff;border:1.5px solid #c6ddea;border-radius:16px;
  min-height:56px;padding:12px 16px;color:#12365d;
  box-shadow:0 3px 10px rgba(9,46,99,.08);width:100%;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{
  display:grid;gap:12px;margin-top:18px;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business{
  display:flex;align-items:center;gap:8px;width:100%;min-height:86px;
  padding:18px 16px;background:#fff;color:#102f5a;
  border:1px solid #c6e2ee;border-radius:20px;text-align:left;
  font-size:1rem;font-weight:800;box-shadow:0 5px 16px rgba(8,57,108,.09);
  overflow-wrap:anywhere;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business small{
  display:block;color:#49637c;font-size:.77rem;font-weight:600;line-height:1.5;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business[aria-pressed="true"]{
  border:2px solid #00bdd6;background:#edfbff;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business[hidden]{display:none!important}
body.service-screen:has(#slotly-grocery-area-search) .slotly-nearby-status,
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-search-status{
  color:#49637c;font-size:.88rem;line-height:1.5;
}
@media(min-width:700px){
 body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
 body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business{padding:14px 12px;min-height:76px}
 body.service-screen:has(#slotly-grocery-area-search) #service-screen-title{font-size:clamp(1.5rem,7vw,2rem)}
}


/* Grocery chooser polish: larger screens, touch comfort and accessible motion. */
@media(min-width:1100px){
 body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{
  grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;
 }
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business{
 min-width:0;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business:hover:not([disabled]){
 border-color:#00bcd4;box-shadow:0 8px 22px rgba(8,57,108,.14);
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business[aria-pressed="true"]{
 box-shadow:0 0 0 2px rgba(0,188,212,.18),0 6px 18px rgba(8,57,108,.12);
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business:disabled{
 cursor:not-allowed;opacity:.6;
}
@media(prefers-reduced-motion:reduce){
 body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business{transition:none}
}


/* Compact grocery chooser: prioritize search and store cards on small screens. */
body.service-screen:has(#slotly-grocery-area-search) #standard-menus>.flow-content{padding-top:14px}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .flow-kicker{font-size:.72rem}
body.service-screen:has(#slotly-grocery-area-search) #service-screen-title{margin:5px 0 8px;line-height:1.15}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-flow-section:has(#slotly-grocery-area-search){display:grid;gap:9px}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-flow-section:has(#slotly-grocery-area-search)>.slotly-flow-section-title{margin:0 0 3px}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-nearby{min-height:44px;width:max-content;max-width:100%;padding:9px 14px}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-area-search{min-height:48px;padding:10px 14px}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-flow-section:has(#slotly-grocery-area-search)>.lbl{margin:0;font-size:.84rem}
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-flow-section:has(#slotly-grocery-area-search)>.flow-muted:empty,
body.service-screen:has(#slotly-grocery-area-search) #standard-menus .slotly-nearby-status:empty{display:none}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{margin-top:6px;gap:10px}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business{min-height:74px;padding:12px 14px;border-radius:16px;line-height:1.35}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-business small{margin-top:4px}
@media(max-width:600px){
 body.service-screen:has(#slotly-grocery-area-search) #standard-menus>.flow-content{padding-inline:12px}
 body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{grid-template-columns:minmax(0,1fr)}
}


/* One search for city, ZIP or store; limited to the grocery chooser. */
body.service-screen:has(#slotly-grocery-area-search) .slotly-grocery-find-row{
 display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:stretch;gap:9px;margin:6px 0 4px;
}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-area-search{
 min-width:0;min-height:48px;padding:10px 13px;box-shadow:none;
}
body.service-screen:has(#slotly-grocery-area-search) #slotly-grocery-nearby{
 min-height:48px;padding:8px 13px;white-space:nowrap;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-section:has(#slotly-grocery-area-search)>.slotly-flow-section-title{
 margin:0 0 9px;
}
body.service-screen:has(#slotly-grocery-area-search) :is(.slotly-nearby-status,#slotly-grocery-search-status):empty{
 display:none;
}
body.service-screen:has(#slotly-grocery-area-search) .slotly-flow-businesses{
 margin-top:10px;
}

/* Grocery merchant city caption: show the area without duplicate controls. */
body.service-screen:has(#slotly-grocery-area-search) .slotly-store-label{flex:1;min-width:0;display:block}
body.service-screen:has(#slotly-grocery-area-search) .slotly-store-label b{display:block;overflow-wrap:anywhere}
body.service-screen:has(#slotly-grocery-area-search) .slotly-store-label small{margin-top:3px}
