/* ORTOVERO shop (G3): the approved phone board, then tablet and computer. Loaded after base.css; no inline styles (CSP). */

.shop { --crate: 118px; --card-r: 14px; --bar: 64px; background: var(--ground); padding-bottom: calc(var(--bar) + 40px + env(safe-area-inset-bottom, 0px)); }
.shop svg path { vector-effect: non-scaling-stroke; }
:where(.shop) button { font: inherit; color: inherit; cursor: pointer; }
.shop .top svg, .shop .svc svg, .shop .add svg, .shop div.stepper svg, .shop .bag-bar > svg, .shop .sheet .round svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Awning: green and white stripes with a scalloped edge, dropping in once */
.awning { position: relative; z-index: 3; animation: drop 720ms var(--ease) both; }
.awning-stripes { height: 44px; background: repeating-linear-gradient(90deg, var(--green) 0, var(--green) 22px, #FFFFFF 22px, #FFFFFF 44px); }
.awning-edge { height: 12px; background: radial-gradient(circle at 11px 0, var(--green) 10.5px, transparent 11px) 0 0 / 44px 12px repeat-x, radial-gradient(circle at 33px 0, #FFFFFF 10.5px, transparent 11px) 0 0 / 44px 12px repeat-x; filter: drop-shadow(0 3px 2px rgba(var(--ink-rgb), .18)); }
@keyframes drop { 0% { transform: translateY(-100%); } 65% { transform: translateY(7%); } 100% { transform: translateY(0); } }

/* Header: wordmark, search, bag */
.top { display: flex; align-items: center; gap: 8px; min-height: 60px; padding: 4px 16px 0 20px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; font-size: 30px; line-height: 1; font-weight: 900; font-variation-settings: 'wdth' 72; letter-spacing: -.02em; color: var(--green-ink); text-decoration: none; }
.round { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); }
.round-bag { background: var(--sand); color: var(--ink); }
.round-bag.bump { animation: bump 380ms var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.count { position: absolute; top: -4px; right: -4px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 2px solid var(--ground); border-radius: 11px; background: var(--tomato); color: #FFFFFF; font-size: 12px; font-weight: 800; }
.search { display: none; position: relative; align-items: center; }
.search svg { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; min-height: 48px; padding: 0 16px 0 44px; border: 1.5px solid var(--line); border-radius: 24px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.search input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.top.searching { flex-wrap: wrap; }
.top.searching .search { display: flex; order: 5; flex: 1 0 100%; margin: 6px 0 4px; animation: rise var(--t) var(--ease) both; }

/* Hero */
.hero { padding: 12px 20px 4px; }
.hero h1 { font-size: clamp(44px, 12vw, 76px); line-height: .92; font-variation-settings: 'wdth' 64; letter-spacing: -.01em; max-width: 13ch; }
.lead { margin-top: 12px; max-width: 46ch; font-size: 16px; line-height: 1.45; color: var(--muted); }
.services { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.services li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 15px; font-weight: 700; }
.svc { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); color: var(--green-ink); }
.area { flex-basis: 100%; padding-left: 46px; margin-top: -4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
/* D187: the "not charged from a spend of" notice under the delivery line */
.free-note { color: var(--green-ink); font-weight: 700; }
.season { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 18px; padding: 10px 14px; border-radius: 10px; background: var(--lemon); color: var(--ink); font-size: 14.5px; line-height: 1.35; }
.season strong { font-weight: 800; }
.note { margin-top: 14px; padding: 10px 14px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-fg); font-size: 14.5px; font-weight: 600; }

/* Category chips: stay on top while scrolling */
.chips { position: sticky; top: 0; z-index: 2; display: flex; gap: 8px; margin-top: 14px; padding: 10px 16px; overflow-x: auto; background: var(--ground); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: flex; align-items: center; gap: 8px; flex-shrink: 0; height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--surface); font-size: 15px; font-weight: 700; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.chip span { font-size: 12.5px; font-weight: 600; opacity: .75; }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Most requested: a row that scrolls sideways */
.best { padding-top: 14px; }
.best h2, .shelf-head h2 { font-size: 26px; font-variation-settings: 'wdth' 70; }
.best h2 { margin: 0 20px 10px; }
.best-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 14px; scroll-snap-type: x proximity; scrollbar-width: none; }
.best-row::-webkit-scrollbar { display: none; }
.best-row .card { flex: 0 0 164px; scroll-snap-align: start; }

/* Shelves */
.shelf { padding: 16px 16px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.shelf-head span { font-size: 13.5px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nothing, .empty-shop { margin: 24px 20px; padding: 22px; border-radius: var(--r-l); background: var(--surface); color: var(--muted); text-align: center; }
.empty-shop h2 { color: var(--text); font-size: 28px; margin-bottom: 8px; }

/* The crate card */
.card { display: flex; flex-direction: column; min-width: 0; border-radius: var(--card-r); background: var(--surface); overflow: hidden; box-shadow: 0 10px 22px -16px rgba(var(--ink-rgb), .45); animation: land 420ms var(--ease) both; }
@keyframes land { 0% { transform: translateY(-14px) scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
.crate { position: relative; display: grid; place-items: center; height: var(--crate); overflow: hidden; }
.crate::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; background: repeating-linear-gradient(180deg, var(--wood) 0, var(--wood) 6px, var(--wood-dark) 6px, var(--wood-dark) 8px); }
.crate svg { position: relative; z-index: 1; width: 88px; height: 88px; margin-bottom: 12px; }
.crate img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.tint-fruit { background: var(--tint-a); }
.tint-veg { background: var(--tint-b); }
.tint-other { background: #E7ECF2; }
.rank { position: absolute; z-index: 3; left: 10px; top: 6px; font-size: 34px; line-height: 1; font-weight: 900; font-variation-settings: 'wdth' 62; color: var(--tomato); }
.card-body { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; padding: 10px 10px 8px 12px; }
.card-body h3 { font-size: 15.5px; font-weight: 800; line-height: 1.2; font-variation-settings: 'wdth' 90; letter-spacing: 0; overflow-wrap: anywhere; }
.card-body p { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 10px 8px; padding: 3px; border-radius: 12px; background: var(--ground); }
.mode button { height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 800; transition: background-color 180ms ease, color 180ms ease; }
.mode button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(var(--ink-rgb), .18); }
.act { padding: 0 10px 10px; }
.add { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 44px; border: 1.5px solid var(--green); border-radius: 10px; background: var(--surface); color: var(--green-ink); font-size: 15px; font-weight: 800; transition: background-color var(--t-fast) var(--ease); }
.add:active { background: var(--green-soft); }
/* D183: the quantity stepper is a div (the order's steps are ol.stepper, base.css). A long word of the piece («1
   confezione», «10 vaschette») never pushes the + out of the box: first the buttons give up to 16 px each, then
   shop.js (ovFit) writes that quantity narrower (fit-1) or smaller, on two lines if needed (fit-2) */
div.stepper { display: flex; align-items: center; justify-content: space-between; height: 44px; border-radius: 10px; background: var(--green); color: #FFFFFF; animation: pop 220ms ease-out both; }
div.stepper[hidden] { display: none; }
div.stepper button { display: grid; place-items: center; flex: 0 1 44px; width: 44px; min-width: 28px; height: 44px; padding: 0; border: 0; background: transparent; color: #FFFFFF; }
div.stepper output { flex: 0 0.01 auto; font-size: 15px; font-weight: 800; line-height: 1.05; text-align: center; white-space: nowrap; }
div.stepper output.fit-1 { font-variation-settings: 'wdth' 75; }
div.stepper output.fit-2 { font-size: 12px; font-variation-settings: 'wdth' 66; white-space: normal; }
@keyframes pop { 0% { transform: scale(.72); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* Footer */
.foot { margin: 36px 20px 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 6px; padding: 0 16px; border-radius: 22px; background: var(--surface); color: var(--green-ink); font-weight: 800; text-decoration: none; align-self: flex-start; }
.call svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Bag bar at the bottom */
.bag-bar { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 12px; height: var(--bar); max-width: 560px; margin: 0 auto; padding: 0 8px 0 16px; border-radius: 18px; background: var(--ink); color: #FFFFFF; box-shadow: 0 14px 30px -12px rgba(var(--ink-rgb), .6); animation: rise 320ms var(--ease) both; }
.bag-bar[hidden] { display: none; }
.bag-text { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.bag-text strong { font-size: 15px; }
.bag-text span { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.go { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--sand); color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
@keyframes rise { 0% { transform: translateY(28px); opacity: 0; } 100% { transform: none; opacity: 1; } }

/* The bag: a sheet from the bottom on phones, a drawer from the right on computers */
.sheet { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; max-height: 88vh; max-height: 88dvh; margin: 0 auto; padding: 0; border: 0; border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -18px 50px -20px rgba(0, 0, 0, .45); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up 320ms var(--ease) both; }
.sheet::backdrop { background: rgba(15, 26, 20, .5); }
@keyframes sheet-up { 0% { transform: translateY(100%); } 100% { transform: none; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 16px 10px 20px; }
.sheet-head h2 { font-size: 28px; font-variation-settings: 'wdth' 70; }
.sheet .round { background: var(--ground); }
.lines { list-style: none; margin: 0; padding: 0 16px; overflow-y: auto; flex: 1 1 auto; }
.line { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-thumb { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; overflow: hidden; }
.line-thumb svg { width: 40px; height: 40px; }
.line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.line-name { display: flex; flex-direction: column; min-width: 0; }
.line-name strong { font-size: 15.5px; overflow-wrap: anywhere; }
.line-name span { font-size: 13px; color: var(--muted); }
/* D183: in the bag the stepper grows with its quantity (it was 150 px: «1 vaschetta» cut the +), the name gives way */
.line div.stepper { width: auto; min-width: 150px; }
.sheet-empty { padding: 8px 20px 20px; color: var(--muted); }
.sheet-empty[hidden] { display: none; }
.sheet-foot { padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.sheet-foot .hint { font-size: 13.5px; color: var(--muted); }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .go { flex: 1; background: var(--green); color: #FFFFFF; }
.ghost { height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 800; }

/* The picture that flies into the bag */
.flyer { position: fixed; z-index: 30; pointer-events: none; }

/* Tablet */
@media (min-width: 700px) {
  .shop { --crate: 138px; }
  .hero { padding: 18px 28px 8px; }
  .chips, .best-row { padding-left: 24px; padding-right: 24px; }
  .best h2 { margin-left: 28px; }
  .shelf { padding: 22px 24px 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .best-row .card { flex-basis: 190px; }
  .crate svg { width: 100px; height: 100px; }
  .services { flex-direction: row; flex-wrap: wrap; gap: 10px 22px; }
  .area { flex-basis: auto; padding-left: 0; margin-top: 0; }
  .foot { margin: 44px 28px 0; }
}

/* Computer: centred page, search always visible, bag as a drawer on the right */
@media (min-width: 1100px) {
  .shop > main, .top, .foot { max-width: 1240px; margin-left: auto; margin-right: auto; }
  .top { padding: 10px 28px 0; gap: 14px; }
  .search { display: flex; flex: 0 1 420px; }
  .round-search { display: none; }
  .hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px 48px; align-items: end; padding-top: 28px; }
  .hero h1 { grid-row: span 2; font-size: 84px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .shop { --crate: 150px; }
  .best-row .card { flex-basis: 214px; }
  .sheet { inset: 0 0 0 auto; width: 440px; max-width: 440px; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 22px 0 0 22px; }
  @keyframes sheet-up { 0% { transform: translateX(100%); } 100% { transform: none; } }
}
@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Dark scheme: crates keep their light colours, like real ones */
@media (prefers-color-scheme: dark) {
  .round-bag, .go { color: var(--ink); }
  .chip[aria-pressed='true'] { background: var(--green); border-color: var(--green); }
  .bag-bar { border: 1px solid var(--line); }
  .card { box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .8); }
}

@media (prefers-reduced-motion: reduce) {
  .shop *, .shop *::before, .shop *::after { animation: none !important; transition: none !important; }
}

/* Toast with "Annulla" (after "Ripeti ordine") */
.shop .toast { position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; width: max-content; max-width: min(560px, calc(100% - 32px)); margin: 0 auto; padding: 12px 12px 12px 18px; border-radius: 16px; background: var(--ink); color: #FFFFFF; font-weight: 700; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); animation: rise var(--t) var(--ease) both; }
.shop .toast button { flex-shrink: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--sand); color: var(--ink); font-weight: 800; }

/* Customers' area */
.shop-account { padding-bottom: 40px; }
.account { width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 0; display: flex; flex-direction: column; gap: 16px; }
.account-head { padding: 4px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.account-head h1, .panel-card h1 { font-size: clamp(38px, 10vw, 56px); line-height: .95; font-variation-settings: 'wdth' 66; }
.panel-card { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow); }
.panel-card h2 { font-size: 24px; font-variation-settings: 'wdth' 72; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.field input { min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 500; }
.field input:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.go-wide { width: 100%; height: 52px; background: var(--green); color: #FFFFFF; font-size: 16px; }
.alert { padding: 12px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err-fg); font-weight: 700; }
.small { font-size: 14px; line-height: 1.45; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--green-ink); font-weight: 800; text-decoration: none; align-self: flex-start; }
.pill { min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 22px; background: var(--surface); font-weight: 800; }
.top form { margin: 0; }
.orders { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.order-row a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--r-l); background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform var(--t-fast) var(--ease); }
.order-row a:active { transform: scale(.99); }
.order-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.order-top strong { font-size: 17px; }
.order-when { font-size: 14.5px; font-weight: 600; }
.order-lines { font-size: 13.5px; color: var(--muted); }
.state { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 14px; background: var(--green-soft); color: var(--ok-fg); font-size: 13px; font-weight: 800; white-space: nowrap; }
.state-preparing, .state-accepted { background: var(--warn-bg); color: var(--warn-fg); }
.state-ready { background: var(--ok-bg); color: var(--ok-fg); }
.state-rejected, .state-cancelled { background: var(--err-bg); color: var(--err-fg); }
.order-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-weight: 600; }
.order-items { list-style: none; margin: 0; padding: 0; }
.order-items li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-items li:last-child { border-bottom: 0; }
.item-name { font-weight: 700; overflow-wrap: anywhere; }
.item-name em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--err-fg); }
.item-qty { font-weight: 800; white-space: nowrap; }
.order-items .gone .item-name, .order-items .gone .item-qty { color: var(--muted); }
.more { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 14px; border: 1.5px dashed var(--line); color: var(--green-ink); font-weight: 800; text-decoration: none; }
.shop-account .top .round-bag { margin-left: 0; }
.shop-account .top form + .round-bag, .shop-account .top .brand + .round-bag { margin-left: 0; }

/* Checkout (G4, approved board) */
.shop .stripe { height: 8px; background: repeating-linear-gradient(90deg, var(--green) 0, var(--green) 22px, #FFFFFF 22px, #FFFFFF 44px); }
.shop-checkout { padding-bottom: 32px; }
.co-top { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 12px; max-width: 680px; margin: 0 auto; }
.co-bag { font-size: 15px; font-weight: 700; }
.co { display: flex; flex-direction: column; gap: 22px; max-width: 680px; margin: 0 auto; padding: 4px 20px 32px; }
.co-head h1 { font-size: clamp(38px, 11vw, 56px); line-height: .95; font-variation-settings: 'wdth' 64; }
.co-head .small { margin-top: 10px; }
.co-form { display: flex; flex-direction: column; gap: 22px; }
.co h2 { font-size: 24px; font-variation-settings: 'wdth' 70; }
.co-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mode-card { position: relative; }
.mode-card input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.mode-card span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.mode-card svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mode-card strong { font-size: 16px; }
.mode-card small { font-size: 13.5px; font-weight: 600; opacity: .85; }
.mode-card input:checked + span { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.mode-card input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.co-info { margin-top: -10px; }
.co-info:empty { display: none; }
.co-when { display: flex; flex-direction: column; gap: 12px; }
.co-mode { display: flex; flex-direction: column; gap: 12px; }
.co-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.day strong { font-size: 16px; }
.day small { font-size: 13px; font-weight: 600; opacity: .85; }
.co-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 54px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); }
.slot strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.slot small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.day[aria-pressed='true'], .slot[aria-pressed='true'] { background: var(--green); border-color: var(--green); color: #FFFFFF; }
.slot:disabled { opacity: .45; cursor: not-allowed; }
.slot:disabled strong { text-decoration: line-through; }
.co-data { display: flex; flex-direction: column; gap: 12px; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.co-grid-city { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.co-address { display: flex; flex-direction: column; gap: 12px; }
/* D186: how a delivery is paid at the door, two cards like the ways of receiving */
.co-pay { margin: 4px 0 0; padding: 0; border: 0; }
.co-pay legend { padding: 0; margin-bottom: 8px; font-weight: 800; font-size: 15px; }
.pay-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pay-card span { padding: 12px 14px; }
.field textarea { min-height: 76px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; font-weight: 500; resize: vertical; }
.field input[readonly] { background: var(--ground); color: var(--muted); }
.field input[aria-invalid='true'] { border-color: var(--err-fg); }
.field-error { margin-top: -6px; color: var(--err-fg); font-size: 14px; font-weight: 700; }
.remember { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; }
.remember input { width: 22px; height: 22px; accent-color: var(--green); }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.co-summary { display: flex; flex-direction: column; gap: 12px; }
.co-box { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface); }
.co-box strong { font-size: 15px; }
.co-lines { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.co-lines li { display: flex; justify-content: space-between; gap: 12px; }
.co-lines li span:last-child { font-weight: 800; white-space: nowrap; }
.go-big { height: 58px; border-radius: 14px; font-size: 17px; box-shadow: 0 12px 24px -14px rgba(var(--green-rgb), .9); }
.go-big:disabled { opacity: .7; cursor: progress; }
.co-legal { text-align: center; font-size: 12.5px; }

/* Order sent */
.shop-thanks { padding-bottom: 0; }
.thanks { display: flex; flex-direction: column; gap: 18px; max-width: 560px; min-height: calc(100vh - 56px); margin: 0 auto; padding: 36px 24px 28px; }
.tick { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--green); color: #FFFFFF; animation: pop 420ms var(--ease) both; }
.tick svg { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 480ms 260ms ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.thanks h1 { font-size: 40px; line-height: .95; font-variation-settings: 'wdth' 64; }
.number { animation: rise 400ms 200ms var(--ease) both; }
.number .big { font-size: clamp(76px, 26vw, 104px); line-height: .9; font-weight: 900; font-variation-settings: 'wdth' 62; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.number .small:last-child { margin-top: 8px; }
.thanks-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: var(--surface); animation: rise 400ms 320ms var(--ease) both; }
.thanks-row { display: flex; gap: 12px; align-items: flex-start; }
.thanks-row div { display: flex; flex-direction: column; font-size: 14.5px; color: var(--muted); }
.thanks-row strong { font-size: 16px; color: var(--text); }
.thanks-note { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.45; }
.thanks-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.thanks-actions .back { align-self: center; }
@media (prefers-reduced-motion: reduce) { .tick svg { stroke-dashoffset: 0; } }

/* Found in Chromium: "Accedi" inside a sentence was a 15 px tall tap target. Inline links get invisible padding. */
.shop .small a { padding: 6px 2px; margin: -6px -2px; font-weight: 800; }
.tick-off { background: var(--muted); }

/* D42: "Rifai l'ultimo ordine" when the bag is empty (the last bag stays only in this browser) */
.last-order { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); animation: rise var(--t-slow) var(--ease) both; }
.last-order[hidden] { display: none; }
.last-text { display: flex; flex-direction: column; min-width: 0; }
.last-text small { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.go-small { height: 44px; padding: 0 16px; font-size: 15px; white-space: nowrap; }

/* D72: holiday screen (original drawing in the shop's colours, light and dark) */
.holiday { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; max-width: 760px; margin: 12px auto 40px; padding: 0 20px; text-align: center; animation: rise var(--t-slow) var(--ease) both; }
.holiday-art { width: min(100%, 460px); height: auto; margin: 0 auto; }
.h-sun { fill: var(--lemon); }
.h-rays path { stroke: var(--lemon); stroke-width: 5; stroke-linecap: round; fill: none; }
.h-sea { fill: #BFE3D0; }
.h-sand { fill: var(--tint-d); }
.h-pole { stroke: var(--ink); stroke-width: 5; stroke-linecap: round; fill: none; }
.h-canopy-a { fill: var(--green); }
.h-canopy-b { fill: var(--green); }
.h-canopy-c { fill: #FFFFFF; }
.h-edge { stroke: var(--ink); stroke-width: 3; fill: none; opacity: .18; }
.h-crate-box { fill: var(--wood); }
.h-crate-slat { stroke: var(--wood-dark); stroke-width: 3; fill: none; }
.h-fruit-a { fill: var(--tomato); }
.h-fruit-b { fill: #F29B30; }
.h-leaf { fill: var(--green); }
.h-sign { fill: #FFFFFF; stroke: var(--ink); stroke-width: 2; }
.h-sign-text { fill: var(--tomato); font: 900 12px/1 var(--font, sans-serif); letter-spacing: .08em; }
.holiday-kicker { display: inline-block; justify-self: center; padding: 6px 14px; border-radius: 16px; background: var(--lemon); color: var(--ink); font-weight: 900; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.holiday h1 { font-size: clamp(44px, 12vw, 76px); line-height: .92; font-variation-settings: 'wdth' 62; margin-top: 10px; }
.holiday-back { font-size: 19px; line-height: 1.45; margin-top: 12px; }
.holiday-note { font-size: 16px; color: var(--muted); line-height: 1.5; max-width: 34em; margin: 10px auto 0; }
.holiday-phone { margin-top: 16px; font-weight: 700; }
.holiday-phone a { color: var(--green-ink); font-weight: 900; }
@media (prefers-color-scheme: dark) {
  .h-sea { fill: #20443A; }
  .h-sand { fill: #4A4130; }
  .h-canopy-c { fill: #E8F1EA; }
  .h-sign { fill: #F7F5EE; }
}
.note-holiday { background: var(--lemon); color: var(--ink); }
.open-now { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); font-weight: 700; line-height: 1.45; }
.open-now[hidden] { display: none; }

/* D72: opening hours in the footer */
.hours { width: 100%; max-width: 420px; margin: 0 auto 12px; }
.hours summary { cursor: pointer; font-weight: 800; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.hours dl { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.hours dl div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-closed dd { color: var(--muted); }
.co-closed, .thanks-closed { padding: 12px 14px; border-radius: 12px; background: var(--lemon); color: var(--ink); font-weight: 700; line-height: 1.45; }
/* Found in Chromium (D72): the phone number on the holiday screen was a 17 px tall link on phones. */
.holiday-phone a { padding: 8px 4px; margin: -8px -4px; }

/* D79: the conditions box in the checkout, the legal pages, the legal links in the footer */
.terms { display: flex; align-items: flex-start; gap: 12px; margin: 14px 0 6px; font-size: 15px; line-height: 1.45; cursor: pointer; }
.terms input { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; accent-color: var(--green); }
.terms a { color: var(--green-ink); font-weight: 800; padding: 6px 0; margin: -6px 0; }
.legal { max-width: 760px; margin: 12px auto 40px; padding: 0 20px; }
.legal-kicker { font-size: 13px; font-weight: 800; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.legal h1 { font-size: clamp(34px, 8vw, 52px); line-height: .98; font-variation-settings: 'wdth' 70; margin-top: 8px; }
.legal-intro { font-size: 18px; line-height: 1.5; margin-top: 12px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.legal-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; color: var(--ink); text-decoration: none; }
.legal-nav a[aria-current='page'] { background: var(--green); color: #FFFFFF; }
.legal-section { margin-top: 26px; }
.legal-section h2 { font-size: 21px; line-height: 1.2; }
.legal-section p { margin-top: 10px; font-size: 16.5px; line-height: 1.6; max-width: 65ch; }
.legal-foot { margin-top: 32px; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 4px 0 10px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--muted); }
@media (prefers-color-scheme: dark) { .legal-nav a { color: var(--text); } }
/* D80: the company line at the foot of every shop page */
.foot-company { max-width: 640px; margin: 2px auto 8px; font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
/* D84: the total to pay on the confirmation and in the customer's order */
.thanks-total { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok-fg); font-weight: 700; }
.thanks-total strong { font-size: 20px; font-variant-numeric: tabular-nums; }
/* D85: the product opened from the showcase site (#p-12) is briefly marked */
.card.is-wanted { outline: 3px solid var(--lemon); outline-offset: 4px; transition: outline-color 600ms ease; }

/* D125: the service is not active today */
.note-off { background: var(--tint-e); border: 1px solid #f2c94c; color: #5a4300; font-weight: 600; }
/* D125: nobody can order today: the counter stays readable, the buttons that build an order are away */
.shop-off [data-add], .shop-off [data-stepper], .shop-off [data-bag-bar], .shop-off [data-bag-open], .shop-off [data-last] { display: none !important; }

/* D136: the cooling-off on the customer's side */
.rethink { margin: 18px 0 0; padding: 16px 18px; border-radius: 16px; background: var(--info-bg); color: var(--info-fg); text-align: left; }
.rethink h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: 0; word-spacing: .12em; }
.rethink .small { color: inherit; }
.rethink-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.rethink-actions form { margin: 0; }
.rethink-actions .go { background: var(--green); color: #FFFFFF; }
.rethink-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rethink-clock { flex: none; margin: 0; padding: 4px 10px; border-radius: 10px; background: var(--surface, #FFFFFF); color: var(--green); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; }
.rethink-edit { margin-bottom: 4px; }
.rethink-edit .alert { margin-top: 10px; }
.rethink-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 8px; font-size: 14px; }
.rethink-links form { margin: 0; }
.rethink-links a, .rethink-links .link-button { display: inline-flex; align-items: center; min-height: 44px; }
.link-button { padding: 0; border: 0; background: none; color: var(--err-fg); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rethink-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0 0 12px; padding: 12px 16px; border-radius: 14px; background: var(--info-bg); color: var(--info-fg); font-weight: 600; }
.rethink-bar a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.thanks-notice { margin-bottom: 14px; }
.alert-ok { background: var(--ok-bg); color: var(--ok-fg); }

/* D162: the customer's note on a line, in the bag sheet and on the order page */
.line-note-field { grid-column: 1 / -1; min-height: 44px; margin-top: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; }
.line-note-field::placeholder { color: var(--muted); }
.line-note { display: block; color: var(--muted); font-size: 13.5px; }


/* D167: an hour that is never available, or closed today, stays visible, crossed out. */
.slot.is-closed small { font-size: 10.5px; }
/* D171: saved lists */
.go-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.save-list { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.saved-list + .saved-list { margin-top: 14px; }
.saved-list form { margin-top: 10px; }
/* D175: the distance check under the address: waiting, within (the fee), beyond the last band, to be checked by the shop */
.reach { margin: 2px 0 0; padding: 10px 14px; border-radius: 12px; font-weight: 600; line-height: 1.4; }
.reach.is-wait { padding: 4px 0; color: var(--muted); font-weight: 500; }
.reach.is-ok { background: var(--ok-bg); color: var(--ok-fg); }
.reach.is-out { background: var(--err-bg); color: var(--err-fg); }
.reach.is-unverified { background: var(--warn-bg); color: var(--warn-fg); }
.reach-credit { display: block; margin-top: 4px; font-size: 12px; font-weight: 500; opacity: .8; }
[data-reach-pickup] { margin-top: 8px; }
/* D177: the amounts under the bag at the checkout: the fixed-price products, the fee, the total */
.co-money { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.co-money p { display: flex; justify-content: space-between; gap: 12px; margin: 0; }
.co-money-total { font-weight: 800; }
.co-money span:last-child { text-align: right; }
/* D183: what the total does not hold yet, one small sentence under it */
.co-money-note { font-size: 14px; line-height: 1.45; color: var(--muted); }
.co-money .co-money-note span { text-align: left; }
/* D177, D186: the price on a product card; on an offer the list price is struck through and «oggi» follows */
.card-price { margin-top: 2px; font-weight: 800; color: var(--text); }
.card-price s { margin-right: 2px; font-weight: 600; color: var(--muted); text-decoration-thickness: 1.5px; }
.card-price em { font-style: normal; font-weight: 700; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--green-ink); }

