/* Eva Build Your Bundle — Figma 625:13994 */
.eva-byob { --byob-tray-w: clamp(360px, 26.125vw, 502px); }
.eva-byob__layout { display: block; }

/* Header row: title + description, running total on the right */
.eva-byob__head {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: clamp(40px, 4.1667vw, 80px);
}
.eva-byob__intro { flex: 1; min-width: 0; }
.eva-byob__title {
  margin: 0 0 4px;
  font-family: var(--eva-serif);
  font-weight: 500;
  font-size: clamp(40px, 4.375vw, 84px);
  line-height: 1.107;
  letter-spacing: -0.01em;
}
.eva-byob__text { max-width: 925px; font-size: var(--eva-fs-eyebrow); line-height: 1.667; letter-spacing: 0.05em; }
.eva-byob__tiers-msg { margin: 12px 0 0; font-weight: 700; font-size: var(--eva-fs-eyebrow); letter-spacing: 0.05em; }
.eva-byob__head-total {
  margin: 0;
  font-size: clamp(24px, 1.875vw, 36px);
  line-height: 1;
  white-space: nowrap;
}

/* Body: grid + tray */
.eva-byob__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--byob-tray-w);
  gap: 40px;
  align-items: start;
}
.eva-byob__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.eva-byob__item { min-width: 0; }

/* Card */
.eva-byob-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--eva-bosque);
}
.eva-byob-card__media {
  position: relative;
  display: block;
  aspect-ratio: 399 / 472;
  overflow: hidden;
  background: var(--eva-crema);
}
.eva-byob-card__media img,
.eva-byob-card__media svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6% 10%;
  transition: transform 0.6s var(--eva-ease);
}
.eva-byob-card:hover .eva-byob-card__media img { transform: scale(1.03); }
.eva-byob-card.is-selected .eva-byob-card__media { box-shadow: inset 0 0 0 2px var(--eva-bosque); }
.eva-byob-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: var(--eva-byob-card-pad) var(--eva-byob-card-pad) 0;
}
/* Card-width units (cqi) so titles size like the collection cards, whatever the column count. */
.eva-byob-card {
  container-type: inline-size;
  /* Side inset shared by the body and the button row, so the button lines up with the dropdown. */
  --eva-byob-card-pad: clamp(14px, 1.157vw, 22px);
}
.eva-byob-card__title {
  margin: 0;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: clamp(19px, 7.6cqi, 32px); /* a step above .eva-card__title (6.588cqi): bundle cards are narrower */
  line-height: 1.2;
  letter-spacing: 0;
}
.eva-byob-card__title a { color: inherit; text-decoration: none; }
.eva-byob-card__title a:hover { text-decoration: underline; text-underline-offset: 4px; }
.eva-byob-card__subtitle {
  margin: 0;
  font-size: clamp(13px, 3.765cqi, 18px); /* same as .eva-card__subtitle */
  line-height: 1.81;
  letter-spacing: 0.03em;
  text-transform: capitalize;
}
/* Price, select and button use the collection card's card-width (cqi) scale (.eva-card__price / __atc). */
.eva-byob-card__price { margin: 3px 0 0; font-weight: 600; font-size: clamp(14px, 4.235cqi, 20px); line-height: 1.6; letter-spacing: 0.03em; }
.eva-byob-card__variant { margin-top: 4px; }
.eva-byob-card__select { --eva-select-arrow-x: 14px; min-height: clamp(40px, 11.3cqi, 48px); padding: 6px 38px 6px 12px; font-size: clamp(13px, 3.765cqi, 16px); background-color: transparent; }
.eva-byob-card__actions { margin-top: auto; padding: clamp(12px, 4.706cqi, 22px) var(--eva-byob-card-pad) 0; }
.eva-byob-card__add,
.eva-byob-card__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: clamp(40px, 13.77cqi, 65px);
  background: var(--eva-bosque);
  color: #fff;
}
.eva-byob-card__add {
  padding: 6px 12px;
  border: 0;
  font-family: var(--eva-sans);
  font-size: clamp(12px, 4.235cqi, 20px);
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--eva-ease);
}
.eva-byob-card__add:hover { background: var(--eva-green); }
.eva-byob-card__add[disabled] { opacity: 0.45; cursor: not-allowed; }
.eva-byob-card__add[hidden], .eva-byob-card__stepper[hidden] { display: none; }
.eva-byob-card__stepper { justify-content: space-between; padding: 0 6px; }
.eva-byob-card__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: clamp(40px, 13.77cqi, 48px);
  border: 0;
  background: none;
  color: inherit;
  font-size: clamp(20px, 5.5cqi, 26px);
  line-height: 1;
  cursor: pointer;
}
.eva-byob-card__step:disabled { opacity: 0.35; cursor: not-allowed; }
.eva-byob-card__qty { font-size: clamp(14px, 4.235cqi, 20px); font-weight: 600; }
.eva-byob-card__add:focus-visible,
.eva-byob-card__step:focus-visible { outline: 2px solid var(--eva-mustard); outline-offset: -4px; }
.eva-byob-card--placeholder .eva-byob-card__media svg { opacity: 0.4; }

