/* ==========================================================================
   Eva+Avo — global design system
   Tokens + shared components from the Figma "Eva Avo Design Final"
   (file ebE8FB3slFLCuWdwoNfUIx). Loaded site-wide from layout/theme.html.
   Design canvas is 1920px with 80px gutters; values scale down fluidly.
   Section-specific styles live next to each section (sections/eva-*).
   ========================================================================== */

:root {
  /* Brand palette (Figma variables) */
  --eva-crema: #FFF8EC;
  --eva-bosque: #2B4633;
  --eva-green: #06402D;
  --eva-sabia: #D8DCC3;
  --eva-sabia-soft: #CFD6B8;
  --eva-mustard: #EFB04A;
  --eva-mustard-bright: #FFC211;
  --eva-white: #FCFCFA;
  --eva-ink: #030303;
  --eva-text: #29252C;
  --eva-gray: #969696;
  --eva-line: rgba(43, 70, 51, 0.2);
  --eva-line-soft: rgba(57, 22, 19, 0.2);
  --eva-tint: rgba(57, 22, 19, 0.05);
  --eva-discount: #EE4700;
  --eva-error: #B3261E;

  /* Type */
  --eva-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --eva-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --eva-link-font: "DM Sans", system-ui, sans-serif;
  --eva-display: "Instrument Serif", var(--eva-serif);
  --eva-ui: "Geist", var(--eva-sans);

  /* Layout */
  --eva-page: 1920px;
  --eva-gutter: clamp(20px, 4.1667vw, 80px);
  --eva-header-h: 80px;
  --eva-promo-h: 36px;
  --eva-section-y: clamp(56px, 6.25vw, 120px);
  --eva-section-y-sm: clamp(40px, 4.1667vw, 80px);
  --eva-ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Fluid type scale (1920 design values as maximum) */
  --eva-fs-display: clamp(46px, 5vw, 96px);
  --eva-fs-h1: clamp(36px, 2.9167vw, 56px);
  --eva-fs-h2: clamp(30px, 2.2917vw, 44px);
  --eva-fs-h3: clamp(23px, 1.4583vw, 28px);
  --eva-fs-h4: clamp(21px, 1.3542vw, 26px);
  --eva-fs-nav: clamp(22px, 1.5625vw, 30px);
  --eva-fs-eyebrow: clamp(14px, 0.9375vw, 18px);
  --eva-fs-lead: clamp(18px, 1.25vw, 24px);
  --eva-fs-body: clamp(14px, 0.8333vw, 16px);
  --eva-fs-small: 14px;

  /* Orion theme variables → brand fonts / widths */
  --sort-title-font: var(--eva-serif);
  --sort-title-font-weight: 700;
  --sort-title-font-style: normal;
  --sort-body-font: var(--eva-sans);
  --page-padding: var(--eva-gutter);
  --page-width: calc(var(--eva-page) - 160px);
}

@media (max-width: 959px) {
  :root { --eva-header-h: 64px; --eva-promo-h: 32px; }
}

/* --------------------------------------------------------------- Base -- */

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
/* Scroll lock for every overlay (cart/modals: eva-lock-modal, menu/search: eva-lock,
   BYOB sheet: eva-byob-lock). Lock only the root so the sticky header stays put;
   eva.js pads the root by the scrollbar width while locked so nothing shifts sideways. */
html.eva-lock,
html.eva-lock-modal,
html.eva-byob-lock { overflow: hidden; padding-right: var(--eva-sbw, 0px); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--eva-crema);
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: var(--eva-fs-body);
  line-height: 1.875;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body > main#main { flex: 1 0 auto; }
img, video { max-width: 100%; }

.eva-skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  padding: 10px 18px; background: var(--eva-bosque); color: var(--eva-crema);
}
.eva-skip-link:focus { top: 12px; }

.eva-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ------------------------------------------------------------ Layout -- */

