/* Blue Water curbside ordering (/curbside/ and /curbside/order/) */
.cb-main { padding-bottom: 5.5rem; }
.cb-visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cb-hero[hidden], .cb-checkout[hidden], .cb-shop[hidden], .cb-paused[hidden] { display: none !important; }

/* hero */
.cb-hero-wrap { max-width: 860px; padding-top: 1.6rem; padding-bottom: .6rem; }
.cb-hero .eyebrow { color: var(--clay); }
.cb-hero h1 { margin: .15rem 0 .6rem; }
.cb-lede { font-size: 1.1rem; line-height: 1.5; margin: 0 0 .9rem; max-width: 46rem; }
.cb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin: 0; padding: 0; }
.cb-steps li { display: flex; align-items: center; gap: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .9rem .3rem .35rem; font-weight: 600; font-size: .95rem; }
.cb-steps li span { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--teal); color: #fff; font-size: .85rem; }
.cb-paused { background: #fff3d6; color: #5e4710; padding: .7rem 0; border-block: 1px solid #e6cf94; }

/* layout */
.cb-layout { display: grid; gap: 1rem; grid-template-columns: 1fr; padding-top: 1rem; align-items: start; }
@media (min-width: 900px) { .cb-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 1.4rem; } }

/* search */
.cb-search { display: flex; gap: .5rem; }
.cb-search input { flex: 1; min-width: 0; padding: .85rem 1rem; font: inherit; font-size: 1.05rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.cb-search input:focus { outline: 2px solid var(--water-lt); outline-offset: 1px; }
.cb-chips { display: flex; gap: .45rem; overflow-x: auto; padding: .7rem 0 .2rem; margin: 0 -.2rem; scrollbar-width: thin; }
.cb-chip { flex: none; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: inherit; font-weight: 600; font-size: .92rem; border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.cb-chip:hover, .cb-chip:focus-visible { border-color: var(--teal); background: #f1f7f8; }
.cb-fresh { color: var(--muted); font-size: .88rem; margin: .5rem 0 .2rem; min-height: 1.1em; }
.cb-empty { color: var(--muted); padding: 1.2rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--paper); margin: .5rem 0; }

/* buttons */
.cb-btn { display: inline-block; border: 0; border-radius: 10px; padding: .65rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer; background: var(--teal); color: #fff; text-decoration: none; text-align: center; }
.cb-btn:hover:not(:disabled), .cb-btn:focus-visible { background: var(--navy-2); }
.cb-btn:disabled { opacity: .55; cursor: default; }
.cb-btn-big { width: 100%; padding: .9rem 1.2rem; font-size: 1.08rem; }
.cb-btn-add { background: var(--cactus); padding: .5rem 1rem; }
.cb-btn-add:hover:not(:disabled) { background: #2f5740; }
.cb-btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.cb-btn-ghost:hover:not(:disabled) { background: #f1f7f8; }
.cb-btn-danger { color: #8a2f1a; border-color: #b9684c; }
.cb-link { background: none; border: 0; padding: .1rem 0; font: inherit; font-size: .9rem; color: var(--teal); text-decoration: underline; cursor: pointer; }

/* result list (one compact row per item) */
.cb-grid { list-style: none; margin: .35rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.cb-card { display: flex; align-items: flex-start; gap: .55rem .7rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; padding: .45rem .1rem; min-height: 44px; }
.cb-card-thumb { flex: none; width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.cb-card-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: .08rem; padding-top: .15rem; }
.cb-card-name { margin: 0; font-size: .98rem; line-height: 1.25; }
.cb-card-meta { margin: 0; color: var(--muted); font-size: .82rem; line-height: 1.3; }
.cb-card-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: .25rem; }
.cb-card-price { margin: 0; display: flex; flex-direction: column; align-items: flex-end; flex-wrap: nowrap; gap: .12rem; text-align: right; }
.cb-price { font-weight: 800; font-size: 1.02rem; color: var(--navy); }
.cb-member { font-size: .78rem; font-weight: 700; color: var(--cactus); background: #e8f2ea; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.cb-edlp { font-size: .78rem; font-weight: 700; color: var(--navy); background: #e6eef0; border-radius: 999px; padding: .05rem .45rem; white-space: nowrap; }
.cb-left { margin: 0; font-size: .78rem; font-weight: 700; color: var(--adobe); }
.cb-card-act { margin-top: 0; padding-top: 0; display: flex; align-items: center; justify-content: flex-end; gap: .4rem; flex-wrap: wrap; }
.cb-btn-add { background: var(--cactus); padding: 0 .9rem; min-height: 44px; min-width: 44px; line-height: 1; }
.cb-btn-add:hover:not(:disabled) { background: #2f5740; }
.cb-card .cb-stepper button { width: 44px; height: 44px; }
.cb-approx { color: var(--muted); font-size: .8rem; }
@media (hover: hover) { .cb-card:hover { background: rgba(255,255,255,.55); } }
@media (min-width: 700px) {
  .cb-card { align-items: center; padding: .45rem .2rem; gap: .7rem .9rem; }
  .cb-card-info { padding-top: 0; }
  .cb-card-side { flex-direction: row; align-items: center; gap: .75rem; }
  .cb-card-price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .12rem .4rem; }
  .cb-card-name { font-size: 1.02rem; }
  .cb-price { font-size: 1.06rem; }
  .cb-member, .cb-edlp { font-size: .82rem; }
}

/* stepper */
.cb-stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--teal); border-radius: 10px; overflow: hidden; background: #fff; }
.cb-stepper button { width: 2.6rem; height: 2.4rem; border: 0; background: #f1f7f8; color: var(--teal); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; line-height: 1; }
.cb-stepper button:disabled { opacity: .35; cursor: default; }
.cb-qty { min-width: 3.1rem; text-align: center; font-weight: 800; padding: 0 .3rem; }
.cb-stepper-sm button { width: 2.2rem; height: 2.1rem; }

/* cart */
.cb-cart { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); }
.cb-cart-head { display: flex; justify-content: space-between; align-items: center; }
.cb-cart h2 { margin: 0 0 .4rem; font-size: 1.3rem; }
.cb-cart-close { display: none; border: 0; background: none; font-size: 2rem; line-height: 1; color: var(--navy); cursor: pointer; padding: 0 .3rem; }
.cb-lines { list-style: none; margin: 0; padding: 0; }
.cb-line { padding: .7rem 0; border-top: 1px solid var(--line); }
.cb-line:first-child { border-top: 0; }
.cb-line-top { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; }
.cb-line-name { display: flex; flex-direction: column; min-width: 0; }
.cb-line-name strong { line-height: 1.25; }
.cb-line-meta { color: var(--muted); font-size: .84rem; }
.cb-line-row { display: flex; justify-content: space-between; align-items: center; margin-top: .45rem; }
.cb-line-total { font-weight: 800; }
.cb-line-note { margin-top: .25rem; }
.cb-note-input { width: 100%; padding: .5rem .65rem; border: 1.5px solid var(--line); border-radius: 9px; font: inherit; font-size: .95rem; background: #fff; }
.cb-totals { border-top: 2px solid var(--navy); margin-top: .7rem; padding-top: .6rem; }
.cb-trow { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .12rem 0; }
.cb-trow strong { font-size: 1.12rem; }
.cb-trow-member { color: var(--cactus); }
.cb-fine { color: var(--muted); font-size: .84rem; line-height: 1.4; margin: .35rem 0 0; }
.cb-center { text-align: center; }
.cb-cart-foot { margin-top: .6rem; display: grid; gap: .3rem; }
@media (min-width: 900px) { .cb-cart { position: sticky; top: calc(var(--header-h, 52px) + 14px); max-height: calc(100vh - 90px); overflow: auto; } }

/* mobile: the order is a bottom sheet opened from the sticky bar */
.cb-cartbar { position: fixed; z-index: 40; left: .6rem; right: .6rem; bottom: max(.6rem, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border: 0; border-radius: 14px; background: var(--navy); color: #fff; font: inherit; font-weight: 700; box-shadow: 0 8px 24px rgba(0,0,0,.28); cursor: pointer; }
.cb-cartbar[hidden] { display: none; }
.cb-cartbar-count { display: grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--sun, #e2b14a); color: var(--navy); font-size: .92rem; }
.cb-cartbar-label { flex: 1; text-align: left; }
@media (min-width: 900px) { .cb-cartbar { display: none !important; } }
@media (max-width: 899px) {
  .cb-cart { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; top: var(--cb-top, 7.5rem); border-radius: 18px 18px 0 0; overflow: auto; transform: translateY(105%); transition: transform .22s ease; visibility: hidden; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
  body.cb-cart-open .cb-cart { transform: none; visibility: visible; }
  body.cb-cart-open .cb-main::after { content: ""; position: fixed; inset: 0; z-index: 50; background: rgba(16,42,51,.45); }
  .cb-cart-close { display: block; }
  .cb-cart-foot { position: sticky; bottom: -1rem; background: var(--paper); padding: .5rem 0 .2rem; }
}

/* checkout */
.cb-checkout { padding-top: 1rem; }
.cb-back { border: 0; background: none; color: var(--teal); font: inherit; font-weight: 700; padding: .3rem 0; cursor: pointer; }
.cb-checkout-title { margin: .3rem 0 .8rem; font-size: 1.7rem; }
.cb-checkout-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .cb-checkout-grid { grid-template-columns: minmax(0, 1fr) 340px; } .cb-summary { position: sticky; top: calc(var(--header-h, 52px) + 14px); } }
@media (max-width: 899px) { .cb-summary { order: -1; } }
.cb-summary { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.cb-summary h3 { margin: 0 0 .5rem; }
.cb-form { display: grid; gap: .9rem; }
.cb-pay { border-radius: 14px; background: #e8f2ea; border: 1px solid #b9d6c1; padding: .8rem 1rem; display: grid; gap: .15rem; color: #1f4a30; }
.cb-fieldset { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: .8rem 1rem 1rem; margin: 0; min-width: 0; }
.cb-fieldset legend { font-weight: 800; padding: 0 .4rem; }
.cb-row { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cb-row { grid-template-columns: 1fr 1fr; } }
.cb-field { display: grid; gap: .25rem; margin-top: .5rem; align-content: start; }
.cb-field label { font-weight: 700; font-size: .95rem; }
.cb-opt { font-weight: 500; color: var(--muted); }
.cb-field input, .cb-field select, .cb-field textarea { width: 100%; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 1rem; background: #fff; color: var(--ink); }
.cb-field input:focus, .cb-field select:focus, .cb-field textarea:focus { outline: 2px solid var(--water-lt); outline-offset: 1px; }
.cb-hint { color: var(--muted); font-size: .84rem; }
.cb-check, .cb-radio { display: flex; gap: .6rem; align-items: flex-start; margin-top: .65rem; cursor: pointer; line-height: 1.35; }
.cb-check input, .cb-radio input { margin-top: .22rem; width: 1.15rem; height: 1.15rem; accent-color: var(--teal); flex: none; }
.cb-check small { color: var(--muted); }
.cb-error { color: #8a1f1f; font-weight: 700; margin: 0; padding: .6rem .8rem; border: 1px solid #e3b4b4; background: #fdeeee; border-radius: 10px; }
.cb-checking { color: var(--muted); font-size: .9rem; margin: 0; min-height: 1.1em; text-align: center; }
.cb-sum-lines { list-style: none; margin: 0; padding: 0; }
.cb-sum-lines li { display: grid; grid-template-columns: auto 1fr auto; gap: .1rem .5rem; padding: .45rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.cb-sum-lines li:first-child { border-top: 0; }
.cb-sum-qty { font-weight: 800; white-space: nowrap; }
.cb-sum-price { font-weight: 700; white-space: nowrap; }
.cb-sum-note { grid-column: 2 / 4; color: var(--muted); font-size: .86rem; }

/* order / status page */
.cb-status { max-width: 720px; padding-top: 1.4rem; display: grid; gap: .9rem; }
.cb-st-head h1 { margin: .1rem 0 .5rem; }
.cb-st-check { display: inline-block; margin: 0; padding: .25rem .8rem; border-radius: 999px; background: #e3f1e7; color: #245c38; font-weight: 800; }
.cb-st-numrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.cb-st-numlabel { color: var(--muted); font-weight: 600; }
.cb-st-num { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.7rem; font-weight: 800; letter-spacing: .04em; color: var(--navy); }
.cb-st-card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.1rem; }
.cb-st-card h2 { margin: 0 0 .4rem; font-size: 1.25rem; }
.cb-st-badge { display: inline-block; margin: 0 0 .3rem; padding: .2rem .8rem; border-radius: 999px; font-weight: 800; background: #e6eef0; color: var(--navy); }
.cb-st-new { background: #e6eef0; } .cb-st-picking { background: #fff3d6; color: #6b4e0c; } .cb-st-ready { background: #dff0e3; color: #1f5a33; }
.cb-st-picked_up { background: #e8e8e8; color: #333; } .cb-st-canceled { background: #f6dedd; color: #7d2a22; }
.cb-st-msg { margin: .1rem 0 .7rem; font-size: 1.05rem; }
.cb-progress { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin: .4rem 0 .9rem; padding: 0; counter-reset: s; }
.cb-progress li { position: relative; text-align: center; font-size: .82rem; font-weight: 700; color: var(--muted); padding-top: 1.4rem; }
.cb-progress li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: .5rem; border-radius: 99px; background: #dde5e7; }
.cb-progress li.done::before { background: var(--cactus-lt); } .cb-progress li.now::before { background: var(--teal); } .cb-progress li.now { color: var(--navy); }
.cb-st-when { margin: 0; font-size: 1.1rem; }
.cb-here .cb-btn { margin-top: .7rem; }
.cb-here .cb-note-input { margin-top: .6rem; }
.cb-here-ok { font-weight: 800; font-size: 1.15rem; color: #1f5a33; margin: 0 0 .3rem; }
.cb-pay-line { color: var(--muted); font-size: .9rem; margin: .8rem 0 0; }
.cb-st-meta { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: .8rem 0 0; font-size: .95rem; }
.cb-st-meta dt { color: var(--muted); } .cb-st-meta dd { margin: 0; font-weight: 600; }
.cb-st-foot { display: grid; gap: .6rem; }
.cb-st-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cb-loading { color: var(--muted); }

/* panels: keep text off the painted background */
.cb-browse { background: rgba(255,252,247,.96); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; box-shadow: var(--shadow); min-width: 0; }
.cb-checkout { background: rgba(255,252,247,.97); border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem 1.4rem; margin-top: 1rem; box-shadow: var(--shadow); }
.cb-fieldset { background: #fff; }
.cb-summary { background: #fffaf1; }
.cb-status { padding-top: 1rem; }
.cb-st-head, .cb-st-foot { background: rgba(255,252,247,.96); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1.1rem; }
.cb-st-head h1 { margin-bottom: .3rem; }
.cb-st-foot { padding-bottom: 1.1rem; }
.cb-hero-wrap { background: rgba(255,252,247,.96); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem 1.3rem; margin-top: 1rem; box-shadow: var(--shadow); }
@media (max-width: 560px) { .cb-hero-wrap { padding: 1rem; } .cb-checkout { padding: .8rem; } .cb-browse { padding: .8rem; } }

/* the footer must not paint over the sticky order bar (main and footer both have z-index 3 on this site) */
.cb-page .site-footer { z-index: 2; }
body.cb-cart-open { overflow: hidden; }


/* Hide the dark site footer on curbside pages only (same as .so-page .site-footer on special-order).
   Hours, address and payments stay in the header, the hero note, checkout, and the confirmation page. */
.cb-page .site-footer { display: none !important; }
.cb-visit-note { color: var(--muted); font-size: .95rem; line-height: 1.45; margin: .7rem 0 0; max-width: 40rem; }


/* fixed, centered validation alert — stays in the viewport even if a field is focused */
.cb-error-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
  background: rgba(16, 42, 51, 0.45);
  box-sizing: border-box;
}
.cb-error-overlay[hidden] { display: none !important; }
.cb-error-overlay-card {
  background: #fdeeee;
  color: #8a1f1f;
  border: 1px solid #e3b4b4;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  max-width: 22rem;
  width: 100%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: .8rem;
  box-sizing: border-box;
}
.cb-error-overlay-msg {
  margin: 0;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.35;
}
.cb-error-overlay-ok {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: .7rem 1.1rem;
  min-height: 44px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #8a1f1f;
  color: #fff;
  width: 100%;
}
.cb-error-overlay-ok:hover,
.cb-error-overlay-ok:focus-visible { background: #6d1818; }
.cb-error-overlay-ok:focus-visible { outline: 2px solid #8a1f1f; outline-offset: 2px; }