.eva-byob__empty { position: relative; }
.eva-byob__empty-msg { margin: 24px 0 0; font-size: 16px; }

/* Tray */
.eva-byob__tray {
  display: flex;
  flex-direction: column;
  gap: 35px;
  padding: clamp(18px, 1.375vw, 26.4px);
  border: 2px solid var(--eva-bosque);
  background: var(--eva-crema);
}
.eva-byob__tray-bar { display: none; }
.eva-byob__panel { display: flex; flex-direction: column; gap: 28px; }
.eva-byob__tray-title {
  margin: 0;
  font-family: var(--eva-serif);
  font-weight: 700;
  font-size: var(--eva-fs-h3);
  line-height: 1.2;
}
.eva-byob__tiers { display: grid; grid-template-columns: 1fr 1fr; margin-top: -12px; }
.eva-byob__tier {
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid var(--eva-bosque);
  background: transparent;
  color: var(--eva-bosque);
  font-family: var(--eva-sans);
  font-size: clamp(14px, 0.882vw, 17px);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  cursor: pointer;
}
.eva-byob__tier[aria-pressed="true"] { background: var(--eva-bosque); color: var(--eva-crema); }
.eva-byob__tier[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; }

.eva-byob__slots { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
.eva-byob__slot { display: flex; align-items: center; gap: 13px; }
.eva-byob__slot-media {
  position: relative;
  flex: none;
  width: clamp(72px, 5.73vw, 110px);
  aspect-ratio: 1;
  border: 1px dashed var(--eva-bosque);
  background: var(--eva-crema);
}
.eva-byob__slot.is-filled .eva-byob__slot-media { border-style: solid; border-color: var(--eva-line); }
.eva-byob__slot-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.eva-byob__slot-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: clamp(14px, 0.882vw, 17px);
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.eva-byob__slot.is-filled .eva-byob__slot-info { text-transform: none; }
.eva-byob__slot-title { font-family: var(--eva-serif); font-weight: 700; font-size: clamp(18px, 1.15vw, 22px); line-height: 1.2; }
.eva-byob__slot-variant { font-size: 14px; opacity: 0.7; }
.eva-byob__slot-price { font-size: 14px; }
.eva-byob__slot-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--eva-line);
  border-radius: 50%;
  background: none;
  color: var(--eva-bosque);
  cursor: pointer;
}
.eva-byob__slot-remove:hover { border-color: var(--eva-bosque); }

.eva-byob__meter { height: 4px; background: var(--eva-line); }
.eva-byob__meter span { display: block; height: 100%; width: 0; background: var(--eva-bosque); transition: width 0.35s var(--eva-ease); }
.eva-byob__progress-msg { margin: 10px 0 0; font-size: 14px; line-height: 24px; }
.eva-byob__progress-msg:empty { display: none; }

.eva-byob__totals { display: grid; gap: 6px; margin: 0; font-size: var(--eva-fs-eyebrow); letter-spacing: 0.05em; }
.eva-byob__totals > div { display: flex; justify-content: space-between; gap: 16px; }
.eva-byob__totals > div[hidden] { display: none; }
.eva-byob__totals dt, .eva-byob__totals dd { margin: 0; }
.eva-byob__total { font-weight: 700; }
.eva-byob__savings dd { color: var(--eva-discount); }

