/*
 * LIVENZA store integration.
 *
 * theme.css is the template, untouched. This file styles what the template
 * never had: markup rendered by the shared storefront scripts in /assets/js
 * (cart.js, checkout-steps.js), the checkout run as one page with two
 * screens, CMS output, and the few components the storefront adds (stats,
 * alerts, lightbox). Tokens only, from base.css.
 */

/* ------------------------------------------------------------------ helpers */

.lv-alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--lv-radius);
  font-size: 14px;
  line-height: 1.4;
}
.lv-alert[hidden] { display: none; }
.lv-alert--bad { background: #fdecea; color: var(--lv-danger); }
.lv-alert--ok { background: #e8f2ea; color: var(--lv-success); }

.lv-field-note { margin: 0; font-size: 12px; line-height: 1.4; color: var(--lv-muted); }

.lv-page-crumbs { margin-bottom: 16px; }
.lv-crumbs [aria-current="page"] { color: var(--lv-text); }

/* Category chips on the catalog are links to /shop/{slug}; the current one
   carries aria-current rather than aria-pressed. */
.lv-chip { text-decoration: none; }
.lv-chip[aria-current="page"] {
  color: var(--lv-text);
  font-weight: 700;
  border-bottom-color: var(--lv-text);
}

.lv-products-count { margin: 0; font-size: 14px; color: var(--lv-muted); }
.lv-products-footer-row { padding-bottom: 64px; }
@media (min-width: 992px) { .lv-products-footer-row { padding-bottom: 120px; } }

/* ------------------------------------------------------------------ cart button bump */

@keyframes lv-bag-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  70% { transform: scale(.97); }
  100% { transform: scale(1); }
}
.lv-cart-btn.is-bumping { animation: lv-bag-bump .5s var(--lv-ease); }
.lv-cart-btn.is-bumping .lv-cart-count { animation: lv-bag-bump .5s var(--lv-ease) .06s; }
@media (prefers-reduced-motion: reduce) {
  .lv-cart-btn.is-bumping,
  .lv-cart-btn.is-bumping .lv-cart-count { animation: none; }
}
.lv-cart-btn[aria-current="page"] { background: var(--lv-ink); }

/* ------------------------------------------------------------------ home sections */

/* Hero side notes: the template fixes their labels at 138/155px on desktop,
   which wraps "Intention, in every day" onto two lines. Let them size to
   their text so each label reads on one line. */
@media (min-width: 1200px) {
  .lv-hero-note-label,
  .lv-hero-note--right .lv-hero-note-label { width: auto; white-space: nowrap; }
}

/* Product block toolbar: collection tabs and, for the rail layout, arrows. */
.lv-best-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.lv-best-toolbar .lv-products-chips { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lv-rail-controls { display: flex; gap: 8px; }
.lv-rail-controls[hidden] { display: none; }

.lv-grid--rail {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(200px, calc((100% - 12px) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.lv-grid--rail::-webkit-scrollbar { display: none; }
.lv-grid--rail > * { scroll-snap-align: start; }
@media (min-width: 768px) { .lv-grid--rail { grid-auto-columns: calc((100% - 48px) / 3); } }
@media (min-width: 1200px) { .lv-grid--rail { grid-auto-columns: calc((100% - 72px) / 4); } }

.lv-products-empty[hidden] { display: none; }

/* Product cards (home, /shop, related): the bottle sits inside the tile
   with room around it instead of touching the top edge and the corners.
   Same card everywhere, so one rule covers every grid. */
.lv-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 24px 24px;   /* clears the collection badge in the top corner */
}
.lv-card-link img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}
@media (max-width: 767.98px) { .lv-card-link { padding: 40px 12px 16px; } }

/* A store review may carry an avatar photo instead of initials. */
img.lv-voice-avatar { object-fit: cover; }
.lv-voice-meta .lv-stars { vertical-align: -2px; }

.lv-faq-cta { margin-top: 24px; align-self: flex-start; }

.lv-cta-note { margin: 0; font-size: 12px; line-height: 1.5; color: var(--lv-mist); max-width: 380px; }
.lv-cta-note a { color: var(--lv-on-dark); text-decoration: underline; }

/* ------------------------------------------------------------------ about sections */

/* Stats under the page header (optional). */
.av-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  margin: 32px 0 0;
}
.av-hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.av-hero-stats dd { margin: 0; font-size: clamp(28px, 2vw + 16px, 40px); line-height: 1.1; color: var(--lv-ink); }
.av-hero-stats dt { font-size: 13px; font-weight: 400; color: var(--lv-muted); }

/* Body copy arrives as rich text (<p> rows), styled as the template's
   .av-philosophy-p / .av-closer-copy paragraphs. */
.av-philosophy-body p { margin: 0; font-size: 16px; line-height: 22.4px; color: var(--lv-muted); }
.av-philosophy-body p + p { margin-top: 16px; }
@media (min-width: 992px) { .av-philosophy-body p + p { margin-top: 20px; } }
.av-philosophy-img { display: block; width: 100%; height: auto; margin-top: 32px; border-radius: var(--lv-radius); }
@media (min-width: 992px) {
  .av-philosophy-grid--reverse > .av-philosophy-head { order: 2; }
}

.av-closer-body {
  max-width: 430px;
  margin: 0 0 24px;
  font-family: var(--lv-font);
  font-size: 16px;
  line-height: 22px;
  letter-spacing: -0.24px;
  color: var(--av-closer-copy, #bec7b1);
}
.av-closer-body p { margin: 0 0 12px; }
.av-closer-body p:last-child { margin-bottom: 0; }

.av-values-note { margin-top: 12px; max-width: 56ch; }

.av-final-mark--inline { display: inline-block; width: .8em; margin: 0 .15em; vertical-align: baseline; }

/* Optional photo cards under the closing statement. */
.lv-story-grid { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 768px) { .lv-story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lv-story-card { min-height: 360px; }

/* ------------------------------------------------------------------ contact */

.cv-cta { margin-top: 24px; }
.cv-card-line a { color: inherit; text-decoration: none; }
.cv-card-line a:hover { text-decoration: underline; }
.cv-panel-lead { margin: -8px 0 20px; }
.cv-success[hidden] { display: none; }

/* ------------------------------------------------------------------ product page */

.lv-pd-legend {
  float: none;
  width: auto;
  margin: 0 0 4px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--lv-muted);
}
.lv-pd-lede > :last-child { margin-bottom: 0; }
.lv-pd-lede p { margin: 0 0 12px; }
.lv-plan-badge[hidden] { display: none; }

/* Subscribe & Save switch: one row shaped like the option cards above it,
   the offer on the left and the toggle pinned right. The whole row is the
   label, so a tap anywhere flips it. */
.lv-subscribe {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 16px;
  border: 1px solid var(--lv-line-strong);
  border-radius: 12px;
  background: var(--lv-white);
  cursor: pointer;
  transition: border-color .2s var(--lv-ease), box-shadow .2s var(--lv-ease);
}
.lv-subscribe:hover { border-color: var(--lv-text); }
.lv-subscribe:has(.lv-subscribe__input:checked) { border-color: var(--lv-ink-2); box-shadow: inset 0 0 0 1px var(--lv-ink-2); }
.lv-subscribe__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.lv-switch {
  flex: none;
  display: inline-flex;
  align-items: center;
  width: 48px;
  height: 28px;
  padding: 3px;
  border-radius: var(--lv-pill);
  background: var(--lv-line-strong);
  transition: background-color .2s var(--lv-ease);
}
.lv-switch__thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lv-white);
  box-shadow: 0 1px 2px rgba(22, 22, 22, .2);
  transition: transform .2s var(--lv-ease);
}
.lv-subscribe:has(.lv-subscribe__input:checked) .lv-switch { background: var(--lv-ink-2); }
.lv-subscribe:has(.lv-subscribe__input:checked) .lv-switch__thumb { transform: translateX(20px); }
.lv-subscribe:has(.lv-subscribe__input:focus-visible) { outline: 2px solid var(--lv-ink-2); outline-offset: 3px; }
.lv-subscribe:has(.lv-subscribe__input:disabled) { cursor: not-allowed; }

/* The stepper cart.js reads: buttons with data-act and a .qty-value span. */
.lv-qty-value {
  min-width: var(--lv-tap);
  text-align: center;
  font: 600 16px/1 var(--lv-font-ui);
  color: var(--lv-ink-2);
}

.lv-pd-prose ul, .lv-pd-prose ol { padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--lv-text-2); }

