/* SNC calculator styles — green #00754A, dark green #1E3932, cream #F2F0EB. */
.snc-calculator{font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:#1e3932;background:#fff;border:1px solid #e5e0d8;border-radius:16px;padding:20px;max-width:960px;margin:0 auto}
.snc-search label,.snc-options label{font-weight:700;display:block;margin:10px 0 4px}
.snc-search input[type=search]{width:100%;padding:12px;border:2px solid #00754a;border-radius:999px;font-size:16px}
.snc-categories{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.snc-cat{border:1px solid #00754a;background:#fff;color:#00754a;border-radius:999px;padding:6px 14px;cursor:pointer}
.snc-cat.is-active{background:#00754a;color:#fff}
.snc-results{list-style:none;margin:0;padding:0}
/* Sticky top result bar (added 1.0.5, approved 15 Nov 2026 redesign):
   the calories the user just asked for, always visible at the top of the
   calculator without scrolling — desktop and mobile. It is sticky inside
   the calculator, so it pins while the drink list is on screen and scrolls
   away with the calculator once the user passes it. The header is sticky
   again (theme 1.0.7), so the bar pins BELOW it. 1.0.8 — ROOT CAUSE of the
   live bug (15 Nov 2026): the bar slid under the header while scrolling
   even though syncBarTop() measures the header height. The 1.0.7 chain
   assumed the header was ~57–68px tall, but it is really ~72px (the
   About Us dropdown is a <button>, and its 9px vertical padding makes
   the nav 42px tall: 14+14 padding + 2px border + 42px = 72px), so the
   old 68px fallback was 4px short, and the JS measurement ran only at
   init/load/resize — one early or stale measurement (before the theme
   stylesheet applied, the unstyled header is ~26px tall — 72-26 = 46px,
   exactly the bar's top row the live screenshot showed hidden) was
   never corrected. The offset is now right by construction: the theme
   owns the header height as --snc-header-h (72px desktop, per
   breakpoint) and the bar reads it here, so it clears the header even
   before/without JS. The 76px fallback covers a theme older than 1.0.8
   (72px header + the same 4px slack the preview used). --snc-admin-h
   adds the signed-in WordPress admin bar (32px desktop, 46px below
   782px, 0px logged out), so the bar stacks below the header instead
   of under it. syncBarTop() in calculator.js stays as the precise layer
   on top of this, now with a ResizeObserver that re-syncs the moment
   the header or admin bar changes height. The order summary below keeps
   the full order list and actions; it is no longer sticky itself, so
   the two can never overlap. */
.snc-result-bar{position:sticky;top:calc(var(--snc-header-h,76px) + var(--snc-admin-h,0px));z-index:900;background:#1e3932;color:#fff;border-radius:16px;border-bottom:3px solid #cba258;box-shadow:0 10px 26px rgba(18,43,37,.30);padding:12px 16px;margin-bottom:16px}
.snc-bar-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.snc-bar-name{font-weight:800;font-size:1.05rem;margin:0}
.snc-bar-config{font-size:.82rem;color:#cbe7d6;margin:2px 0 0}
.snc-bar-cal{font-size:2.15rem;font-weight:800;color:#fff;margin:0;line-height:1;white-space:nowrap}
.snc-bar-cal .snc-bar-unit{font-size:1rem;font-weight:700;color:#cba258}
.snc-bar-macros{font-size:.82rem;color:#cbe7d6;margin:8px 0 0}
.snc-bar-order{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;flex-wrap:wrap}
.snc-bar-order-total{font-size:.9rem;font-weight:700}
.snc-bar-view{background:#00754a;color:#fff;border:0;border-radius:999px;padding:8px 16px;font-weight:700;cursor:pointer;white-space:nowrap}
.snc-bar-badge{display:inline-block;background:#fff;color:#1e3932;border-radius:999px;padding:2px 8px;margin-left:6px;font-size:13px}
/* touch-action:manipulation on the rows (added 1.0.4, kept in 1.0.5):
   stops the phone double-tap zoom, so a quick second tap on a row adds
   a second copy (1.0.6 amended: every tap adds) instead of zooming. */
.snc-results button{width:100%;text-align:left;background:#f2f0eb;border:0;border-radius:8px;padding:10px;margin:4px 0;cursor:pointer;touch-action:manipulation}
.snc-results button span{color:#666;font-size:13px}
/* Row remove (×) next to the "✓ ADDED" tag (1.0.6 amended, user decision
   15 Nov 2026; tag moved out of the button in 1.0.7, user report the same
   day): the tag used to sit inside the full-width row button, right after
   the drink name on the left, while the × sat at the far right edge of the
   row — a wide gap between them. Now tag and × are both siblings of the
   row button inside the same <li> (flex row, vertically centred), so they
   sit adjacent at the right-hand end of the row, exactly as the user
   asked. A button inside a button is invalid HTML and browsers break it,
   so the tag and × are spans/buttons beside the row button, never inside
   it. 34px tap target, so the × is easy to hit on a phone. */
.snc-results li{display:flex;gap:6px;align-items:center}
.snc-results li>button{flex:1 1 auto;min-width:0;width:auto}
.snc-results span.snc-added-tag{flex:0 0 auto;display:inline-block;background:#00754a;color:#fff;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.snc-results button.snc-row-remove{flex:0 0 auto;width:34px;min-height:34px;margin:4px 0;background:#00754a;color:#fff;border:2px solid #00754a;border-radius:8px;font-size:18px;font-weight:700;line-height:1;padding:0;cursor:pointer}
.snc-results button.snc-row-remove:hover,.snc-results button.snc-row-remove:active{background:#005f3c;border-color:#005f3c;color:#fff}
.snc-builder{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:16px}
@media(max-width:640px){.snc-builder{grid-template-columns:1fr}}
.snc-options select,.snc-options input[type=number]{width:100%;padding:10px;border:1px solid #ccc;border-radius:8px}
.snc-check{font-weight:400!important}
.snc-btn{background:#00754a;color:#fff;border:0;border-radius:999px;padding:12px 20px;font-weight:700;cursor:pointer;margin-top:12px}
.snc-btn-secondary{background:#1e3932}
.snc-summary{background:#1e3932;color:#fff;border-radius:16px;padding:20px}
.snc-calories{font-size:48px;font-weight:800;margin:4px 0}
.snc-macros{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.snc-macros div{background:rgba(255,255,255,.12);border-radius:8px;padding:8px}
.snc-macros dt{font-size:12px;opacity:.8}.snc-macros dd{margin:0;font-weight:700}
.snc-disclaimer{font-size:13px;color:#555;margin-top:16px}
.snc-order{list-style:none;padding:0}
/* Per-item remove (×) in the order list + Clear order button (added
   1.0.6): the order list lives in the dark-green summary, so the × is a
   white outline circle that reads as a remove control, not as text. */
.snc-order li{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}
.snc-order-remove{flex-shrink:0;width:26px;height:26px;line-height:1;background:transparent;color:#fff;border:1px solid rgba(255,255,255,.55);border-radius:999px;font-size:16px;cursor:pointer;padding:0}
.snc-order-remove:hover{background:rgba(255,255,255,.18)}
#snc-clear-order{display:block;width:100%;margin-top:10px}
/* "View my order" button in the calculator options (added 1.0.1). */
#snc-view-order{display:block;width:100%}
.snc-order-count{display:inline-block;background:rgba(255,255,255,.25);border-radius:999px;padding:2px 8px;margin-left:6px;font-size:13px}
/* Hint under the drink list (was double-click / double-tap in 1.0.4,
   single-click add in 1.0.5, briefly a toggle in unreleased 1.0.6):
   every click adds a copy; the × beside ADDED removes one. */
.snc-click-hint{font-size:.88rem;font-weight:700;color:#00754a;text-align:center;margin:8px 0 0}
/* Inline "Added" line under the drink list (added 1.0.2, moved here 1.0.4):
   the toast sits at the bottom of the viewport and is easy to miss on a
   phone, so the confirmation also appears right where the user just
   clicked. */
.snc-added-note{background:#e6f4ea;color:#00754a;border:1px solid #bfe3c9;border-radius:8px;padding:10px 12px;font-weight:700;margin:10px 0 0}
/* Green "added" state on a drink row (added 1.0.2): matches the existing
   selected-drink language — green border + light-green fill — so it reads as
   part of the same list, NOT as a different control. It is distinguished
   from the selected state by the solid-green "✓ Added" tag, and it STAYS on
   the row while that drink is in the order, even after the user selects a
   different drink (when the selected highlight moves away). A row that is
   both selected and added shows both cues: the green fill and the tag.
   Padding drops to 8px so the 2px border keeps the row the same height. */
.snc-results button.is-added{background:#e6f4ea;border:2px solid #00754a;color:#1e3932;padding:8px}
.snc-results button.is-added span{color:#00754a}
/* Hover green on a drink row (added 1.0.3, user request): hovering a row
   turns it the same light-green fill + green border as the added state, so
   the user sees at a glance which row they are about to tap. :active gives
   the same flash on a phone tap, where :hover does not exist. On mouse-out
   a non-added row returns to its normal grey; an added row stays green
   through .is-added, which uses the identical colours, so the two rules
   never fight. The tag keeps its white-on-green colours: the
   .snc-added-tag rule above is more specific than the hover span rule. */
.snc-results button:hover,.snc-results button:active{background:#e6f4ea;border:2px solid #00754a;color:#1e3932;padding:8px}
.snc-results button:hover span,.snc-results button:active span{color:#00754a}
/* Add-to-order confirmation toast (added 1.0.1, enlarged 1.0.2): dark-green
   pill, fixed at the bottom of the viewport, slides up on add and hides
   after 4 seconds. Bigger text and padding than 1.0.1, and it respects the
   phone safe-area so the browser's bottom bar cannot cover it. */
.snc-toast{position:fixed;left:50%;bottom:max(20px, env(safe-area-inset-bottom));transform:translate(-50%,150%);display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);background:#1e3932;color:#fff;border-radius:999px;padding:16px 16px 16px 24px;box-shadow:0 8px 24px rgba(0,0,0,.3);z-index:9999;transition:transform .3s ease;font-size:16px}
.snc-toast-show{transform:translate(-50%,0)}
.snc-toast-msg{flex:1;min-width:0}
.snc-toast-view{flex-shrink:0;background:#00754a;color:#fff;border:0;border-radius:999px;padding:8px 16px;font-weight:700;cursor:pointer;white-space:nowrap}
@media(max-width:640px){.snc-toast{border-radius:16px;flex-wrap:wrap;justify-content:center;text-align:center;width:calc(100vw - 32px)}}
/* 1.0.9 — mobile tap targets + spacing (user report 15 Nov 2026:
   "mobile pe accha nahi dikh raha — text, buttons, category spacing
   sahi nahi hai"). Category pills were 6px 14px (~38px tall, under the
   44px tap guideline) with an 8px gap; the order-list × was a 26px
   circle; the option checkboxes were the tiny native ~13px box; and
   Print/Copy sat side-by-side and wrapped unevenly. All mobile-only
   (≤640px); the desktop rules above are untouched. */
@media(max-width:640px){.snc-categories{gap:10px}.snc-cat{padding:9px 16px}.snc-order-remove{width:34px;height:34px;font-size:18px}.snc-options input[type=checkbox]{width:20px;height:20px;vertical-align:-4px;accent-color:#00754a}.snc-actions .snc-btn{display:block;width:100%}}