.eva-byob__purchase { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; }
.eva-byob__radio { display: flex; align-items: center; gap: 9px; font-size: var(--eva-fs-eyebrow); letter-spacing: 0.05em; cursor: pointer; }
.eva-byob__radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--eva-bosque); }
.eva-byob__sub { display: grid; gap: 12px; padding-left: 27px; }
.eva-byob__sub[hidden] { display: none; }
.eva-byob__freq { --eva-select-arrow-x: 14px; width: auto; min-width: 220px; min-height: 44px; padding: 6px 38px 6px 12px; }
.eva-byob__points { font-size: 14px; line-height: 24px; opacity: 0.8; }
.eva-byob__points ul { margin: 0; padding: 0; list-style: none; }
.eva-byob__points li::before { content: "✓"; margin-right: 8px; font-size: 11px; }

.eva-byob__cta { display: grid; gap: 18px; }
.eva-byob__submit {
  width: 100%;
  min-height: 62px;
  padding: 13px 22px;
  border: 0;
  background: var(--eva-bosque);
  color: #fff;
  font-family: var(--eva-sans);
  font-size: clamp(16px, 1.134vw, 21.8px);
  line-height: 1.4;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--eva-ease), opacity 0.25s;
}
.eva-byob__submit:hover:not(:disabled) { background: var(--eva-green); }
.eva-byob__submit:disabled { opacity: 0.3; cursor: not-allowed; }
.eva-byob__submit:focus-visible { outline: 2px solid var(--eva-bosque); outline-offset: 3px; }
.eva-byob__note { font-size: 14px; line-height: 24px; letter-spacing: 0.01em; }
.eva-byob .eva-byob__note a { color: inherit; text-decoration: underline; }
.eva-byob__backdrop { display: none; }

@media (max-width: 1199px) {
  .eva-byob__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile: tray becomes a bottom sheet */
@media (max-width: 959px) {
  .eva-byob__head { flex-wrap: wrap; gap: 12px; }
  .eva-byob__head-total { display: none; }
  .eva-byob__body { display: block; padding-bottom: 140px; }
  .eva-byob__grid { gap: 28px 12px; }
  .eva-byob-card__subtitle { display: none; }
  .eva-byob-card__add { padding: 6px; letter-spacing: 0.03em; white-space: nowrap; }
  .eva-byob-card__step { width: 40px; }
  .eva-byob__tray {
    position: fixed;
    inset: auto 0 0;
    z-index: 55; /* below the header (60) so the mobile menu/search open on top */
    gap: 12px;
    max-height: 85vh;
    padding: 0 16px calc(12px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--eva-line);
    box-shadow: 0 -8px 24px rgba(43, 70, 51, 0.12);
  }
  .eva-byob__tray-bar { display: block; }
  .eva-byob__tray-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--eva-bosque);
    font-family: var(--eva-serif);
    font-weight: 700;
    font-size: 22px;
    text-align: left;
    cursor: pointer;
  }
  .eva-byob__tray-toggle-label { flex: 1; }
  .eva-byob__tray-count { font-family: var(--eva-sans); font-weight: 400; font-size: 14px; letter-spacing: 0.05em; }
  .eva-byob__tray-chevron {
    width: 10px;
    height: 10px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.25s var(--eva-ease);
  }
  .eva-byob__tray.is-open .eva-byob__tray-chevron { transform: rotate(135deg); }
  .eva-byob__panel { display: none; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 8px; }
  .eva-byob__tray.is-open .eva-byob__panel { display: flex; }
  .eva-byob__tray-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .eva-byob__tiers { margin-top: 0; }
  .eva-byob__slots { gap: 12px; }
  .eva-byob__slot-media { width: 64px; }
  .eva-byob__submit { min-height: 52px; }
  .eva-byob__note { display: none; }
  .eva-byob__tray.is-open .eva-byob__note { display: block; }
  .eva-byob__backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 54;
    background: rgba(0, 0, 0, 0.35);
  }
}
/* bundle discount paused: hide savings preview */ .eva-byob__savings, .eva-byob__progress-msg { display: none !important; }