.lv-pd-main img[role="button"]:focus-visible { outline-offset: -4px; }

/* Photo lightbox (theme.js). */
body.lv-lightbox-open { overflow: hidden; }
.lv-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-lightbox[hidden] { display: none; }
.lv-lightbox__backdrop { position: absolute; inset: 0; background: rgba(22, 22, 22, .92); }
.lv-lightbox__stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 72px 24px;
  /* The stage handles pinch and drag itself, so the browser must not also
     scroll or zoom the page under it. */
  touch-action: none;
}
.lv-lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .18s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lv-lightbox__img.is-zoomed { cursor: grab; transition: none; }
.lv-lightbox__img.is-zoomed:active { cursor: grabbing; }
.lv-lightbox__close,
.lv-lightbox__nav,
.lv-lightbox__zoom {
  appearance: none;
  border: 0;
  border-radius: var(--lv-pill);
  background: rgba(255, 255, 255, .12);
  color: var(--lv-white);
  line-height: 1;
  cursor: pointer;
}
.lv-lightbox__close:hover,
.lv-lightbox__nav:hover,
.lv-lightbox__zoom:hover { background: rgba(255, 255, 255, .24); }
.lv-lightbox__close { position: absolute; top: 20px; right: 24px; z-index: 2; width: var(--lv-tap); height: var(--lv-tap); font-size: 28px; }
.lv-lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; font-size: 30px; }
.lv-lightbox__nav--prev { left: 24px; }
.lv-lightbox__nav--next { right: 24px; }
.lv-lightbox__nav[hidden] { display: none; }
.lv-lightbox__toolbar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: var(--lv-pill);
  background: rgba(255, 255, 255, .12);
}
.lv-lightbox__zoom { width: 34px; height: 34px; background: transparent; font-size: 20px; }
.lv-lightbox__level { min-width: 56px; text-align: center; font-size: 13px; color: var(--lv-white); }
.lv-lightbox__counter { position: absolute; top: 26px; left: 24px; z-index: 2; margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.lv-lightbox__counter[hidden] { display: none; }
@media (max-width: 767.98px) {
  .lv-lightbox__stage { padding: 64px 12px; }
  .lv-lightbox__nav--prev { left: 8px; }
  .lv-lightbox__nav--next { right: 8px; }
}

/* ------------------------------------------------------------------ shared cart markup
   cart.js renders cart and summary lines with its own class names; they are
   styled here so the shared script stays untouched. */

/* Cart page lines (#cartItems). */
.cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--lv-line-2);
}
.cart-item:first-child { padding-top: 0; }
.cart-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--lv-radius);
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}
/* min-height:0 lets the grid item shrink: without it a tall bottle keeps its
   intrinsic height and overflows the tile, which object-fit alone does not stop. */