.eva-page {
  width: 100%;
  max-width: var(--eva-page);
  margin-inline: auto;
  padding-inline: var(--eva-gutter);
}
.eva-page--narrow { max-width: calc(1200px + var(--eva-gutter) * 2); }
.eva-section { padding-block: var(--eva-section-y); }
.eva-section--sm { padding-block: var(--eva-section-y-sm); }
.eva-section--flush { padding-block: 0; }
.eva-center { text-align: center; }

/* Scheme helper: sections set data-eva-bg so background bleeds edge to edge */
[data-eva-bg="crema"] { background: var(--eva-crema); color: var(--eva-bosque); }
[data-eva-bg="bosque"] { background: var(--eva-bosque); color: var(--eva-crema); }
[data-eva-bg="mustard"] { background: var(--eva-mustard); color: var(--eva-bosque); }
[data-eva-bg="sabia"] { background: var(--eva-sabia); color: var(--eva-bosque); }
[data-eva-bg="white"] { background: var(--eva-white); color: var(--eva-bosque); }

/* ---------------------------------------------------------- Typography -- */

.eva-display,
.eva-h1, .eva-h2, .eva-h3, .eva-h4 {
  margin: 0;
  color: inherit;
  letter-spacing: 0;
  text-wrap: balance;
}
.eva-display {
  font-family: var(--eva-display);
  font-weight: 400;
  font-size: var(--eva-fs-display);
  line-height: 1.05;
}
.eva-h1 { font-family: var(--eva-serif); font-weight: 700; font-size: var(--eva-fs-h1); line-height: 1.15; }
.eva-h2 { font-family: var(--eva-serif); font-weight: 700; font-size: var(--eva-fs-h2); line-height: 1.2; }
.eva-h3 { font-family: var(--eva-serif); font-weight: 700; font-size: var(--eva-fs-h3); line-height: 1.2; }
.eva-h4 { font-family: var(--eva-serif); font-weight: 400; font-size: var(--eva-fs-h4); line-height: 1.2; }

