/* Sonevaa Delights — online shop (sonevaa.com/shop). Uses the website's colours, type and buttons (site.css).
   The one new idea: an item without a photo yet shows a sweet-box label — its name in Lora on a pastel lid,
   with a thin inner border — never a stock picture. */

.sv-preview { background: var(--counter); color: var(--counter-ink); text-align: center; font-size: var(--t-s); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.sv-ann { background: var(--peach); color: var(--peach-ink); font-weight: 600; font-size: var(--t-s); text-align: center; }
.sv-ann .wrap { padding-block: 10px; }

/* how you get it: collection or delivery, and the basket */
.sv-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.sv-bar-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-block: 12px; min-height: 64px; }
.sv-seg { display: inline-flex; background: var(--blush); border-radius: 999px; padding: 4px; gap: 4px; }
.sv-seg button { border: 0; background: transparent; font: 600 var(--t-s)/1 var(--sans); color: var(--muted); padding: 11px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; }
.sv-seg button[aria-pressed="true"] { background: var(--paper); color: var(--heading); box-shadow: 0 1px 4px rgba(58, 42, 50, .14); }
.sv-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--t-s); min-width: 0; flex: 1 1 260px; }
.sv-where form { display: flex; gap: 8px; align-items: center; }
.sv-where input { width: 9.5em; }
.sv-where .ok { color: var(--vegan); font-weight: 600; }
.sv-where .no { color: var(--price); }
.sv-linkbtn { border: 0; background: none; padding: 4px; font: inherit; color: var(--heading); text-decoration: underline; cursor: pointer; }
.sv-basket { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--counter); color: var(--counter-ink); border-radius: 999px; padding: 10px 18px; font: 600 var(--t-s)/1 var(--sans); min-height: 44px; }
.sv-basket b { background: var(--counter-ink); color: var(--counter); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .78rem; padding: 0 6px; }
.sv-basket[aria-disabled="true"] { background: var(--blush); color: var(--muted); }
.sv-basket[aria-disabled="true"] b { background: var(--paper); color: var(--muted); }
.sv-in, .sv-checkout input[type="text"], .sv-checkout input[type="email"], .sv-checkout input[type="tel"], .sv-checkout textarea, .sv-checkout select {
  font: 400 var(--t-m)/1.3 var(--sans); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px; width: 100%; }
.sv-in:focus, .sv-checkout input:focus, .sv-checkout textarea:focus, .sv-checkout select:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.sv-where .sv-in { width: 9.5em; padding: 9px 12px; min-height: 42px; }
.btn.sv-sm { padding: 11px 16px; }

/* page structure */
.sv-head { margin-bottom: 0; }
.sv-main { padding-block: 24px 64px; }
.sv-crumb { font-size: var(--t-s); margin-bottom: 10px; }
.sv-crumb a { color: var(--heading); }
.sv-h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 18px; }
.sv-colnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.sv-colnav a { text-decoration: none; color: var(--heading); font-weight: 600; font-size: var(--t-s); border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 9px 16px; }
.sv-colnav a:hover { border-color: var(--pink); }
.sv-sec { padding-top: 28px; scroll-margin-top: 90px; }
.sv-sec-h { margin-bottom: 16px; max-width: 65ch; }
.sv-sec-h h2 { font-size: var(--t-2xl); }
.sv-sec-h h2 a { color: inherit; text-decoration: none; }
.sv-sec-h p { color: var(--muted); margin: 6px 0 0; }