.cart-thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.cart-info { min-width: 0; }
.cart-name { font-size: 16px; font-weight: 600; line-height: 1.4; color: var(--lv-ink-3); }
.cart-meta { margin-top: 2px; font-size: 12px; line-height: 1.4; color: var(--lv-muted); }
.cart-price { font-size: 18px; font-weight: 700; color: var(--lv-ink-3); }
.cart-remove {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: var(--lv-tap);
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--lv-ink-3);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.cart-remove.mt-2 { margin-top: 0 !important; }
.cart-remove:hover { color: var(--lv-danger); }
.cart-empty {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 48px 0 !important;
  text-align: left !important;
  color: var(--lv-text);
}
.cart-empty p { font-size: 20px; color: var(--lv-ink-3); }
.cart-empty .btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 14px 24px;
  border-radius: var(--lv-pill);
  background: var(--lv-ink-2);
  color: var(--lv-white);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
}
.cart-empty .btn-link:hover { background: var(--lv-ink); color: var(--lv-white); }

/* Cart lines laid out as the template's rows: photo, then name / meta /
   remove, then unit price, quantity and total on the right. cart.js nests
   the stepper and the total in a flex row inside .cart-info; that wrapper
   is flattened with display:contents so both join the row's grid. */
#cartItems .cart-item { grid-template-columns: 80px minmax(0, 1fr); }
#cartItems .cart-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  grid-template-areas:
    "name unit qty total"
    "meta unit qty total"
    "remove unit qty total";
  align-items: center;
  column-gap: 32px;
}
#cartItems .cart-name { grid-area: name; }
#cartItems .cart-meta { grid-area: meta; }
#cartItems .cart-remove { grid-area: remove; justify-self: start; padding: 6px 0; min-height: 0; margin-top: 4px; }
#cartItems .cart-info > .d-flex { display: contents !important; }
#cartItems .qty-stepper,
#cartItems .qty-value-fixed { grid-area: qty; }
#cartItems .cart-price,
#cartItems .lv-cart-unit { display: grid; gap: 2px; text-align: right; min-width: 64px; }
#cartItems .cart-price { grid-area: total; }
#cartItems .lv-cart-unit { grid-area: unit; font-size: 16px; font-weight: 600; color: var(--lv-ink-3); }
#cartItems .cart-price::before,
#cartItems .lv-cart-unit::before { font-size: 13px; font-weight: 400; color: var(--lv-muted); }
#cartItems .cart-price::before { content: "Total"; }
#cartItems .lv-cart-unit::before { content: "Unit Price"; }
#cartItems .qty-stepper { border-radius: var(--lv-radius); }
#cartItems .qty-stepper button { border-radius: calc(var(--lv-radius) - 2px); color: var(--lv-muted); }
#cartItems .qty-stepper .qty-value { min-width: 28px; font-size: 16px; }
@media (max-width: 767.98px) {
  #cartItems .cart-item { align-items: start; }
  #cartItems .cart-info {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "name name name"
      "meta meta meta"
      "remove remove remove"
      "qty unit total";
    row-gap: 4px;
    column-gap: 16px;
  }
  #cartItems .qty-stepper, #cartItems .qty-value-fixed { margin-top: 12px; }
  #cartItems .cart-price, #cartItems .lv-cart-unit { margin-top: 12px; }
}