.eva-eyebrow {
  margin: 0;
  font-family: var(--eva-sans);
  font-weight: 400;
  font-size: var(--eva-fs-eyebrow);
  line-height: 1.89;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eva-lead {
  margin: 0;
  font-size: var(--eva-fs-lead);
  line-height: 1.5;
  letter-spacing: 0;
}
.eva-text {
  margin: 0;
  font-size: var(--eva-fs-body);
  line-height: 1.875;
  letter-spacing: 0.03em;
}
.eva-text-sm { margin: 0; font-size: 14px; line-height: 24px; letter-spacing: 0.01em; }

.eva-rte > * + * { margin-top: 1em; }
.eva-rte > :first-child { margin-top: 0; }
.eva-rte > :last-child { margin-bottom: 0; }
.eva-rte a { text-decoration: underline; text-underline-offset: 3px; }
.eva-rte strong { font-weight: 700; }

/* ------------------------------------------------------------- Buttons -- */

a.eva-btn, button.eva-btn, .eva-btn {
  --eva-btn-fg: var(--eva-bosque);
  --eva-btn-bg: transparent;
  --eva-btn-bd: var(--eva-bosque);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 32px;
  border: 2px solid var(--eva-btn-bd);
  border-radius: 2px;
  background: var(--eva-btn-bg);
  color: var(--eva-btn-fg);
  font-family: var(--eva-sans);
  font-weight: 700;
  font-size: clamp(15px, 0.9375vw, 18px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--eva-ease), color 0.25s var(--eva-ease), border-color 0.25s var(--eva-ease);
}
a.eva-btn:hover, button.eva-btn:hover, .eva-btn:hover {
  --eva-btn-fg: var(--eva-crema);
  --eva-btn-bg: var(--eva-bosque);
  color: var(--eva-btn-fg);
}
.eva-btn--solid { --eva-btn-fg: var(--eva-crema) !important; --eva-btn-bg: var(--eva-bosque) !important; }
a.eva-btn--solid:hover, button.eva-btn--solid:hover, .eva-btn--solid:hover {
  --eva-btn-bg: var(--eva-green) !important;
  --eva-btn-bd: var(--eva-green);
}
/* Light variant for dark/photo backgrounds */
.eva-btn.eva-btn--light { --eva-btn-fg: var(--eva-crema); --eva-btn-bd: var(--eva-crema); }
.eva-btn.eva-btn--light:hover {
  --eva-btn-fg: var(--eva-bosque);
  --eva-btn-bg: var(--eva-crema);
  --eva-btn-bd: var(--eva-crema);
}
/* Medium-weight variant (mega menu / drawer CTAs) */
.eva-btn.eva-btn--medium { font-weight: 500; }
.eva-btn.eva-btn--sm { min-height: 44px; padding: 8px 24px; font-size: 15px; }
.eva-btn.eva-btn--block { display: flex; width: 100%; }
/* Hero CTA (Geist bold 16, solid green, no border feel) */
.eva-btn.eva-btn--hero {
  min-height: 57px;
  padding: 18px 36px;
  border-color: var(--eva-bosque);
  font-family: var(--eva-ui);
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
}
.eva-btn[disabled], .eva-btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

/* Text link with underline */
a.eva-link, .eva-link {
  font-family: var(--eva-link-font);
  font-size: 14px;
  letter-spacing: 0.1em;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Round arrow buttons (carousels) */
.eva-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  cursor: pointer;
  transition: opacity 0.2s;
}
.eva-arrow svg { width: 20px; height: 36px; }
.eva-arrow[disabled] { opacity: 0.25; cursor: default; }
.eva-arrow--prev svg { transform: scaleX(-1); }

/* --------------------------------------------------------------- Tabs -- */

.eva-tabs {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.eva-tabs::-webkit-scrollbar { display: none; }
.eva-tab {
  --eva-tab-px: clamp(12px, 1.875vw, 36px);
  position: relative;
  flex: none;
  padding: 8px var(--eva-tab-px);
  border: 0;
  background: none;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: clamp(16px, 1.25vw, 24px);
  line-height: 1.5;
  letter-spacing: 0;
  cursor: pointer;
  white-space: nowrap;
}
/* Same box selected or not: padding never changes, the underline is drawn
   (12px past the label, as in Figma) and the label reserves its bold width. */
.eva-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(var(--eva-tab-px) - 12px);
  right: calc(var(--eva-tab-px) - 12px);
  height: 2px;
  background: transparent;
  transition: background-color 0.2s var(--eva-ease);
}
.eva-tab[aria-selected="true"]::after { background: #000; }
.eva-tab[aria-selected="true"] { font-weight: 600; }
.eva-tab__label { display: inline-flex; flex-direction: column; }
.eva-tab__label::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  font-weight: 600;
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}

/* ----------------------------------------------------------- Carousel -- */
/* <eva-carousel> wraps a [data-track] scroll-snap row; JS in eva.js
   wires [data-prev]/[data-next] and the optional [data-progress] bar. */

eva-carousel { display: block; position: relative; }
.eva-carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--eva-slide-w, calc((100% - 3 * var(--eva-slide-gap, 4px)) / 3.73));
  gap: var(--eva-slide-gap, 4px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.eva-carousel__track::-webkit-scrollbar { display: none; }
.eva-carousel__track > * { scroll-snap-align: start; min-width: 0; }
.eva-carousel__progress {
  position: relative;
  width: min(240px, 50%);
  height: 4px;
  margin: 40px auto 0;
  background: rgba(43, 70, 51, 0.2);
}
.eva-carousel__progress-bar {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: var(--eva-progress-w, 25%);
  transform: translateX(var(--eva-progress-x, 0));
  background: var(--eva-bosque);
  transition: transform 0.3s var(--eva-ease);
}
@media (max-width: 959px) {
  .eva-carousel__track { --eva-slide-w: 72%; }
}

/* -------------------------------------------------------- Product card -- */
/* Markup: components/eva-product-card.html */

.eva-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: transparent;
  color: var(--eva-bosque);
}
.eva-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--eva-crema);
}
.eva-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 11% 11% 10%;
  transition: opacity 0.4s var(--eva-ease), transform 0.6s var(--eva-ease);
}
.eva-card__media img + img { opacity: 0; object-fit: cover; padding: 0; }
/* Hover swap: the second image replaces the first (fade out + fade in), so a
   transparent or blended second image never shows the first through it. */