/* product cards */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.sv-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sv-card-img { display: block; aspect-ratio: 1; background: var(--blush); text-decoration: none; }
.sv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sv-card-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sv-card h3 { font-size: 1.22rem; }
.sv-card h3 a { color: var(--heading); text-decoration: none; }
.sv-card h3 a:hover { text-decoration: underline; }
.sv-sum { margin: 0; color: var(--muted); font-size: var(--t-s); line-height: 1.5; }
.sv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sv-tag { font: 500 .74rem/1 var(--sans); color: var(--muted); background: var(--ground); border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; }
.sv-tag.out { color: var(--price); border-color: var(--pink); }
.sv-tag.post { color: var(--ink); border-color: var(--counter); }
.sv-card-f { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.sv-price { font: 600 var(--t-m)/1 var(--sans); color: var(--price); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-add { border: 1.5px solid var(--pink); background: var(--pink-soft); color: var(--heading); font: 600 var(--t-s)/1 var(--sans); border-radius: 999px; padding: 11px 18px; cursor: pointer; text-decoration: none; min-height: 42px; display: inline-flex; align-items: center; }
.sv-add:hover { background: var(--pink); color: var(--pink-ink); }
.sv-card.sv-off { opacity: .55; }
.sv-card.sv-off .sv-add { pointer-events: none; }

/* the sweet-box label: an item without a photo yet */
.sv-tile { display: grid; place-items: center; width: 100%; height: 100%; aspect-ratio: 1; padding: 14%; text-align: center; position: relative; }
.sv-tile::after { content: ""; position: absolute; inset: 9%; border: 1.5px solid currentColor; border-radius: 14px; opacity: .35; }
.sv-tile span { font: italic 500 clamp(1.15rem, 2.6vw, 1.55rem)/1.15 var(--serif); text-wrap: balance; }
.sv-tile.big span { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.sv-tile.t1 { background: var(--tag-2); color: var(--heading); }
.sv-tile.t2 { background: var(--tag-3); color: var(--vegan); }
.sv-tile.t3 { background: var(--tag-4); color: var(--gold-ink); }
.sv-tile.t4 { background: var(--peach); color: var(--peach-amt); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sv-tile.t1 { background: var(--blush); } :root:not([data-theme="light"]) .sv-tile.t2 { background: var(--mint); } :root:not([data-theme="light"]) .sv-tile.t3 { background: var(--gf-bg); } }
:root[data-theme="dark"] .sv-tile.t1 { background: var(--blush); } :root[data-theme="dark"] .sv-tile.t2 { background: var(--mint); } :root[data-theme="dark"] .sv-tile.t3 { background: var(--gf-bg); }

/* product page */
.sv-prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.sv-gal { position: sticky; top: 96px; }
.sv-gal-main { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; display: block; }
.sv-gal .sv-tile { border-radius: 20px; }
.sv-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.sv-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: none; }
.sv-thumbs button[aria-current="true"] { border-color: var(--pink); }
.sv-thumbs img { width: 72px; height: 72px; object-fit: cover; display: block; }
.sv-prod-b h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.sv-prod-b .lede { margin: 10px 0 0; color: var(--muted); }
.sv-prod-b .sv-tags { margin-top: 12px; }
.sv-buy { margin-top: 22px; padding: 18px; border-radius: 18px; background: var(--blush); }
.sv-opts { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sv-opts legend { font-weight: 600; font-size: var(--t-s); margin-bottom: 8px; padding: 0; }
.sv-opt { position: relative; cursor: pointer; }
.sv-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sv-opt > span { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 64px; }
.sv-opt input:checked + span { border-color: var(--counter); box-shadow: inset 0 0 0 1px var(--counter); }
.sv-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sv-buy-row { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.sv-qty { display: inline-flex; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
.sv-qty button { border: 0; background: none; width: 44px; height: 46px; font: 600 1.2rem/1 var(--sans); color: var(--heading); cursor: pointer; }
.sv-qty input { width: 3em; text-align: center; border: 0; background: none; font: 600 var(--t-m)/1 var(--sans); color: var(--ink); -moz-appearance: textfield; }
.sv-qty input::-webkit-inner-spin-button, .sv-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sv-buy-go { flex: 1; min-width: 200px; }
.sv-buy-go[disabled] { opacity: .6; cursor: not-allowed; }
.sv-buy-msg { margin: 10px 0 0; font-size: var(--t-s); min-height: 1.4em; }
.sv-buy-msg a { color: var(--heading); font-weight: 600; }
.sv-avail { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: var(--t-s); }
.sv-avail li { padding-left: 22px; position: relative; }
.sv-avail li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.sv-alg { margin-top: 22px; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); }
.sv-alg h2 { font-size: var(--t-l); margin-bottom: 8px; }
.sv-alg p { margin: 6px 0; }
.sv-info { margin-top: 14px; }
.sv-info .small { font-size: var(--t-s); }
.sv-nu-wrap { overflow-x: auto; }
.sv-nu { width: 100%; border-collapse: collapse; font-size: var(--t-s); font-variant-numeric: tabular-nums; }
.sv-nu th, .sv-nu td { padding: 7px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sv-nu th:first-child { text-align: left; padding-left: 0; font-weight: 600; white-space: normal; }
.sv-nu thead th { font-weight: 600; color: var(--heading); border-bottom: 1.5px solid var(--heading); vertical-align: bottom; }
.sv-nu tr.sub th { font-weight: 400; padding-left: 14px; }
.sv-nu tbody tr:last-child th, .sv-nu tbody tr:last-child td { border-bottom: 0; }
.sv-desc { margin-top: 22px; max-width: 65ch; }
.sv-desc p { margin: 0 0 12px; }
.sv-allergy { margin: 32px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--blush); font-size: var(--t-s); max-width: 75ch; }
.sv-allergy a, .sv-alg a { color: var(--heading); font-weight: 600; }

/* basket and checkout */
.sv-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.sv-steps { display: grid; gap: 18px; min-width: 0; }
.sv-step { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(16px, 3vw, 24px); min-width: 0; }
.sv-step h2 { font-size: var(--t-xl); margin-bottom: 12px; display: flex; align-items: baseline; gap: 10px; }
.sv-step h2 .n { font: 600 .82rem/1 var(--sans); background: var(--counter); color: var(--counter-ink); border-radius: 999px; width: 26px; height: 26px; display: inline-grid; place-items: center; flex: none; transform: translateY(-3px); }
.sv-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.sv-line:first-of-type { border-top: 0; }
.sv-line .im { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; }
.sv-line .im img, .sv-line .im .sv-tile { width: 64px; height: 64px; object-fit: cover; padding: 6px; }
.sv-line .im .sv-tile span { font-size: .62rem; }
.sv-line .im .sv-tile::after { inset: 4px; border-radius: 8px; }
.sv-line .t { min-width: 0; }
.sv-line .t b a { color: var(--ink); text-decoration: none; }
.sv-line .al { font-size: var(--t-xs); color: var(--muted); margin-top: 4px; line-height: 1.45; }
.sv-line .warn { font-size: var(--t-xs); color: var(--price); font-weight: 600; margin-top: 4px; }
.sv-line .ctl { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.sv-line .sv-qty button { width: 38px; height: 38px; }
.sv-line .sv-qty input { width: 2.4em; }
.sv-line .p { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sv-note-in { margin-top: 8px; }
.sv-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.sv-days button, .sv-times button { border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 12px; padding: 10px 14px; font: 600 var(--t-s)/1.2 var(--sans); cursor: pointer; min-height: 44px; flex: none; }
.sv-days button[aria-pressed="true"], .sv-times button[aria-pressed="true"] { background: var(--counter); border-color: var(--counter); color: var(--counter-ink); }
.sv-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.sv-times button small { display: block; font-weight: 400; font-size: .72rem; opacity: .8; margin-top: 3px; }
.sv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.sv-fields .full { grid-column: 1 / -1; }
.sv-field label { display: block; font-weight: 600; font-size: var(--t-s); margin-bottom: 6px; }
.sv-field .hint { font-size: var(--t-xs); color: var(--muted); margin-top: 4px; }
.sv-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-s); margin-top: 14px; }
.sv-check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--counter); }
.sv-check a { color: var(--heading); font-weight: 600; }
.sv-member { background: var(--mint); color: var(--vegan); border-radius: 12px; padding: 10px 14px; font-size: var(--t-s); margin-bottom: 14px; }
.sv-member a { color: var(--vegan); font-weight: 600; }
.sv-sum-box { position: sticky; top: 96px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; }
.sv-sum-box h2 { font-size: var(--t-l); }
.sv-kv { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-s); }
.sv-kv b { font-variant-numeric: tabular-nums; }
.sv-kv.tot { font-size: var(--t-l); border-top: 1.5px solid var(--line); padding-top: 10px; }
.sv-code { display: flex; gap: 8px; }
.sv-code input { text-transform: uppercase; }
.sv-msg { border-radius: 12px; padding: 10px 14px; font-size: var(--t-s); }
.sv-msg.bad { background: var(--peach); color: var(--peach-ink); }
.sv-msg.ok { background: var(--mint); color: var(--vegan); }
.sv-msg.info { background: var(--blush); color: var(--ink); }
.sv-pay { width: 100%; }
.sv-pay[disabled] { opacity: .55; cursor: not-allowed; }
.sv-safe { font-size: var(--t-xs); color: var(--muted); margin: 0; }
.sv-empty { text-align: center; padding: 40px 16px; }
.sv-empty h2 { margin-bottom: 8px; }
#sumup-card { min-height: 280px; margin-top: 10px; }
.sv-paybox { border: 2px solid var(--counter); }
.sv-trackbox { border: 2px solid var(--counter); }
.sv-trackno { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; overflow-wrap: anywhere; }

/* order page */
.sv-order { max-width: 760px; margin-inline: auto; display: grid; gap: 18px; }
.sv-order h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.sv-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: st; }
.sv-track li { position: relative; padding-top: 34px; font-size: var(--t-xs); font-weight: 600; color: var(--muted); text-align: center; }
.sv-track li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: var(--muted); display: grid; place-items: center; font-size: .78rem; }
.sv-track li::after { content: ""; position: absolute; top: 12px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.sv-track li:last-child::after { display: none; }
.sv-track li.done { color: var(--ink); }
.sv-track li.done::before { content: "✓"; background: var(--counter); color: var(--counter-ink); }
.sv-track li.now { color: var(--heading); }
.sv-track li.now::before { background: var(--pink); color: var(--pink-ink); }

/* phones: the basket button floats at the bottom */
@media (max-width: 860px) {
  .sv-prod, .sv-checkout { grid-template-columns: 1fr; }
  .sv-gal, .sv-sum-box { position: static; }
  .sv-fields { grid-template-columns: 1fr; }
  .sv-basket.float { position: fixed; z-index: 25; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); margin: 0; justify-content: space-between; box-shadow: 0 10px 30px -10px rgba(58, 42, 50, .5); }
  .sv-main { padding-bottom: 110px; }
  .sv-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .sv-card-b { padding: 12px; }
  .sv-card-f { flex-wrap: wrap; }
}
@media (max-width: 420px) { .sv-grid { grid-template-columns: 1fr 1fr; } .sv-card h3 { font-size: 1.05rem; } .sv-add { padding: 10px 14px; } }
@media (prefers-reduced-motion: no-preference) { .sv-card { transition: border-color .15s; } .sv-card:hover { border-color: var(--pink); } }