/* Quantity steppers cart.js renders inside the lines. */
.qty-stepper:not(.lv-qty) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border: 1px solid var(--lv-line-strong);
  border-radius: var(--lv-pill);
  background: var(--lv-white);
}
.qty-stepper:not(.lv-qty) button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lv-ink-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.qty-stepper:not(.lv-qty) button:hover { background: var(--lv-surface); }
.qty-stepper:not(.lv-qty) .qty-value { min-width: 24px; text-align: center; font-weight: 600; color: var(--lv-ink-3); }
.qty-stepper-sm button { width: 32px !important; height: 32px !important; font-size: 16px !important; }
.qty-value-fixed { font-size: 14px; color: var(--lv-muted); }
.qty-value-fixed::before { content: "Qty "; }

/* Checkout summary lines (#summaryList). */
.lv-summary-items { display: grid; gap: 16px; }
.summary-line { display: flex; align-items: flex-start; gap: 12px; }
.sum-thumb {
  position: relative;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: var(--lv-radius);
  border: 1px solid var(--lv-line-2);
  background: var(--lv-surface);
  display: grid;
  place-items: center;
}
.sum-thumb img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; border-radius: var(--lv-radius); }
.sum-qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--lv-pill);
  background: var(--lv-ink-3);
  color: var(--lv-white);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.summary-line .sum-name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--lv-ink-3); }
.summary-line .sum-meta { font-size: 12px; color: var(--lv-muted); }
.sum-price { flex: none; font-size: 14px; font-weight: 600; color: var(--lv-ink-3); }
.sum-remove {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--lv-muted);
  cursor: pointer;
}
.sum-remove:hover { color: var(--lv-danger); background: rgba(180, 35, 24, .08); }
#summaryList > .text-muted { font-size: 14px; color: var(--lv-muted); }

/* cart.js emits Font Awesome <i> tags, but the theme does not load that
   font; the glyphs are drawn as masked SVG so the shared script stays as is. */