.eva-card:hover .eva-card__media img + img { opacity: 1; }
.eva-card:hover .eva-card__media img:first-of-type:not(:last-of-type) { opacity: 0; }
.eva-card:hover .eva-card__media img:only-child { transform: scale(1.03); }
.eva-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  padding: 4px 12px;
  background: var(--eva-bosque);
  color: var(--eva-crema);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.eva-card__badge--sale { background: var(--eva-discount); color: #fff; }
/* Card type scales with the CARD's width (Figma card = 472px: title 31.1, subtitle 17.8,
   price 20, ADD TO CART 20 / 65px bar, 22.2 padding), so narrow grids and mobile get
   proportionally smaller text instead of viewport-sized text. Compact cards (search,
   mega menu) keep fixed px sizes — they sit in content-sized grids. */
.eva-card:not(.eva-card--compact) { container-type: inline-size; }
.eva-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(8px, 2.82cqi, 13px);
  padding: clamp(12px, 4.706cqi, 22px) clamp(12px, 4.706cqi, 22px) 0;
}
.eva-card__title {
  margin: 0;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: clamp(17px, 6.588cqi, 31px);
  line-height: 1.2;
  letter-spacing: 0;
}
/* Titles entered in ALL CAPS are lowercased in Sline and shown in title case. */
.eva-card__title--caps { text-transform: capitalize; }
.eva-card__title a { color: inherit; text-decoration: none; }
.eva-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.eva-card__subtitle {
  margin: -3px 0 0;
  font-size: clamp(13px, 3.765cqi, 18px);
  line-height: 1.81;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
.eva-card__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  font-size: clamp(14px, 4.235cqi, 20px);
  line-height: 1.6;
  letter-spacing: 0.03em;
}
.eva-card__price s { font-weight: 400; opacity: 0.55; font-size: 0.85em; }
.eva-card__actions { position: relative; z-index: 1; margin-top: auto; padding-top: clamp(12px, 4.706cqi, 22px); }
.eva-card__atc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(40px, 13.77cqi, 65px);
  padding: 6px 12px;
  border: 0;
  background: var(--eva-bosque);
  color: #fff;
  font-family: var(--eva-sans);
  font-size: clamp(12px, 4.235cqi, 20px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--eva-ease);
}
a.eva-card__atc, a.eva-card__atc:hover { color: #fff; }
.eva-card__atc:hover { background: var(--eva-green); }
.eva-card__atc[disabled] { opacity: 0.55; cursor: not-allowed; }
.eva-card__atc.loading .eva-card__atc-label { visibility: hidden; }
.eva-card__atc.loading { position: relative; }

/* Compact card (search panel, mega menu, cart upsells) */
.eva-card--compact .eva-card__media { aspect-ratio: 210 / 329; }
.eva-card--compact .eva-card__body { padding: 20px 0 0; gap: 12px; }
.eva-card--compact .eva-card__title { font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.eva-card--compact .eva-card__price { font-weight: 400; font-size: 14px; }

/* Product grid */
.eva-grid {
  display: grid;
  grid-template-columns: repeat(var(--eva-cols, 4), minmax(0, 1fr));
  gap: var(--eva-grid-gap-y, 40px) var(--eva-grid-gap-x, 4px);
}
@media (max-width: 1199px) { .eva-grid { --eva-cols: 3; } }
@media (max-width: 959px) { .eva-grid { --eva-cols: 2; --eva-grid-gap-y: 28px; --eva-grid-gap-x: 12px; } }

/* -------------------------------------------------------------- Forms -- */

.eva-input,
.eva-select,
.eva-textarea {
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid var(--eva-line);
  border-radius: 0;
  background: var(--eva-white);
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: 16px;
  letter-spacing: 0.03em;
}
.eva-textarea { min-height: 160px; resize: vertical; }
/* Selects draw their own chevron: the native arrow sits flush against the right edge and
   ignores padding. Override --eva-select-arrow-x to move it; padding-right follows. */
.eva-select {
  --eva-select-arrow-x: 18px;
  padding-right: calc(var(--eva-select-arrow-x) + 26px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10.22 10'%3E%3Cpath fill='%232B4633' fill-rule='evenodd' d='M1.06 2.39 5.11 6.44l4.05-4.05 1.06 1.06-5.11 5.11L0 3.45z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--eva-select-arrow-x) center;
  background-size: 10px 10px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.eva-input::placeholder, .eva-textarea::placeholder { color: rgba(43, 70, 51, 0.55); }
.eva-input:focus, .eva-select:focus, .eva-textarea:focus { outline: none; border-color: var(--eva-bosque); }
.eva-label { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase; }

/* --------------------------------------------------------- Accordion -- */

.eva-accordion { border-top: 1px solid var(--eva-line); }
.eva-accordion__item { border-bottom: 1px solid var(--eva-line); }
.eva-accordion__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
}
.eva-accordion__item > summary::-webkit-details-marker { display: none; }
.eva-accordion__icon { position: relative; flex: none; width: 18px; height: 18px; }
.eva-accordion__icon::before,
.eva-accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--eva-ease);
}
.eva-accordion__icon::after { transform: rotate(90deg); }
.eva-accordion__item[open] .eva-accordion__icon::after { transform: rotate(0); }
.eva-accordion__content { padding: 0 0 28px; max-width: 1100px; }