/* "How was your order?" on the order page */
.sv-rate { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; max-width: 420px; }
.sv-rate button { display: grid; justify-items: center; gap: 2px; padding: 10px 0 8px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--heading); cursor: pointer; min-height: 60px; font: inherit; }
.sv-rate button b { font-size: 1.3rem; line-height: 1; }
.sv-rate button span { font-size: .8rem; color: var(--muted); }
.sv-rate button.on { background: var(--pink-soft); border-color: var(--pink); }
.sv-rate button.on span { color: var(--heading); }
.sv-rate button:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
.sv-fb-l { display: block; font-weight: 600; margin: 0 0 6px; }
.sv-fb textarea { width: 100%; min-height: 84px; resize: vertical; }
.sv-fb-g { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ground); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sv-fb .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Ingredients and allergens page (/shop/?r=i&s=…): the QR code on the order letters and the buttons in the emails */
.sv-ingp { max-width: 820px; }
.sv-ing { margin-top: 28px; padding-top: 22px; border-top: 1.5px solid var(--line); scroll-margin-top: 16px; }
.sv-ing-h { display: flex; gap: 14px; align-items: center; }
.sv-ing-h h2 { font-size: var(--t-xl); margin: 0; }
.sv-ing-img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; flex: none; }
.sv-ing .sv-alg h3 { font-size: var(--t-m); margin: 0 0 6px; }
.sv-ing-more { margin: 12px 0 0; }
.sv-ing-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.sv-ing-nav a { text-decoration: none; color: var(--heading); font-weight: 600; font-size: var(--t-s); border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px; padding: 8px 14px; }
.sv-join { display: grid; gap: 4px; }
.sv-join .sv-pw { margin-top: 10px; max-width: 360px; }
.sv-join .sv-pw input { width: 100%; }
.sv-rw { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--ground); font-size: var(--t-s); line-height: 1.55; }
/* pick-up: as soon as it's ready, or a day and a time from one list */
.sv-when { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; margin: 0 0 12px; }
.sv-when-o { position: relative; cursor: pointer; }
.sv-when-o input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.sv-when-o > span { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 64px; }
.sv-when-o > span .muted { font-size: var(--t-s); }
.sv-when-o input:checked + span { border-color: var(--counter); box-shadow: inset 0 0 0 1px var(--counter); }
.sv-when-o input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sv-pick { display: flex; flex-direction: column; gap: 10px; }
.sv-lab { font-weight: 600; font-size: var(--t-s); margin-top: 4px; }
.sv-checkout select.sv-time, .sv-time { max-width: 22em; min-height: 48px; font-size: 1rem; }
.sv-opt-note { margin: -4px 0 14px; }
.sv-menu > .sv-sec-h { margin-bottom: 6px; }
.sv-sub { margin-top: 18px; }
.sv-sub h3 { font-size: var(--t-m, 1.15rem); margin: 0; }
