/* /order-online — online pickup ordering. .om-* only; everything else comes from styles.css. */
.om-hero { padding: 36px 0 22px; text-align: center; }
.om-hero h1 { margin-bottom: 8px; }
.om-hero .sub { margin-bottom: 14px; }
.om-status {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 10px 18px; border-radius: 999px;
  font-size: 14.5px; font-weight: 700; background: var(--cream); color: var(--soft); border: 1px solid var(--line);
}
.om-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #B9A3AD; flex-shrink: 0; }
.om-status[data-state="open"] { background: #E5F3EA; border-color: #BFE0CB; color: #1D5B34; }
.om-status[data-state="open"]::before { background: #2E8B57; }
.om-status[data-state="closed"] { background: var(--gold-tint); border-color: #EFD3A5; color: #6B4610; }
.om-status[data-state="closed"]::before { background: #C7871F; }

.om-unavailable { padding: 8px 0 48px; }
.om-unavailable .ck-alert p { margin: 0; }
.om-alt { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- layout: menu + cart column ---- */
.om-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 40px; }
.om-layout[hidden] { display: none; }
@media (min-width: 900px) {
  .om-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
}

/* category tiles: a static grid of 4 per row at every width (no sideways scrolling on any phone). The grid has
   8 half-columns and each tile spans 2, so a short row can sit centred at the same tile size. With the 11
   categories the rows are 4 / 3 / 4: the 5th tile (Scoops) starts one half-column in, which centres row 2.
   Any other count falls back to plain rows of 4, left-aligned. */
.om-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px 8px; padding: 4px 0 6px; }
.om-tile {
  grid-column: span 2;
  font: inherit; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; padding: 8px 4px 10px;
  border-radius: 14px; border: 1.5px solid transparent; text-decoration: none; color: var(--ink); text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.om-tile:nth-child(5):nth-last-child(7) { grid-column: 2 / span 2; }
.om-tile:hover { background: var(--white); border-color: var(--line); }
.om-tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-tile[aria-pressed="true"] { background: var(--white); border-color: var(--pink-deep); }
.om-tile[aria-pressed="true"] .om-tile-label { color: var(--pink-press); }
.om-tile-img { width: 100%; max-width: 76px; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--cream); display: block; }
.om-tile-label { font-size: 12.5px; font-weight: 800; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
@media (min-width: 640px) { .om-tile-label { font-size: 14px; } .om-tiles { gap: 14px 12px; } }

/* sections: photo header, title, note, size switch */
.om-section { padding-top: 22px; }   /* html scroll-padding-top (styles.css) keeps it clear of the top bar */
.om-sec-photo { display: block; width: 100%; max-height: 260px; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 16px; background: #1d1418; margin-bottom: 12px; }
.om-sec-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.om-section h2 { font-size: 26px; }
.om-totop { font: inherit; font-size: 14px; font-weight: 700; white-space: nowrap; padding: 10px 0; min-height: 44px; background: none; border: 0; color: var(--blue-deep); text-decoration: underline; cursor: pointer; }
.om-totop:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-back { display: block; width: 100%; margin-top: 18px; }
.om-sec-note { color: var(--soft); font-size: 15px; margin: 0 0 10px; }
.om-size { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 2px 0 12px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.om-size-btn { font: inherit; font-size: 15px; font-weight: 800; padding: 10px 22px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer; }
.om-size-btn[aria-checked="true"] { background: var(--berry); color: #fff; }
.om-size-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.om-items { list-style: none; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) and (max-width: 899px) { .om-items { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.om-item {
  width: 100%; display: flex; align-items: flex-start; gap: 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 12px; min-height: 104px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.om-item:hover { border-color: #E3BFCC; box-shadow: 0 4px 14px rgba(53,36,44,.07); }
.om-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-thumb { flex-shrink: 0; width: 80px; height: 80px; border-radius: 12px; object-fit: cover; background: #1d1418; display: block; }
.om-thumb-blank { background: var(--cream); }
.om-item-text { flex: 1; min-width: 0; }
.om-item-name { display: block; font-weight: 800; font-size: 16.5px; line-height: 1.3; }
.om-item-desc { display: block; color: var(--soft); font-size: 14px; line-height: 1.4; margin-top: 3px; }
.om-item-meta { display: block; color: var(--soft); font-size: 13.5px; margin-top: 3px; font-style: italic; }
.om-item-price { display: block; margin-top: 6px; font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.om-plus {
  flex-shrink: 0; align-self: center; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink-tint); color: var(--pink-press); font-size: 22px; font-weight: 700; line-height: 1;
}
.om-incart { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--berry); color: #fff; font-size: 12px; font-weight: 800; vertical-align: 2px; }
.om-sheet-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #1d1418; margin: 4px 0 10px; }
.om-sheet-desc { color: var(--soft); font-size: 15px; margin: -4px 0 6px; }
.om-fine { color: var(--soft); font-size: 14px; margin-top: 22px; }

/* ---- cart ---- */
.om-cart { background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: flex; flex-direction: column; }
@media (min-width: 900px) {
  .om-cart { position: sticky; top: 84px; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); }
  .om-x#om-cart-close { display: none; }
}
.om-cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.om-cart-head h2 { font-size: 22px; }
.om-cart-body { padding: 0 20px; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.om-cart-foot { padding: 14px 20px 16px; border-top: 1px solid var(--line); }
.om-empty { color: var(--soft); font-size: 15px; padding: 6px 0 14px; }
.om-lines { list-style: none; padding: 0; }
.om-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.om-line:last-child { border-bottom: 0; }
.om-line-name { font-weight: 800; font-size: 15.5px; }
.om-line-mods { grid-column: 1 / -1; color: var(--soft); font-size: 13.5px; line-height: 1.4; }
.om-line-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.om-line-ctl { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; }
.om-line-ctl .om-qbtn { width: 36px; height: 36px; font-size: 18px; }
.om-line-ctl output { min-width: 22px; text-align: center; font-weight: 800; }
.om-remove { margin-left: auto; background: none; border: 0; color: var(--blue-deep); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 6px; min-height: 36px; }
.om-summary { margin: 0 0 12px; }
.om-closednote { color: #6B4610; background: var(--gold-tint); border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin-bottom: 12px; }
.om-go { width: 100%; }
.om-x { background: none; border: 0; font-size: 30px; line-height: 1; width: 44px; height: 44px; margin-right: -10px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.om-x:focus-visible { outline: 3px solid var(--focus); }

/* checkout form inside the cart */
.om-checkout { padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.om-checkout[hidden] { display: none; }
.om-h3 { font-size: 19px; margin-bottom: 4px; }
.om-pickup { color: var(--soft); font-size: 14.5px; margin-bottom: 14px; }
.om-checkout fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.om-checkout legend { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; letter-spacing: .02em; padding: 0; }
.om-checkout .field-row { grid-template-columns: 1fr; }
.om-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.om-chip[data-k="custom"] { grid-column: span 2; }
.om-chip {
  font: inherit; font-size: 14px; font-weight: 700; padding: 10px 12px; min-height: 48px; border-radius: 10px; cursor: pointer;
  border: 1.5px solid #D9C3CB; background: var(--white); color: var(--ink); line-height: 1.15;
}
.om-chip small { display: block; font-size: 11.5px; font-weight: 600; color: var(--soft); }
.om-chip[aria-checked="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.om-chip[aria-checked="true"] small { color: #E8D6DE; }
.om-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-tipcustom { margin: 10px 0 0; max-width: 160px; }
.om-cardfield {
  border: 1.5px solid #D9C3CB; border-radius: 10px; background: var(--white); height: 50px; padding: 0 12px; margin-bottom: 8px;
  overflow: hidden; position: relative;
}
.om-cardfield iframe { width: 100% !important; height: 46px !important; border: 0; }
.om-cardrow { display: grid; grid-template-columns: 1.1fr .9fr 1fr; gap: 8px; }
.om-secure { color: var(--soft); font-size: 13px; margin-top: 2px; }

/* ---- phone: bottom bar + cart sheet ---- */
.om-bar { display: none; }
.om-scrim { display: none; }
@media (max-width: 899px) {
  .om-page footer { padding-bottom: 92px; }
  .om-bar:not([hidden]) {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,248,240,.97); border-top: 1px solid var(--line);
  }
  .om-barbtn {
    width: 100%; display: flex; align-items: center; gap: 12px; font: inherit; font-weight: 800; font-size: 16.5px; cursor: pointer;
    background: var(--pink-deep); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; min-height: 52px;
    box-shadow: 0 6px 18px rgba(53,36,44,.22);
  }
  .om-barbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .om-barcount { min-width: 28px; height: 28px; border-radius: 999px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 14px; }
  .om-barlabel { flex: 1; text-align: left; }
  .om-bartotal { font-variant-numeric: tabular-nums; }
  .om-cart {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; max-height: 92vh; max-height: 92dvh;
    border-radius: 20px 20px 0 0; border-bottom: 0; transform: translateY(105%); transition: transform .22s ease; visibility: hidden;
    box-shadow: 0 -10px 30px rgba(53,36,44,.18);
  }
  .om-cart.is-open { transform: none; visibility: visible; }
  .om-cart-foot { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .om-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(45,30,38,.45); }
  body.om-locked { overflow: hidden; }
}

/* ---- item sheet (dialog) ----
   styles.css resets every element to margin: 0, which removes the browser's margin: auto centring of a modal
   <dialog> (it then sits in the top-left corner). Centring is set explicitly here. */
.om-sheet {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  border: 0; padding: 0; width: min(520px, calc(100% - 32px)); max-width: 520px; max-height: 85vh; max-height: 85dvh;
  border-radius: 20px; background: var(--white); color: var(--ink); box-shadow: 0 20px 50px rgba(53,36,44,.25);
  overflow: hidden;
}
.om-sheet::backdrop { background: rgba(45,30,38,.5); }
@media (max-width: 639px) {
  /* Phones: a bottom sheet, full width, anchored to the bottom. */
  .om-sheet { inset: auto 0 0 0; margin: 0; width: 100%; max-width: 100%; max-height: 90vh; max-height: 90dvh; border-radius: 20px 20px 0 0; }
}
/* The page behind an open sheet does not scroll. */
html.om-modal-open, html.om-modal-open body { overflow: hidden; }
.om-sheet-inner { display: flex; flex-direction: column; max-height: inherit; min-height: 0; }
.om-sheet-body { flex: 1 1 auto; min-height: 0; }
.om-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 6px; }
.om-sheet-head h2 { font-size: 23px; }
.om-sheet-body { padding: 0 18px 8px; overflow-y: auto; overscroll-behavior: contain; }
.om-sheet-price { color: var(--soft); font-weight: 700; margin-bottom: 8px; }
.om-group { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.om-group legend { display: flex; align-items: baseline; justify-content: space-between; width: 100%; gap: 10px; padding: 0 0 6px; font-weight: 800; font-size: 16px; }
.om-rule { font-size: 13px; font-weight: 700; color: #5A4651; white-space: nowrap; }   /* 8.0:1 on white */
.om-rule.is-req { color: var(--pink-press); }
.om-group.is-bad .om-rule { color: #B0213F; }
.om-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15.5px; font-weight: 600; }
.om-opt:last-of-type { border-bottom: 0; }
.om-opt input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--pink-deep); }
.om-opt span { flex: 1; }
.om-opt em { font-style: normal; color: var(--soft); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.om-opt:has(input:disabled) { color: #80696F; cursor: default; }
/* Long choice groups fold into a row: name + current choice; tap to open (one at a time). The options stay in
   the form inside a [hidden] panel. Short groups keep the plain layout above. */
.om-acc { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.om-acc + .om-acc { margin-top: 8px; }
.om-group legend.om-acc-legend { display: block; float: left; width: 100%; padding: 0; }   /* float: legend sits inside the border */
.om-acc-legend + * { clear: both; }
.om-acc-btn {
  width: 100%; min-height: 60px; display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; margin: 0;
  font: inherit; color: var(--ink); text-align: left; background: none; border: 0; border-radius: 13px; cursor: pointer;
}
.om-acc-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-acc-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-acc-name { font-weight: 800; font-size: 16px; line-height: 1.25; }
.om-acc-sum { color: #5A4651; font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.om-acc-req { flex-shrink: 0; font-size: 12.5px; font-weight: 800; color: var(--pink-press); background: var(--pink-tint); border-radius: 999px; padding: 3px 9px; }
.om-acc-req[hidden] { display: none; }
.om-acc-chev { flex-shrink: 0; width: 10px; height: 10px; margin: 0 4px 4px 2px; border: solid var(--soft); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); transition: transform .18s ease, margin .18s ease; }
.om-acc.is-open .om-acc-chev { transform: rotate(-135deg); margin: 4px 4px 0 2px; }
.om-acc-panel { padding: 0 12px 4px 14px; }
.om-acc-panel[hidden] { display: none; }
.om-acc-rule { margin: 0 0 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.om-acc-panel .om-opt:last-child { border-bottom: 0; }
.om-acc.is-bad { border-color: #B0213F; }
.om-acc.is-bad .om-acc-req { color: #fff; background: #B0213F; }
@media (prefers-reduced-motion: reduce) { .om-acc-chev { transition: none; } }
.om-sheet .field { margin-top: 16px; }
.om-sheet-foot { display: flex; gap: 12px; align-items: center; padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.om-qty { display: flex; align-items: center; gap: 4px; }
.om-qty output { min-width: 26px; text-align: center; font-weight: 800; font-size: 17px; }
.om-qbtn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid #D9C3CB; background: var(--white); color: var(--ink);
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.om-qbtn:disabled { opacity: .45; cursor: default; }
.om-qbtn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.om-add { flex: 1; padding-left: 12px; padding-right: 12px; }

/* phones: price under the name so long names keep their width; tighter totals in the sheet */
@media (max-width: 899px) {
  .om-summary { padding: 12px 16px; margin-bottom: 10px; }
  .om-summary .ck-sumrow { font-size: 14.5px; }
  .om-summary .ck-total { font-size: 17px; margin-top: 6px; padding-top: 6px; }
}

/* ---- slim sticky category bar (shown once the tile grid has scrolled away) ---- */
.om-catbar { position: sticky; top: 64px; z-index: 30; height: 0; }
@media (max-width: 767px) { .om-catbar { top: 107px; } .nav-js .om-catbar { top: 61px; } }
.om-catbar-list {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  padding: 8px 22px; margin: 0 -22px; background: rgba(255,248,240,.97); border-bottom: 1px solid var(--line);
  display: none;
}
@media (min-width: 900px) { .om-catbar-list { margin: 0; padding: 8px 0; } }
.om-catbar-list::-webkit-scrollbar { display: none; }
.om-catbar.is-on .om-catbar-list { display: flex; }
.om-catchip {
  flex-shrink: 0; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; min-height: 40px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; white-space: nowrap;
}
.om-catchip[aria-pressed="true"] { background: var(--berry); border-color: var(--berry); color: #fff; }
.om-catchip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
#om-sections { scroll-margin-top: 58px; }   /* room for the sticky category bar */

/* ---- item pop-up extras ---- */
.om-allergen { color: #5A4651; font-size: 13.5px; line-height: 1.45; margin: 10px 0 4px; padding: 10px 12px; background: var(--cream); border-radius: 10px; }
.om-sheet-photo, .om-sec-photo, .om-thumb { object-fit: cover; object-position: center; }

/* ---- checkout: compact order summary ---- */
.om-mini { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 16px; background: var(--white); }
.om-mini > summary { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 800; list-style: none; }
.om-mini > summary::-webkit-details-marker { display: none; }
.om-mini > summary::after { content: "▾"; color: var(--soft); margin-left: 4px; }
.om-mini[open] > summary::after { content: "▴"; }
.om-mini > summary > span:first-child { flex: 1; }
.om-mini-lines { list-style: none; padding: 0 14px; margin: 0; }
.om-mini-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.om-mini-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.om-mini-det { grid-column: 1 / -1; color: var(--soft); font-size: 13px; }
.om-mini-edit { display: block; margin: 0 14px 10px; padding-left: 0; }
/* Checkout foot: tip picker + Subtotal / Tax / Tip / Total + Place order, all on one screen. */
.om-cart-foot .om-tip { margin: 0 0 10px; border: 0; padding: 0; min-width: 0; }
.om-cart-foot .om-tip[hidden] { display: none; }
.om-cart-foot .om-tip legend { font-size: 13px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.om-cart-foot .om-chips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.om-cart-foot .om-chip[data-k="custom"] { grid-column: auto; }
.om-cart-foot .om-chip { min-height: 44px; padding: 6px 4px; font-size: 13.5px; }
.om-cart-foot .om-chip small { font-size: 11px; }
.om-cart-foot .om-tipcustom { margin: 8px 0 0; }
@media (max-width: 899px) {
  .om-cart.is-checkout .om-summary { padding: 8px 14px; margin-bottom: 8px; }
  .om-cart.is-checkout .om-summary .ck-sumrow { font-size: 13.5px; line-height: 1.45; }
  .om-cart.is-checkout .om-summary .ck-total { font-size: 16px; margin-top: 4px; padding-top: 4px; }
}
