@font-face {
  font-family: "Barlow Condensed";
  src: url("assets/fonts/BarlowCondensed-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* The storefront shares legacy dialog behavior, but has its own visual system. */
.storefront {
  --ink: #252b29;
  --muted: #626a66;
  --paper: #fafaf6;
  --surface: #fff;
  --line: #cbd0ca;
  --espresso: #195b57;
  --roast: #195b57;
  --cream: #eaf1ed;
  --gold: #195b57;
  --shadow: none;
  --radius-sm: 4px;
  --radius-md: 5px;
  --radius-lg: 5px;
  --focus-ring: 0 0 0 3px #195b5726;
  --heading-font: "Barlow Condensed", "Arial Narrow", sans-serif;
  --dialog-gutter: 24px;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.storefront h1, .storefront h2 { font-family: var(--heading-font); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; margin: 0; }
.storefront h2 { font-size: clamp(32px, 3.4vw, 46px); }
.storefront button, .storefront a, .storefront input, .storefront select { -webkit-tap-highlight-color: transparent; }
.storefront button { cursor: pointer; }
.storefront .button { min-height: 46px; padding: 11px 24px; border: 1px solid var(--espresso); border-radius: 4px; box-shadow: none; font-size: 16px; font-weight: 700; line-height: 1.35; transform: none; text-transform: none; letter-spacing: 0; }
.storefront .button.primary { background: var(--espresso); color: #fff; }
.storefront .button.primary:hover:not(:disabled) { background: #124642; border-color: #124642; transform: none; }
.storefront .button.secondary { background: transparent; color: var(--espresso); }
.storefront .button:disabled { cursor: not-allowed; }
.storefront .page-width { width: min(1240px, calc(100% - 96px)); margin-inline: auto; }
html:has(.storefront) { scroll-padding-top: 112px; }
.storefront section[id] { scroll-margin-top: 16px; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; background: var(--espresso); color: #fff; z-index: 200; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.cafe-header { display: flex; align-items: center; gap: 34px; min-height: 112px; position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.cafe-brand { margin-right: auto; flex-shrink: 0; }
.cafe-brand img { width: 148px; height: 108px; object-fit: contain; mix-blend-mode: multiply; }
.cafe-nav { display: flex; gap: 36px; align-items: center; font-size: 16px; font-weight: 700; }
.cafe-nav a { padding: 12px 0; }
.cafe-nav a:hover { color: var(--espresso); text-decoration: underline; text-underline-offset: 5px; }
.cafe-cart { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 7px 13px; background: transparent; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); white-space: nowrap; }
.cafe-cart strong { font-weight: 400; }
.cafe-cart svg, .cafe-info svg, .cafe-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.cafe-cart:hover { background: var(--cream); }
.nav-toggle { display: none; }

.cafe-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 440px; padding-top: 12px; }
.cafe-hero-copy { align-self: center; padding: 42px 30px 50px 12px; }
.cafe-eyebrow { margin: 0 0 23px; color: var(--espresso); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.cafe-hero h1 { font-size: clamp(40px, 4.8vw, 67px); }
.hero-subtitle { margin: 18px 0 28px; font-size: clamp(18px, 1.7vw, 24px); }
.cafe-hero-copy .button { min-width: 240px; }
.cafe-hero-media { position: relative; width: 100%; min-width: 0; aspect-ratio: 3 / 2; overflow: hidden; align-self: center; }
/* Show a 1020 × 680 crop of the original 1200 × 900 photograph, starting at (180, 130). */
.cafe-hero-photo { display: block; position: absolute; width: calc(100% * 1200 / 1020); max-width: none; height: auto; left: calc(-100% * 180 / 1020); top: calc(-100% * 130 / 680); }
.cafe-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.cafe-info > * { display: inline-flex; gap: 10px; align-items: center; }
.cafe-info > * + * { padding-left: 22px; border-left: 1px solid var(--line); }
.cafe-info svg { color: var(--espresso); width: 20px; height: 20px; }

.cafe-menu { padding-top: 40px; }
.menu-topline { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.cafe-search { display: flex; align-items: center; gap: 10px; width: 340px; padding: 0 12px; border: 1px solid #939d96; border-radius: 4px; }
.cafe-search input { width: 100%; min-width: 0; min-height: 42px; border: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; box-shadow: none; }
.cafe-search:focus-within { outline: 2px solid var(--espresso); outline-offset: 2px; }
.cafe-filters, .cafe-subfilters { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: thin; }
.cafe-filters { border-bottom: 1px solid #b3bcb5; }
.cafe-filters button, .cafe-subfilters button { flex: 0 0 auto; background: none; color: var(--ink); border: 0; border-bottom: 3px solid transparent; padding: 12px 6px; font-size: 15px; font-weight: 600; }
.cafe-filters button.active { border-bottom-color: var(--espresso); color: var(--espresso); }
.cafe-filters button:hover, .cafe-subfilters button:hover { color: var(--espresso); background: #eaf1ed; }
.cafe-subfilters:empty { display: none; }
.cafe-subfilters { gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.cafe-subfilters button { padding: 6px 8px; font-size: 13px; border-radius: 3px; }
.cafe-subfilters button.active { background: var(--cream); color: var(--espresso); border-bottom-color: var(--espresso); }
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
.menu-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.menu-item-copy { min-width: 0; }
.menu-item h3 { margin: 0; font-family: var(--heading-font); font-size: 25px; line-height: 1.15; }
.menu-item p { margin: 5px 0 0; font-size: 13px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-action { display: flex; align-items: center; gap: 16px; flex: 0 0 auto; }
.menu-item-price { font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 600; }
.menu-item-price small { font-size: 12px; font-weight: 400; }
.menu-add { width: 40px; height: 40px; border: 1px solid #646e67; border-radius: 4px; background: transparent; color: var(--ink); font-size: 26px; font-weight: 400; line-height: 1; }
.menu-add:hover:not(:disabled) { border-color: var(--espresso); background: var(--cream); color: var(--espresso); }
.menu-add:disabled { width: auto; padding: 0 8px; font-size: 12px; white-space: nowrap; }
.storefront .menu-pagination { margin-top: 20px; padding: 0; gap: 15px; font-size: 13px; color: var(--muted); border: 0; border-radius: 0; background: transparent; }
.storefront .menu-pagination button { min-height: 38px; padding: 6px 15px; background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); box-shadow: none; }
.storefront .menu-pagination button:hover:not(:disabled) { background: var(--cream); }
.menu-signoff { display: flex; gap: 24px; align-items: center; justify-content: center; margin: 40px 0 0; color: var(--espresso); font-size: 14px; font-style: italic; letter-spacing: .09em; }
.menu-signoff::before, .menu-signoff::after { content: ""; flex: 1; height: 1px; background: #7a9690; }
.storefront .menu-empty { grid-column: 1 / -1; padding: 32px 8px; }
.storefront .menu-loading { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--espresso); }
.menu-loading > span { flex: 0 0 18px; height: 18px; border: 2px solid var(--line); border-top-color: currentColor; border-radius: 50%; animation: menu-spinner 800ms linear infinite; }
@keyframes menu-spinner { to { transform: rotate(360deg); } }

.cafe-retail { padding: 64px 0 46px; }
.retail-heading { margin-bottom: 26px; }
.retail-heading p { margin: 9px 0 0; font-size: 18px; }
.retail-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.retail-other-products { grid-column: 1 / -1; }
.retail-product { min-width: 0; }
.retail-product > img { width: 100%; height: 300px; object-fit: contain; background: #ecece5; padding: 12px; }
.retail-product-info { padding: 15px 0 0; }
.retail-product-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.retail-product h3 { font-family: var(--heading-font); font-size: 27px; line-height: 1.1; margin: 0; }
.retail-product-price { white-space: nowrap; font-size: 19px; font-weight: 700; }
.retail-product p { margin: 6px 0 13px; font-size: 14px; }
.retail-product .retail-add { min-height: 40px; padding: 7px 24px; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); background: transparent; font-size: 14px; font-weight: 600; margin-top: 12px; }
.retail-product p + .retail-add { margin-top: 0; }
.menu-add:disabled, .retail-product .retail-add:disabled { color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.retail-add:hover { background: var(--cream); }
.cafe-story { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding: 36px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-figure { margin: 0; min-width: 0; }
.story-carousel { position: relative; width: 100%; aspect-ratio: 1.85; overflow: hidden; background: #e6e9e3; }
.story-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.story-slide.is-active { opacity: 1; }
.story-slide img { width: 100%; height: 100%; object-fit: contain; }
.story-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; font-size: 12px; color: var(--muted); }
.story-caption > span { font-style: italic; }
.story-controls { display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.story-controls button { min-width: 32px; min-height: 34px; padding: 4px 6px; border: 0; color: var(--espresso); background: transparent; font-size: 14px; }
.story-controls button:hover { background: var(--cream); }
.story-controls [data-story-pause] { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.story-copy .cafe-eyebrow { margin-bottom: 16px; }
.story-copy h2 { font-size: clamp(32px, 3.5vw, 46px); }
.story-copy > p:last-child { font-size: 21px; line-height: 1.45; max-width: 31ch; margin: 14px 0 0; }
.cafe-visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 42px 0 54px; }
.visit-location { min-width: 0; border-right: 1px solid var(--line); padding-right: 48px; }
.visit-location address { font-style: normal; line-height: 1.6; margin: 20px 0 8px; }
.visit-location address strong { font-size: 18px; }
.visit-location > p { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.visit-location .button { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; width: fit-content; max-width: 100%; padding-inline: 18px; }
.visit-contact { display: grid; gap: 10px; max-width: 400px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.visit-contact > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: baseline; }
.visit-contact dt { font-size: 13px; color: var(--muted); }
.visit-contact dd { margin: 0; font-size: 15px; }
.visit-phone, .visit-email, .catering-contact a { color: var(--espresso); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.visit-contact a:hover { text-decoration-thickness: 2px; }
.visit-hours { min-width: 0; }
.visit-hours dl { margin: 20px 0 0; font-size: 15px; }
.visit-hours dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.visit-hours dd { margin: 0; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.catering-contact { color: var(--muted); font-size: 13px; margin: 22px 0 0; }
.cafe-footer { background: #195b57; color: #fff; }
.footer-top { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.footer-top img { width: 110px; height: 84px; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.6); mix-blend-mode: screen; }
.footer-top p { border-left: 1px solid #8aaba6; padding-left: 24px; font-size: 14px; }
.footer-top nav { display: flex; gap: 25px; margin-left: auto; font-size: 14px; }
.cafe-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid #8aaba6; display: flex; justify-content: space-between; gap: 20px; padding-top: 13px; padding-bottom: 17px; font-size: 12px; }

/* Checkout stays in a side panel, with one scroll area between the header and pay button. */
.storefront :is(.cart-drawer, .customize-modal, .order-confirmation-modal) { top: var(--overlay-top, 0px); bottom: auto; height: var(--overlay-height, 100dvh); }
.storefront.modal-open .scroll-indicator { display: none; }
.storefront .cart-drawer { padding: 0; align-items: stretch; justify-content: flex-end; background: #172a2770; }
.storefront .cart-panel { width: min(560px, calc(100% - 16px)); height: 100%; max-height: 100%; background: var(--paper); color: var(--ink); border-radius: 0; border: 0; border-left: 1px solid var(--line); box-shadow: -12px 0 40px #172a271a; animation: checkout-slide-in 220ms ease-out; }
@keyframes checkout-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.storefront .cart-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: max(12px, env(safe-area-inset-top)) 24px 16px; border-color: var(--line); gap: 6px 12px; }
.storefront .cart-title { display: flex; align-items: center; gap: 16px; min-width: 0; }
.checkout-logo { width: 74px; height: 56px; object-fit: contain; mix-blend-mode: multiply; }
.storefront .cart-header h2 { font: 700 34px/1 var(--heading-font); letter-spacing: -.015em; border-left: 1px solid var(--line); padding-left: 16px; }
.storefront .cart-header > .icon-button { grid-column: 2; grid-row: 1; }
.checkout-back { grid-column: 1 / -1; padding: 4px 0 0; border: 0; background: transparent; color: var(--espresso); font-size: 13px; font-weight: 600; margin-right: auto; }
.checkout-back:hover { text-decoration: underline; text-underline-offset: 4px; }
.storefront .icon-button { border: 0; border-radius: 4px; background: transparent; font-size: 28px; }
.storefront .icon-button:hover { background: var(--cream); }
.storefront .checkout-body { display: block; flex: 1 1 0; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #8d9790 transparent; scroll-padding-block: 20px; }
.storefront .checkout-order { padding: 22px 24px; background: transparent; border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); }
.storefront .checkout-details { padding: 24px; }
.storefront .checkout-order-toggle { font: 700 28px/1.2 var(--heading-font); }
.storefront .checkout-order-preview { display: block; font: 400 12px/1.4 Arial, sans-serif; color: var(--muted); margin-left: auto; white-space: nowrap; }
.storefront .checkout-order-toggle > svg { margin-left: 0; stroke: var(--ink); }
.storefront .checkout-order-content { padding-top: 20px; }
.storefront .cart-item { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 20px 0; border-color: var(--line); }
.storefront .cart-item:first-child { padding-top: 0; }
.storefront .cart-item-copy { min-width: 0; overflow-wrap: anywhere; }
.storefront .cart-item h3 { font: 700 25px/1.1 var(--heading-font); }
.storefront .cart-item p { color: var(--muted); font-size: 13px; }
.storefront .cart-item-price { color: var(--ink); font-size: 16px; font-weight: 600; }
.storefront .cart-item-actions { margin-top: 13px; gap: 20px; }
.storefront .quantity { gap: 0; border: 1px solid #8d9790; border-radius: 4px; overflow: hidden; }
.storefront .quantity button { border: 0; border-radius: 0; color: var(--ink); width: 34px; height: 34px; font-size: 20px; }
.storefront .quantity span { min-width: 32px; border-inline: 1px solid var(--line); line-height: 34px; }
.storefront .quantity button:hover { background: var(--cream); }
.storefront .checkout-text-button { color: var(--espresso); font-size: 13px; }
.storefront .past-orders-link { min-height: 44px; text-align: left; }
.storefront :is([data-order-history], [data-checkout-content], [data-close-order-history], .checkout-footer, .order-history-save)[hidden] { display: none; }
.storefront .past-orders { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px max(var(--dialog-gutter), env(safe-area-inset-right)) 20px max(var(--dialog-gutter), env(safe-area-inset-left)); }
.past-orders-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.past-orders-heading h3 { margin: 0; font: 700 24px/1.15 var(--heading-font); }
.past-orders-heading span, .past-order-name small, .past-order-details, .past-orders-message { color: var(--muted); font-size: 13px; }
.past-orders-message { overflow-wrap: anywhere; }
.past-orders-message:empty { margin: 0; }
.past-order { --order-date-width: 40px; --order-gap: 8px; border-top: 1px solid var(--line); padding: 8px 0 12px; }
.past-order:last-child { border-bottom: 1px solid var(--line); }
.past-order-heading { display: grid; grid-template-columns: var(--order-date-width) minmax(0, 1fr) auto auto; align-items: center; gap: var(--order-gap); font-size: 14px; }
.past-order-name { min-width: 0; overflow-wrap: anywhere; }
.past-order-name small { display: block; }
.past-order-date { display: block; padding: 5px 0; text-align: center; color: var(--espresso); background: var(--cream); border-radius: 4px; font-size: 11px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }
.past-order-date strong { display: block; font-size: 16px; }
.storefront .past-order-reorder { min-height: 44px; padding-inline: 3px; font: inherit; font-weight: 600; }
.past-order-price { white-space: nowrap; }
.past-order-copy { margin-inline-start: calc(var(--order-date-width) + var(--order-gap)); }
.past-order-details { margin: 4px 0 0; overflow-wrap: anywhere; }
.past-order-details:not(.expanded) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.past-order-more { min-height: 44px; }
.order-history-save { margin-top: 8px; }
.order-history-save button { min-height: 44px; }
.order-history-save small { display: block; color: var(--muted); }
.storefront .customize-reorder-note { margin: 0 0 16px; padding: 10px 12px; background: var(--cream); color: var(--ink); font-size: 14px; }
.storefront .cart-summary { font-size: 14px; gap: 9px; color: var(--ink); padding-top: 18px; }
.storefront .cart-summary .total { color: var(--ink); border-color: var(--line); font: 700 28px/1.1 var(--heading-font); padding-top: 16px; }
.storefront .cart-summary .total strong { font-weight: 700; }
.storefront .checkout-section-heading h3 { font: 700 28px/1.1 var(--heading-font); }
.storefront .checkout-pickup-heading p { color: var(--ink); font-size: 14px; margin-top: 8px; }
.storefront .cart-checkout-form label { min-width: 0; grid-template-columns: minmax(0, 1fr); color: var(--ink); font-size: 13px; font-weight: 600; }
.storefront .cart-checkout-form input, .storefront .cart-checkout-form select, .storefront .cart-checkout-form textarea { border-color: #9ca59e; background: transparent; color: var(--ink); font-size: 16px; border-radius: 4px; font-weight: 400; }
.storefront .cart-checkout-form input[type="datetime-local"] { display: block; max-width: 100%; -webkit-appearance: none; font-size: 14px; }
.storefront .cart-checkout-form input[type="datetime-local"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.storefront .cart-checkout-form input::placeholder, .storefront .cart-checkout-form textarea::placeholder { color: #757d77; }
.storefront .cart-checkout-form :is(input, select, textarea):focus { outline-color: var(--espresso); }
.storefront .checkout-notes { color: var(--espresso); font-size: 14px; }
.storefront .checkout-notes summary span, .storefront .checkout-optional { color: var(--muted); font: italic 13px/1.4 Arial, sans-serif; }
.storefront .cart-tip, .storefront .square-payment { border-color: var(--line); margin-top: 22px; padding-top: 20px; }
.storefront .tip-option, .storefront .tip-custom-field { color: var(--ink); border-color: #9ca59e; font-size: 15px; min-height: 43px; }
.storefront .tip-option.selected { border: 2px solid var(--espresso); background: var(--cream); color: var(--espresso); font-weight: 700; padding: 7px 2px; }
.storefront .tip-option:hover { border-color: var(--espresso); }
.storefront .tip-custom-field:focus-within { border-color: var(--espresso); outline-color: var(--espresso); }
.storefront .tip-custom-field input { font-size: 14px; color: var(--ink); }
.storefront .checkout-payment-provider { color: var(--muted); font-size: 12px; }
.storefront .payment-status { color: var(--muted); font-size: 13px; }
.storefront .payment-status[data-state="error"] { color: #9b392e; }
.storefront .checkout-footer { padding: 14px 24px max(16px, env(safe-area-inset-bottom)); border-color: var(--line); background: var(--paper); }
.storefront .button.full.square-pay-button { color: #fff; background: var(--espresso); border-color: var(--espresso); font-size: 18px; font-weight: 700; min-height: 52px; }
.storefront .square-pay-button strong { font-weight: 700; }
.storefront .apple-pay-section[hidden] { display: none; }
.storefront .apple-pay-button { display: block; width: 100%; height: 48px; border: 0; border-radius: 4px; cursor: pointer; -webkit-appearance: -apple-pay-button; -apple-pay-button-type: pay; -apple-pay-button-style: black; }
.storefront .apple-pay-button:disabled { opacity: .5; cursor: default; }
.storefront .apple-pay-button:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.storefront .payment-method-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.storefront .payment-method-divider::before, .storefront .payment-method-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.storefront .button.full.square-pay-button:hover:not(:disabled) { background: #124642; border-color: #124642; }

.storefront .customize-panel, .storefront .order-confirmation-panel { background: var(--paper); border-radius: 5px; box-shadow: none; }
.storefront .customize-panel { max-height: min(880px, calc(var(--overlay-height, 100dvh) - 48px)); }
.storefront .order-confirmation-panel { max-height: min(760px, calc(var(--overlay-height, 100dvh) - 48px)); }
.storefront .customize-header { flex: 0 0 auto; max-height: 45%; overflow-y: auto; align-items: flex-start; align-items: safe center; gap: 20px; padding: max(20px, env(safe-area-inset-top)) 24px 20px; }
.customize-product-photo { --photo-width: 112px; --photo-height: 136px; display: block; position: relative; width: var(--photo-width); height: var(--photo-height); overflow: hidden; flex: 0 0 auto; }
.customize-product-photo[hidden] { display: none; }
.customize-product-image { display: block; width: 100%; height: 100%; object-fit: contain; background: transparent; }
.customize-product-photo.is-framed { --photo-scale: min(calc(var(--photo-width) / var(--crop-width)), calc(var(--photo-height) / var(--crop-height))); }
.customize-product-photo.is-framed .customize-product-image {
  position: absolute;
  max-width: none;
  width: calc(var(--photo-scale) * var(--source-width));
  height: calc(var(--photo-scale) * var(--source-height));
  left: calc((var(--photo-width) - var(--photo-scale) * var(--crop-width)) / 2 - var(--photo-scale) * var(--crop-x));
  top: calc((var(--photo-height) - var(--photo-scale) * var(--crop-height)) / 2 - var(--photo-scale) * var(--crop-y));
}
.storefront .customize-header > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.storefront .customize-header > .icon-button { align-self: flex-start; flex: 0 0 auto; }
.storefront .customize-header .eyebrow { color: var(--espresso); background: transparent; padding: 0; border: 0; font-size: 10px; }
.storefront .customize-header h2 { font: 700 34px/1.1 var(--heading-font); margin-top: 5px; }
.storefront .customize-header p { font-size: 13px; }
.storefront .customize-body { flex: 1 1 auto; min-height: 0; overscroll-behavior: contain; gap: 24px; padding: 22px 24px; }
.storefront .modifier-group { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 20px; }
.storefront .modifier-group legend { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.storefront .modifier-group legend small { color: var(--muted); letter-spacing: 0; text-transform: none; font-size: 12px; font-weight: 400; }
.storefront .modifier-group-dropdown { display: block; }
.storefront .modifier-dropdown summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; list-style: none; }
.storefront .modifier-dropdown summary::-webkit-details-marker { display: none; }
.storefront .modifier-dropdown summary:hover { background: var(--cream); }
.storefront .modifier-dropdown summary:focus-visible { outline: 2px solid var(--espresso); outline-offset: 3px; }
.storefront .modifier-dropdown-copy { display: grid; gap: 4px; min-width: 0; }
.storefront .modifier-dropdown-title { color: var(--ink); font-size: 15px; font-weight: 700; }
.storefront .modifier-dropdown-copy small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.storefront .modifier-dropdown-chevron { flex: 0 0 auto; width: 8px; height: 8px; margin: 0 3px 4px; border-right: 1.5px solid var(--espresso); border-bottom: 1.5px solid var(--espresso); transform: rotate(45deg); }
.storefront .modifier-dropdown[open] .modifier-dropdown-chevron { margin-bottom: 0; transform: rotate(225deg); }
.storefront .modifier-dropdown > .modifier-options { max-height: none; overflow: visible; margin-top: 10px; padding: 3px; }
.storefront .modifier-option { background: transparent; border-radius: 4px; min-height: 44px; }
.storefront .modifier-option:has(input:checked) { background: var(--cream); border-color: var(--espresso); }
.storefront .modifier-option strong { color: var(--espresso); font-size: 13px; }
.storefront .modifier-option > span { min-width: 0; overflow-wrap: anywhere; }
.storefront .special-instructions { background: transparent; padding: 0; border: 0; }
.storefront .special-instructions textarea { background: transparent; border-radius: 4px; border-color: #9ca59e; font-size: 16px; }
.storefront .customize-footer { flex: 0 0 auto; flex-direction: row; align-items: center; background: var(--paper); }
.storefront .customize-footer strong { color: var(--ink); }
.storefront .order-confirmation-panel h2 { font-family: var(--heading-font); }

@media (max-width: 1080px) {
  .storefront .page-width { width: calc(100% - 56px); }
  .cafe-header { gap: 25px; }
  .cafe-nav { gap: 26px; }
  .cafe-info { font-size: 12px; gap: 12px; }
  .cafe-info > * + * { padding-left: 12px; }
  .cafe-info svg { display: none; }
  .menu-list { column-gap: 30px; }
  .menu-item { gap: 12px; padding-inline: 0; }
  .menu-item-action { gap: 10px; }
  .menu-item h3 { font-size: 23px; }
  .story-caption { flex-wrap: wrap; }
  .footer-top { gap: 16px; }
  .footer-top p { padding-left: 16px; max-width: 220px; }
  .footer-top nav { gap: 16px; }
}

@media (max-width: 760px) {
  .storefront { --dialog-gutter: 18px; }
  .storefront h2 { font-size: 28px; }
  html:has(.storefront) { scroll-padding-top: 76px; }
  .storefront .page-width { width: calc(100% - 36px); }
  .storefront section[id] { scroll-margin-top: 12px; }
  .cafe-header { min-height: 76px; gap: 14px; }
  .cafe-brand img { width: 96px; height: 72px; }
  .cafe-cart { margin-left: auto; padding: 6px 9px; font-size: 14px; min-height: 40px; }
  .cafe-cart svg { width: 20px; height: 20px; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; align-items: center; width: 36px; height: 42px; border: 0; background: transparent; padding: 4px; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }
  .cafe-nav { display: none; position: absolute; top: 100%; left: -18px; right: -18px; background: var(--paper); padding: 12px 22px 20px; border-bottom: 1px solid var(--line); }
  .cafe-nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
  .cafe-nav a { padding: 12px 0; }
  .cafe-hero { grid-template-columns: 1fr; min-height: 0; padding-top: 0; }
  .cafe-hero-copy { padding: 22px 0 20px; }
  .cafe-eyebrow { font-size: 11px; margin-bottom: 12px; }
  .cafe-hero h1 { font-size: clamp(34px, 8.5vw, 44px); line-height: 1.06; }
  .hero-subtitle { font-size: 16px; margin: 12px 0 18px; }
  .cafe-hero-copy .button { width: 100%; min-height: 46px; }
  .cafe-hero-media { max-width: 520px; justify-self: center; }
  .cafe-info { padding: 15px 0; justify-content: center; }
  .cafe-info > :not(:first-child) { display: none; }
  .cafe-info > a { font-size: 13px; }
  .cafe-info svg { display: block; }
  .cafe-menu { padding-top: 26px; }
  .menu-topline { flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
  .cafe-search { width: 100%; }
  .cafe-search input { min-height: 40px; font-size: 16px; }
  .cafe-filters { flex-wrap: wrap; gap: 0 16px; overflow: visible; }
  .cafe-filters button { font-size: 13px; padding: 12px 2px; }
  .cafe-subfilters { flex-wrap: wrap; gap: 8px; overflow: visible; }
  .menu-list { grid-template-columns: 1fr; }
  .menu-item { padding: 15px 0; gap: 16px; }
  .menu-item h3 { font-size: 22px; }
  .menu-item p { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 12px; }
  .menu-item-price { font-size: 14px; }
  .menu-item-price small { font-size: 11px; }
  .menu-item-action { gap: 12px; }
  .menu-add { width: 36px; height: 40px; font-size: 23px; }
  .storefront .menu-pagination { align-items: flex-start; }
  .storefront .menu-pagination p { font-size: 11px; }
  .menu-signoff { gap: 12px; font-size: 11px; letter-spacing: .04em; margin-top: 28px; }
  .cafe-retail { padding: 38px 0 26px; }
  .retail-heading { margin-bottom: 20px; }
  .retail-heading p { font-size: 15px; }
  .retail-products { grid-template-columns: 1fr; gap: 0; }
  .retail-product { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .retail-product:first-child { padding-top: 0; }
  .retail-product:last-child { border-bottom: 0; }
  .retail-product > img { width: 96px; height: 112px; padding: 4px; }
  .retail-product-info { padding: 0; }
  .retail-product-heading { gap: 8px; align-items: flex-start; }
  .retail-product h3 { font-size: 22px; }
  .retail-product-price { font-size: 14px; }
  .retail-product p { font-size: 12px; margin: 8px 0; }
  .retail-product .retail-add { padding: 7px 15px; font-size: 12px; min-height: 36px; }
  .cafe-story { grid-template-columns: 1fr; gap: 24px; padding: 24px 0 30px; }
  .story-figure { width: 100%; max-width: 520px; margin-inline: auto; }
  .story-carousel { aspect-ratio: 4 / 3; }
  .story-copy .cafe-eyebrow { margin-bottom: 10px; }
  .story-copy h2 { font-size: 28px; }
  .story-copy > p:last-child { font-size: 16px; margin-top: 12px; }
  .cafe-visit { grid-template-columns: 1fr; gap: 28px; padding: 28px 0 36px; }
  .visit-location { border-right: 0; padding: 0; }
  .visit-location address { margin-top: 14px; }
  .visit-contact { max-width: none; }
  .visit-hours { border-top: 1px solid var(--line); padding-top: 22px; }
  .visit-hours dl { font-size: 15px; }
  .visit-email { font-size: 15px; }
  .footer-top { flex-wrap: wrap; gap: 10px 20px; padding-top: 14px; padding-bottom: 22px; }
  .footer-top img { width: 100px; height: 70px; }
  .footer-top p { flex: 1; font-size: 13px; margin: 0; max-width: none; }
  .footer-top nav { width: 100%; margin: 0; justify-content: space-between; gap: 12px; font-size: 13px; }
  .footer-bottom { font-size: 10px; gap: 12px; }
  .footer-bottom > a { white-space: nowrap; }

  .storefront .cart-header { padding: max(8px, env(safe-area-inset-top)) 18px 12px; }
  .storefront .cart-title { gap: 12px; }
  .checkout-logo { width: 68px; height: 50px; }
  .storefront .cart-header h2 { font-size: 28px; padding-left: 12px; }
  .storefront .checkout-order { padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .storefront .checkout-order-toggle { font: 700 16px/1.3 Arial, sans-serif; gap: 10px; }
  .storefront .checkout-order-preview { font-size: 12px; }
  .storefront .checkout-order-content { padding-top: 24px; }
  .storefront .checkout-details { padding: 22px 18px 26px; }
  .storefront .cart-checkout-form .form-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .storefront .cart-checkout-form input[type="datetime-local"] { font-size: 16px; }
  .storefront .checkout-section-heading h3 { font-size: 25px; }
  .storefront .checkout-pickup-heading p { font-size: 13px; }
  .storefront .cart-checkout-form input, .storefront .cart-checkout-form select { min-height: 44px; }
  .storefront .tip-controls { grid-template-columns: 1fr; }
  .storefront .tip-custom-field input { font-size: 16px; }
  .storefront .checkout-footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); }
  .storefront .button.full.square-pay-button { min-height: 48px; font-size: 16px; }
  .storefront .cart-item { grid-template-columns: minmax(0, 1fr) auto; }
  .storefront .cart-item h3 { font-size: 22px; }
  .storefront .cart-summary .total { font-size: 26px; }
  .storefront .customize-modal { padding: 0; }
  .storefront .customize-panel { height: 100%; max-height: 100%; border: 0; border-radius: 0; }
  .storefront .order-confirmation-panel { max-height: calc(var(--overlay-height, 100dvh) - 16px); }
  .storefront .customize-header { gap: 12px; padding: max(16px, env(safe-area-inset-top)) 18px 16px; }
  .customize-product-photo { --photo-width: 84px; --photo-height: 108px; }
  .storefront .customize-header h2 { font-size: 26px; }
  .storefront .customize-header .customize-description { font-size: 12px; }
  .storefront .customize-header > .icon-button { width: 32px; height: 36px; align-self: flex-start; }
  .storefront .customize-body { padding: 20px 18px; }
  .storefront .modifier-options { grid-template-columns: 1fr; }
  .storefront .customize-footer { padding: 14px 18px max(14px, env(safe-area-inset-bottom)); }
  .storefront .customize-footer strong { font-size: 20px; }
  .storefront .customize-footer .button { width: auto; min-width: 0; padding-inline: 20px; }
}
@media (max-width: 480px) {
  .cafe-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 6px; }
  .cafe-filters button { min-height: 44px; padding: 8px 2px; line-height: 1.2; }
}
.storefront :is(.cart-header, .checkout-order, .checkout-details, .checkout-footer, .customize-header, .customize-body, .customize-footer) { padding-left: max(var(--dialog-gutter), env(safe-area-inset-left)); padding-right: max(var(--dialog-gutter), env(safe-area-inset-right)); }
@media (prefers-reduced-motion: reduce) {
  .story-slide { transition: none; }
  .storefront .cart-panel { animation: none; }
  .menu-loading > span { animation: none; }
}

/* Compact order confirmation, with an optional, smaller details form. */
.storefront .order-confirmation-modal { align-items: center; padding: 24px; }
.storefront .order-confirmation-panel { width: min(480px, 100%); max-height: calc(var(--overlay-height, 100dvh) - 48px); gap: 0; padding: 28px; overflow-y: auto; overscroll-behavior: contain; }
.storefront .order-confirmation-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.storefront .order-confirmation-status { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; background: transparent; border: 0; color: var(--espresso); font: 700 11px/1.4 Arial, sans-serif; letter-spacing: 1px; }
.storefront .order-confirmation-status > span:first-child { font-size: 20px; font-weight: 400; }
.storefront .order-confirmation-top .icon-button { position: static; display: grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: var(--muted); font: 400 26px/1 Arial, sans-serif; }
.storefront .order-confirmation-top .icon-button:hover { background: var(--cream); }
.storefront .order-confirmation-copy { display: block; padding: 0; }
.storefront .order-confirmation-copy h2 { max-width: none; margin: 0 0 8px; font: 700 36px/1.08 var(--heading-font); letter-spacing: 0; overflow-wrap: anywhere; }
.storefront .order-confirmation-copy p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.storefront .order-confirmation-pickup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; margin: 24px 0 18px; padding: 17px 0; border-block: 1px solid var(--line); }
.storefront .order-confirmation-pickup > span { color: var(--muted); font-size: 13px; }
.storefront .order-confirmation-pickup strong { font: 700 27px/1.15 var(--heading-font); overflow-wrap: anywhere; }
.storefront .order-confirmation-pickup[hidden], .storefront .order-confirmation-location[hidden] { display: none; }
.storefront .order-confirmation-location { margin-bottom: 24px; }
.storefront .order-confirmation-pickup[hidden] + .order-confirmation-location { margin-top: 24px; }
.storefront .order-confirmation-location strong { font-size: 14px; }
.storefront .order-confirmation-location p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.storefront .order-confirmation-return { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 44px; padding: 10px 16px; font-size: 14px; }
.storefront .order-confirmation-location[hidden] + .order-confirmation-return { margin-top: 24px; }
.storefront .order-remember-details { margin-top: 16px; }
.storefront .order-remember-details summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 7px 0; color: var(--espresso); cursor: pointer; list-style: none; font-size: 13px; line-height: 1.5; }
.storefront .order-remember-details summary::-webkit-details-marker { display: none; }
.storefront .order-remember-chevron { flex: 0 0 auto; width: 7px; height: 7px; margin: 0 4px 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.storefront .order-remember-details[open] .order-remember-chevron { margin-bottom: 0; transform: rotate(225deg); }
.storefront .order-signup-form { gap: 10px; padding: 10px 0 0; border: 0; }
.storefront .order-signup-fields { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 10px; width: 100%; max-width: 360px; }
.storefront .order-signup-fields label { gap: 4px; font-size: 12px; line-height: 1.4; font-weight: 400; letter-spacing: 0; text-transform: none; }
.storefront .order-signup-fields input { height: 36px; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font: 400 14px/1.4 Arial, sans-serif; }
.storefront .order-signup-form .button { justify-self: start; width: auto; min-height: 36px; padding: 7px 14px; font-size: 13px; }
.storefront .order-signup-form small { font-size: 12px; line-height: 1.5; }
.storefront .order-signup-form small:empty { display: none; }
@media (max-width: 600px) {
  .storefront .order-confirmation-modal { align-items: center; padding: 12px; }
  .storefront .order-confirmation-panel { padding: 22px 20px; max-height: calc(var(--overlay-height, 100dvh) - 24px); }
  .storefront .order-confirmation-copy h2 { font-size: 32px; }
  .storefront .order-confirmation-top { margin-bottom: 16px; }
  .storefront .order-confirmation-top .icon-button { width: 44px; height: 44px; }
  .storefront .order-signup-fields input { height: 44px; min-height: 44px; font-size: 16px; }
  .storefront .order-remember-details summary, .storefront .order-signup-form .button { min-height: 44px; }
}
@media (max-width: 380px) {
  .storefront .order-confirmation-pickup { align-items: flex-start; flex-direction: column; }
  .storefront .order-signup-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (pointer: coarse) {
  .storefront .order-signup-fields input { height: 44px; min-height: 44px; font-size: 16px; }
  .storefront .order-remember-details summary, .storefront .order-signup-form .button { min-height: 44px; }
}