/* ------------------------------------------------------- Stars / misc -- */

.eva-stars { display: inline-flex; gap: 2px; color: var(--eva-bosque); }
.eva-stars svg { width: 18px; height: 18px; }

.eva-divider { height: 1px; border: 0; background: var(--eva-line); margin: 0; }

.eva-media-cover { position: relative; overflow: hidden; }
.eva-media-cover > img,
.eva-media-cover > video,
.eva-media-cover > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Scroll reveal (eva.js adds .is-in) */
.eva-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--eva-ease), transform 0.8s var(--eva-ease); }
.eva-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .eva-reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Toast */
.eva-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1000;
  padding: 14px 24px;
  background: var(--eva-bosque);
  color: var(--eva-crema);
  font-size: 15px;
  transform: translate(-50%, 140%);
  transition: transform 0.35s var(--eva-ease);
}
.eva-toast.is-visible { transform: translate(-50%, 0); }

/* --------------------------------------------- Product packshots on cream -- */
/* Store product photos are shot on white; multiply lets the white melt into the
   cream page (Figma shows packshots without a white box). Lifestyle/hover images
   (object-fit: cover second image) are excluded. */
.eva-card__media { background: transparent; }
/* Toggle: Theme settings → Eva product images (adds body.eva-blend). */
.eva-blend :is(
  .eva-card__media img,
  .eva-line__media img,
  .eva-upsell__media img,
  .eva-pg__item img,
  .eva-pg__thumb img,
  .eva-bundle__img,
  .eva-cart-row__media img,
  .eva-upsell-row__media img,
  .eva-byob-card__media img,
  .eva-byob__slot-media img
) {
  mix-blend-mode: multiply;
}
.eva-pg__item,
.eva-pg__thumb { background: transparent !important; }

/* ---------------------------------------------------- Add-to-cart spinner -- */
/* Orion's icons/loading-spinner = .loading--rotator (rotates via transform) > svg.
   Centre the rotating wrapper with margins (not translate, which the rotation
   overrides) so it spins on its own centre. */
:is(.eva-card__atc, .eva-upsell__add, .eva-svideo__add) { position: relative; }
:is(.eva-card__atc, .eva-upsell__add, .eva-svideo__add) .loading--rotator {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
}
:is(.eva-card__atc, .eva-upsell__add, .eva-svideo__add).loading .loading--rotator { display: flex; }
:is(.eva-card__atc, .eva-upsell__add, .eva-svideo__add) .loading--rotator .icon-loading {
  position: static;
  display: block;
  inset: auto;
  width: 100%;
  height: 100%;
  margin: 0;
}
:is(.eva-upsell__add, .eva-svideo__add).loading > svg:first-child { visibility: hidden; }