.cart-remove .fa-trash-can,
.sum-remove .fa-trash-can,
.cart-empty .fa-face-frown {
  display: inline-block;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.cart-remove .fa-trash-can,
.sum-remove .fa-trash-can {
  width: 14px;
  height: 14px;
  margin: 0 !important;
  --lv-trash: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 11v6M14 11v6'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--lv-trash);
  mask-image: var(--lv-trash);
}
.cart-empty .fa-face-frown {
  width: 40px;
  height: 40px;
  margin: 0 !important;
  color: var(--lv-muted);
  --lv-frown: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 15.5a4.5 4.5 0 0 1 7 0M9 9.5h.01M15 9.5h.01'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--lv-frown);
  mask-image: var(--lv-frown);
}

/* ------------------------------------------------------------------ checkout */

/* Both screens live on one page; checkout-steps.js shows one by toggling
   .is-active, so visibility comes from the class, not a hidden attribute. */
[data-checkout-screen] { display: none; }
[data-checkout-screen].is-active { display: grid; gap: 28px; }

/* The step indicator, as checkout.css draws it (payment.css, merged after
   it, restyles the same classes for the template's separate payment page). */
.lv-checkout-steps-wrap { padding: 20px 0; background: var(--lv-white); border-bottom: 1px solid var(--lv-chip); }
.lv-steps { gap: 12px; padding: 0; max-width: 560px; }
.lv-step { gap: 12px; cursor: pointer; }
.lv-step-connector { flex: 0 1 70px; min-width: 24px; }
.lv-step-badge { width: 32px; height: 32px; font-size: 14px; font-weight: 600; }
.lv-step:not(.is-current):not(.is-done) .lv-step-badge { background: var(--lv-chip); color: var(--lv-muted); }
.lv-step-text { display: grid; gap: 2px; }
.lv-step-label { color: var(--lv-ink-3); }
.lv-step:not(.is-current) .lv-step-label { color: var(--lv-muted); }
.lv-step-check { display: none; width: 14px; height: 14px; }
.lv-step.is-done .lv-step-num { display: none; }
.lv-step.is-done .lv-step-check { display: block; }
@media (max-width: 480px) {
  .lv-step:not(.is-current) .lv-step-text { display: none; }
}

/* Live delivery options from /ajax/shiprate, drawn as the template's chips. */
.lv-delivery-options { display: flex; flex-wrap: wrap; gap: 8px; }
.shippingOption {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--lv-tap);
  padding: 10px 18px;
  border: 1px solid var(--lv-line-strong);
  border-radius: var(--lv-radius);
  background: var(--lv-white);
  color: var(--lv-ink-3);
  font-size: 14px;
  cursor: pointer;
}
.shippingOption input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.shippingOption strong { font-weight: 500; }
.shippingOption:has(input:checked) { background: var(--lv-ink-3); border-color: var(--lv-ink-3); color: var(--lv-white); }
.shippingOption:has(input:focus-visible) { outline: 2px solid var(--lv-ink-3); outline-offset: 2px; }
.lv-delivery-options .smText { margin: 0; font-size: 13px; color: var(--lv-muted); }

.lv-payment-option-head { cursor: default; }

.lv-cvv-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lv-cvv-help {
  padding: 0;
  border: 0;
  background: none;
  color: var(--lv-ink-2);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.lv-cvv-help:hover { color: var(--lv-ink); }
.lv-modal--narrow { width: min(460px, calc(100vw - 32px)); }
.lv-modal--narrow img { display: block; width: 100%; height: auto; }

.lv-billing-fields { display: grid; gap: 16px; }
.lv-billing-fields.d-none { display: none; }
.lv-form-section { display: grid; gap: 16px; }

/* Native validation marks fields once a submit was tried. */
.was-validated .lv-input:invalid,
.was-validated .lv-select:invalid { border-color: var(--lv-danger); }

.lv-promo-label { cursor: pointer; }
.lv-promo-feedback { margin: 0; font-size: 13px; }
.lv-promo-feedback:empty { display: none; }
.lv-promo-feedback.text-success { color: var(--lv-success) !important; }
.lv-promo-feedback.text-danger { color: var(--lv-danger) !important; }
.lv-promo-feedback.text-muted { color: var(--lv-muted) !important; }

.lv-count-badge[hidden] { display: none; }

/* ------------------------------------------------------------------ confirmation */

/* Product shots are bottles of varied proportions: show them whole in the
   receipt's square tiles instead of the template's crop. */
.lv-confirmation-item-thumb { object-fit: contain; padding: 4px; }

.lv-confirmation-order { margin: 8px 0 0; font-size: 14px; color: var(--lv-muted); }
.lv-summary-row--paid dd { font-size: 18px; }
.lv-summary-row--discount dd { color: var(--lv-success); font-weight: 600; }

/* ------------------------------------------------------------------ CMS page builder output */

.cms-page__body > .pb-store-block + .pb-store-block { margin-top: 0; }

/* ------------------------------------------------------------------ iOS focus zoom
   Safari on iPhone zooms the page into any field whose text is under 16px
   when it takes focus. The template's fields are 13–15px, so on iOS only
   (-webkit-touch-callout exists nowhere else) they are raised to 16px;
   everywhere else keeps the design's sizes. */
@supports (-webkit-touch-callout: none) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
  select,
  textarea {
    font-size: 16px !important;
  }
}