/* ------------------------------------------------- Cart quantity stepper -- */
/* Shared by the cart drawer (.eva-line) and cart page (.eva-cart-row).
   Replaces Orion's theme-input-number box (fixed 110px width + ::after border). */
:is(.eva-line, .eva-cart-row) theme-input-number {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  min-width: 123px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(43, 70, 51, 0.6);
  border-radius: 0;
  background: transparent;
  color: var(--eva-bosque);
}
:is(.eva-line, .eva-cart-row) theme-input-number::before,
:is(.eva-line, .eva-cart-row) theme-input-number::after { display: none; }
:is(.eva-line, .eva-cart-row) theme-input-number button[name] {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 40px;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--eva-bosque);
  cursor: pointer;
  transition: background-color 0.2s;
}
:is(.eva-line, .eva-cart-row) theme-input-number button[name]:hover { background: rgba(43, 70, 51, 0.06); }
:is(.eva-line, .eva-cart-row) theme-input-number button[name] :is(svg, .icon) { width: 10px; height: 10px; }
:is(.eva-line, .eva-cart-row) theme-input-number button[name]:disabled { opacity: 0.3; cursor: default; }
:is(.eva-line, .eva-cart-row) theme-input-number input[type="number"] {
  flex: 1 0 43px;
  align-self: stretch;
  width: 43px;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
:is(.eva-line, .eva-cart-row) theme-input-number input::-webkit-inner-spin-button,
:is(.eva-line, .eva-cart-row) theme-input-number input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
:is(.eva-line, .eva-cart-row) .cart-item__amount-operator { display: flex; align-items: center; gap: 20px; }

/* Per-line loading overlay while a cart line updates (base-items.js toggles
   .loading on .cart-item__total-loading; Orion's CSS rotates that element). */
.eva-line__loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 236, 0.85);
}
:is(.eva-line, .eva-cart-row):has(.eva-line__spinner.loading) .eva-line__loading { display: flex; }
.eva-line__loading .eva-line__spinner {
  position: static;
  display: flex;
  width: 22px;
  height: 22px;
  color: var(--eva-bosque);
}
.eva-line__loading .eva-line__spinner :is(svg, .icon) { width: 22px; height: 22px; }
:is(.eva-line, .eva-cart-row) { position: relative; }
/* Compact stepper in the cart drawer. */
.eva-line theme-input-number { min-width: 96px; height: 34px; }
.eva-line theme-input-number button[name] { flex-basis: 30px; width: 30px; }
.eva-line theme-input-number input[type="number"] { flex: 1 0 34px; width: 34px; font-size: 13px; }
.eva-line .cart-item__amount-operator { gap: 14px; }
.eva-line .cart-item__remove svg { width: 18px; height: 18px; }

/* ------------------------------------------------ Phone field: code first -- */
/* Orion renders the dialing-code select after the number; show it on the left
   (+1 | phone number), divider on its right. Order tracking, login, register, account. */
theme-input-phone.field { display: flex; }
theme-input-phone .field__inner { flex: 1; min-width: 0; }
theme-input-phone .country-select { order: -1; padding-inline: 0; }
theme-input-phone .country-select__trigger { padding-inline: 16px 12px; }
theme-input-phone .country-select__trigger::before {
  inset-inline-start: auto;
  inset-inline-end: 0;
  border-inline-start: 0;
  border-inline-end: 1px solid rgb(var(--color-entry-line));
}

/* Shopline's recommendation app injects "You May Also Like" into the cart drawer;
   Theme settings → Eva cart → "Show Shopline 'You May Also Like'" turns it back on. */
.eva-hide-app-recs theme-cart-drawer .product-recommend-seed { display: none !important; }
