/* ==========================================================================
   ANGLIA FIREWOOD — selector.css
   Crate tiles, delivery toggle, add-ons, totals, info modal.
   Ported from the Easy Fires selector; scoped under .af-sel so it does not
   collide with the legacy .price_table styles still used by Manager's Offers.
   ========================================================================== */



.af-sel,
.af-selmodal {
  /* Inherits the Anglia site font. To match Easy Fires exactly, load
     Barlow Condensed and set: --sel-font: 'Barlow Condensed', sans-serif; */
  --sel-font: inherit;
  --sel-ember: #eb461a;       /* Anglia orange */
  --sel-ember-dark: #c93a12;
  --sel-ink: #1a1712;
  --sel-muted: #7a736a;
  --sel-line: #e2dcd3;
  --sel-paper: #faf7f3;
  --sel-card: #fff;
  --sel-green: #2e7d46;
  --sel-green-bg: #e9f3ec;
  --sel-radius: 10px;

  font-family: var(--sel-font);
  color: var(--sel-ink);
  line-height: 1.45;
}

.af-sel *,
.af-sel *::before,
.af-sel *::after { box-sizing: border-box; }

/* The hidden inputs still drive the form; checked checkboxes serialise even
   when display:none, which is what keeps the payload contract intact. */
.af-sel .table_check,
.af-sel .table_quan { display: none !important; }

/* Steps -------------------------------------------------------------------- */
.af-sel__step {
  background: #e2e2e2;
  /* border: 1px solid var(--sel-line); */
  /* border-radius: var(--sel-radius); */
  /* padding: clamp(14px, 1.6vw, 20px); */
}

.af-sel__step.addonstep {
  background:  transparent;

}

.af-sel__step + .af-sel__step { margin-top: 12px; }

.af-sel__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: inherit;
  background-color: #000;
  padding: 10px;
}

.af-sel__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #e2e2e2;
  color: #000000;
  font-weight: 700;
  font-size: 13px;
}

.af-sel__label {
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.af-sel__more-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 9px 0 10px;
  border: 0;
  border-top: 1px dashed #000000;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  color: var(--sel-ember);
  text-align: center;
  text-decoration: none;
}

.af-sel__more-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Crate tiles -------------------------------------------------------------- */
.af-crates {
  display: grid;
  grid-template-columns: repeat(var(--af-cols, 4), minmax(0, 1fr));
  gap: 10px;
  padding: 4px 10px 0;
}

.af-crate__wrap { position: relative; }

.af-crate {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 12px 12px;
  border: 1.5px solid var(--sel-line);
  border-radius: var(--sel-radius);
  background: var(--sel-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.af-crate:hover:not(:disabled) { border-color: #cbbfae; }

.af-crate.is-on {
  border-color: var(--sel-ember);
  background: linear-gradient(180deg, #fff4ee, #fff);
}

.af-crate.is-oos { opacity: 0.45; cursor: not-allowed; }
.af-crate:focus-visible { outline: 3px solid var(--sel-ember); outline-offset: 2px; }

.af-crate__qty {
  display: block;
  padding-right: 24px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.af-crate__total {
  display: block;
  margin-top: 2px;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1;
}

.af-crate__each {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--sel-muted);
}

.af-crate__save {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sel-green-bg);
  color: var(--sel-green);
  font-weight: 600;
  font-size: 11px;
}

.af-crate__save:empty { display: none; }

.af-crate__badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--sel-ember);
  color: #fff;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.af-crate__tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sel-line);
  border-radius: 50%;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.af-crate.is-on .af-crate__tick { background: var(--sel-ember); border-color: var(--sel-ember); }

.af-crate.is-on .af-crate__tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.af-crate__oos { display: none; }

.af-crate.is-oos .af-crate__oos {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #efe6d8;
  color: var(--sel-muted);
  font-weight: 600;
  font-size: 11px;
}

.af-crate.is-oos .af-crate__save { display: none; }

/* Delivery ----------------------------------------------------------------- */
.af-deliv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0px 10px 20px;
}

.af-deliv--single { grid-template-columns: minmax(0, 1fr); }

.af-deliv__opt {
  position: relative;
  display: block;
  padding: 14px 12px;
  border: 1.5px solid var(--sel-line);
  border-radius: var(--sel-radius);
  background: var(--sel-card);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.af-deliv__opt:hover { border-color: #cbbfae; }

.af-deliv__opt.is-on {
  border-color: var(--sel-ember);
  background: linear-gradient(180deg, #fff4ee, #fff);
}

.af-deliv__opt:focus-visible { outline: 3px solid var(--sel-ember); outline-offset: 2px; }

.af-deliv__tick {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--sel-line);
  border-radius: 50%;
}

.af-deliv__opt.is-on .af-deliv__tick { background: var(--sel-ember); border-color: var(--sel-ember); }

.af-deliv__opt.is-on .af-deliv__tick::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.af-deliv__name {
  display: block;
  padding-right: 24px;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.af-deliv__time {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--sel-muted);
}

.af-deliv__tag {
  display: inline-block;
  margin-top: 9px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.af-deliv__tag.is-free { background: var(--sel-green-bg); color: var(--sel-green); }
.af-deliv__tag.is-fast { background: #fdece3; color: var(--sel-ember); }

/* Add-ons ------------------------------------------------------------------ */
.af-addon {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0px 0 12px;
  border-top: 1px solid var(--sel-line);
}

.af-addons > .af-addon:first-child { border-top: 0; }

.af-addons--more > .af-addon:first-child {
    border-top: 1px solid var(--sel-line);
}

.af-addon__main {
  flex: 1;
  min-width: 0;
  padding: 3px 5px;
  margin: -3px -5px;
  border: 0;
  border-radius: 7px;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background-color 150ms ease;
}

.af-addon__main:hover { background: var(--sel-paper); }
.af-addon__main:focus-visible { outline: 2px solid var(--sel-ember); outline-offset: 1px; }

.af-addon__name-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.af-addon__name {font-weight: 700;font-size: 20px;}

.af-addon__flag {
  padding: 1px 7px;
  border-radius: 5px;
  background: #fdece3;
  color: var(--sel-ember);
  font-weight: 600;
  font-size: 10px;
}

.af-addon__dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.3px solid var(--sel-muted);
  border-radius: 50%;
  color: var(--sel-muted);
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
}

.af-addon__desc {
  display: block;
  margin-top: 1px;
  font-size: 14px;
  color: var(--sel-muted);
}

.af-addon__whats { color: var(--sel-ember); font-weight: 600; }

.af-addon__price { flex: none; font-weight: 700; font-size: 15px; }

.af-addon__add {
  flex: none;
  min-width: 68px;
  padding: 9px 15px;
  border: 1.5px solid var(--sel-ember);
  border-radius: 9px;
  background: #fff;
  color: var(--sel-ember);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background-color 150ms ease, color 150ms ease;
}

.af-addon__add:hover { background: #fdece3; }
.af-addon__add.is-on { background: var(--sel-ember); border-color: var(--sel-ember); color: #fff; }

.af-addon.is-locked { opacity: 0.5; }
.af-addon.is-locked .af-addon__add { border-color: var(--sel-line); color: var(--sel-muted); pointer-events: none; }
.af-addon.is-locked .af-addon__main { pointer-events: auto; }

.af-addon__stepper {
  display: none;
  align-items: center;
  flex: none;
  border: 1.5px solid var(--sel-ember);
  border-radius: 9px;
  overflow: hidden;
}

.af-addon__stepper button {
  width: 36px;
  height: 38px;
  border: 0;
  background: #fff;
  color: var(--sel-ember);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.af-addon__stepper button:hover { background: #fdece3; }

.af-addon__count {
  min-width: 34px;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
}

.af-addon__stepper button:disabled { color: var(--sel-line); cursor: default; }
.af-addon__stepper button:disabled:hover { background: #fff; }

/* Multi-pack tiers --------------------------------------------------------- */
/* Price column: the line's total, with the each price under it once the
   quantity is more than one. */
.af-addon__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
}

.af-addon__each {
  font-weight: 500;
  font-size: 12px;
  color: var(--sel-muted);
  white-space: nowrap;
}

/* One line under "What's this?": the saving on the chosen pack, as the same
   green pill the crate tiles use, or a note after a delivery switch. */
.af-addon__tier {
  display: block;
  margin-top: 3px;
  font-weight: 600;
  font-size: 13px;
  color: var(--sel-ink);
}

.af-addon__tier:empty { display: none; }

.af-addon__tier.is-saving {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--sel-green-bg);
  color: var(--sel-green);
  font-size: 11px;
  display: none;
}

.af-addon__tier.is-note { color: var(--sel-ember); }

.af-addon.is-locked .af-addon__tier { display: none; }

/* Price breaks: small versions of the crate tiles, one per pack size. They
   take a full row under the add-on, so the row wraps when it has them. */
.af-addon.has-breaks { flex-wrap: wrap; }

.af-breaks {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.af-breaks[hidden] { 
  display: none; 
}
.af-break {
  position: relative;
  display: flex;
  flex-direction: row; /* Horizontal alignment */
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1.5px solid var(--sel-line);
  border-radius: 6px;
  background: var(--sel-card);
  color: var(--sel-ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.af-break:hover { 
  border-color: #cbbfae; 
}
.af-break:focus-visible { 
  outline: 3px solid var(--sel-ember); 
  outline-offset: 2px; 
}
.af-break.is-on {
  border-color: var(--sel-ember);
  background: linear-gradient(180deg, #fff4ee, #fff);
}
.af-break__qty {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.af-break__total {
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.af-break__each {
  font-size: 11px;
  color: var(--sel-muted);
  font-variant-numeric: tabular-nums;
}
.af-break.is-best .af-break__each { 
  color: var(--sel-green); 
  font-weight: 600; 
}
.af-break__tag {
  position: absolute;
  top: -7px;
  right: -4px;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--sel-ember);
  color: #fff;
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Show more ---------------------------------------------------------------- */
.af-addons--more {
  position: relative;
  overflow: hidden;
  transition: max-height 350ms ease;
}

.af-addons--more.is-collapsed { max-height: 96px; }

.af-addons__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--sel-card) 82%);
  pointer-events: none;
}

.af-addons--more:not(.is-collapsed) .af-addons__fade { display: none; }

.af-addons__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 11px;
  border: 1px solid var(--sel-line);
  border-radius: 9px;
  background: var(--sel-paper);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background-color 150ms ease;
}

.af-addons__toggle:hover { background: #efe6d8; }

.af-addons__chev {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  transition: transform 200ms ease;
}

.af-addons__toggle.is-open .af-addons__chev { transform: rotate(180deg); }

/* Totals ------------------------------------------------------------------- */
.af-sel__total {
  margin-top: 12px;
  padding: clamp(14px, 1.6vw, 20px);
  /* border: 1px solid var(--sel-line); */
  border-radius: var(--sel-radius);
  background: var(--sel-card);
  padding-left: 0;
  padding-right: 0;
}

.af-sel__figs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px;
  text-align: center;
}

.af-fig { flex: 1; min-width: 82px; }

.af-fig__l {
  display: block;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--sel-muted);
}

.af-fig__v {
  display: block;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.af-fig--reg .af-fig__v {color: var(--sel-muted);text-decoration: line-through;font-size: 24px;font-weight: 500;}
.af-fig--save .af-fig__v { color: var(--sel-green); }
.af-fig--pay .af-fig__v {color: var(--sel-ember);font-size: 32px;}

.af-fig__v.is-flash { animation: af-sel-flash 400ms ease; }

@keyframes af-sel-flash {
  0% { transform: scale(1); }
  40% { transform: scale(1.07); }
  100% { transform: scale(1); }
}

.af-sel .af-sel__cart {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 16px 22px;
  border: 0;
  border-radius: 11px;
  background: var(--sel-ember);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 150ms ease;
}

.af-sel .af-sel__cart:hover { background: var(--sel-ember-dark); }
.af-sel .af-sel__cart.is-busy { opacity: 0.6; cursor: wait; }

.af-sel__status:empty { display: none; }

.af-sel__status {
  margin: 10px 0 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--sel-ember);
  text-align: center;
}

/* Info modal --------------------------------------------------------------- */
.af-selmodal {
  width: min(480px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: var(--sel-ink);
  font-family: var(--sel-font);
}

.af-selmodal::backdrop { background: rgba(26, 23, 18, 0.5); }

.af-selmodal__inner { position: relative; padding: 24px 22px 26px; }

.af-selmodal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--sel-paper);
  color: var(--sel-muted);
  cursor: pointer;
}

.af-selmodal__close:hover { background: #efe6d8; color: var(--sel-ink); }

.af-selmodal__close svg {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
}

.af-selmodal__price { margin: 0 0 2px; font-weight: 700; font-size: 15px; color: var(--sel-ember); }
.af-selmodal__price:empty { display: none; }

.af-selmodal__title { margin: 0 0 12px; font-weight: 700; font-size: 22px; padding-right: 40px; }

.af-selmodal__body { font-size: 14px; line-height: 1.6; }
.af-selmodal__body img { max-width: 80%; height: auto; border-radius: 9px; margin: 8px 0; }
.af-selmodal__body p { margin: 0 0 0.8em; }

.af-selmodal__actions { display: flex; gap: 10px; margin-top: 20px; }

.af-selmodal__add {
  flex: 1;
  padding: 14px;
  border: 0;
  border-radius: 11px;
  background: var(--sel-ember);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.af-selmodal__add[disabled] { opacity: 0.5; cursor: not-allowed; }

.af-selmodal__cancel {
  padding: 14px 18px;
  border: 1px solid var(--sel-line);
  border-radius: 11px;
  background: var(--sel-paper);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
}

.af-selmodal__row {
  display: block;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--sel-line);
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
}

a.af-selmodal__row:hover { border-color: var(--sel-ember); background: var(--sel-paper); }
.af-selmodal__row strong { display: block; }
.af-selmodal__row small { color: var(--sel-muted); }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 500px) {
  .af-crates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-deliv { grid-template-columns: minmax(0, 1fr); }
  .af-addon { flex-wrap: wrap; }
  .af-sel__figs { gap: 10px; }
  .af-fig { min-width: 0; }
  .af-fig__v, .af-fig--reg .af-fig__v { font-size: 20px; }
  .af-fig--pay .af-fig__v { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .af-sel *, .af-sel *::before, .af-sel *::after {
    animation: none !important;
    transition: none !important;
  }
}


.af-addons {
    padding: 0px 20px;
}


.af-addon:not(.is-added) .af-breaks {
    display: none;
}

/* Crate Stepper */
.af-crate__stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border: 1.5px solid var(--sel-line);
  border-radius: 9px;
  background: var(--sel-card);
  overflow: hidden;
  transition: border-color 150ms ease;
  width: 100%;
}

/* Highlight stepper when the crate is selected */
.af-crate__wrap.is-on .af-crate__stepper {
  border-color: var(--sel-ember);
}

.af-crate__stepper button {
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--sel-ember);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}

.af-crate__stepper button:hover {
  background: var(--sel-paper);
}

.af-crate__step-val {
  flex: 1;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  color: var(--sel-ink);
}

/* --------------------------------------------------------------------------
   Anglia additions
   -------------------------------------------------------------------------- */

/* Defend against theme / Bootstrap button and heading styles. */
.af-sel button,
.af-selmodal button {
  font-family: inherit;
  line-height: 1.3;
  box-shadow: none;
  min-height: 0;
}

.af-sel .af-sel__head { line-height: 1.2; }

.af-sel .af-sel__head,
.af-sel h2 { text-align: left; }

.af-sel__step + .af-sel__step,
.af-sel__step + .af-sel__step.addonstep { margin-top: 16px; }

/* Delivery step -------------------------------------------------------------- */
.af-sel__step--delivery { padding-bottom: 4px; }

.af-deliv { padding-bottom: 6px; }

.af-deliv__tag.is-vip { background: var(--sel-green-bg); color: var(--sel-green); }
.af-deliv__tag.is-off { background: #efe6d8; color: var(--sel-muted); }

.af-deliv__opt.is-unavailable { opacity: 0.5; cursor: not-allowed; }
.af-deliv__opt.is-unavailable:hover { border-color: var(--sel-line); }

.af-deliv--single .af-deliv__opt { cursor: default; }

.af-deliv__compare {
  display: block;
  padding: 4px 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--sel-ember);
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.af-deliv__compare:hover { color: var(--sel-ember-dark); }

/* Out of stock --------------------------------------------------------------- */
.af-preorder-notice {
  clear: both;
  display: block;
  margin: 0 0 20px;
  padding: 20px;
  background: #000;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-align: center;
}

.af-stock-alert__title { font-size: 3vh; font-weight: 700; padding-bottom: 0; }
.af-stock-alert__sub { font-size: 16px; font-style: italic; }

/* Delivery first ------------------------------------------------------------- */
.af-deliv__prompt {
  margin: -4px 10px 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--sel-ink);
}

.af-sel:not(.is-awaiting) .af-deliv__prompt { display: none; }

/* Steps after delivery are visible (so prices can be compared) but read as
   locked until a method is chosen. */
.af-sel.is-awaiting .af-sel__step:not(.af-sel__step--delivery),
.af-sel.is-awaiting .af-sel__total { opacity: 0.55; }

.af-sel.is-awaiting .af-crate,
.af-sel.is-awaiting .af-addon__add,
.af-sel.is-awaiting .af-sel__cart { cursor: not-allowed; }

.af-sel.is-awaiting .af-sel__step--delivery .af-deliv__opt { border-color: var(--sel-ember); }

.af-crate__from {
  font-size: 12px;
  font-weight: 600;
  color: var(--sel-muted);
  text-transform: lowercase;
}

.af-sel__step--delivery.is-nudge { animation: af-sel-nudge 600ms ease; }

@keyframes af-sel-nudge {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Add-on groups (e.g. Rain Jacket in three styles) ------------------------- */
.af-addon-group {
  padding: 10px 0 2px;
  border-top: 1px solid var(--sel-line);
}

.af-addons > .af-addon-group:first-child { border-top: 0; padding-top: 0; }

.af-addon-group__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
  cursor: pointer;
}

.af-addon-group__hint { font-size: 13px; color: var(--sel-muted); }

.af-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.af-variant,
.af-selmodal__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 6px;
  border: 1.5px solid var(--sel-line);
  border-radius: 999px;
  background: var(--sel-card, #fff);
  color: var(--sel-ink);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.af-variant:not(:has(img)),
.af-selmodal__tab:not(:has(img)) { padding-left: 12px; }

.af-variant:hover,
.af-selmodal__tab:hover { border-color: #cbbfae; }

.af-variant.is-current,
.af-selmodal__tab.is-current { border-color: var(--sel-ember); background: linear-gradient(180deg, #fff4ee, #fff); }

.af-variant.is-locked { opacity: 0.5; }
.af-variant:focus-visible,
.af-selmodal__tab:focus-visible { outline: 3px solid var(--sel-ember); outline-offset: 2px; }

.af-variant__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: #faf7f3;
}

.af-variant__added:empty { display: none; }

.af-variant__added {
  position: absolute;
  top: -7px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2e7d46;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* Only the current style's row shows; the others keep their inputs. */
.af-addon--variant:not(.is-current) { display: none; }
.af-addon--variant { border-top: 0; }

/* Style tabs in the info modal */
.af-selmodal__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 44px 14px 0;
}

.af-selmodal__variants[hidden] { display: none; }

/* ==========================================================================
   UX pass
   ========================================================================== */

/* Step headers: number turns green and a summary of the choice shows on the
   right once a step is done. */
.af-sel__summary {
  margin-left: auto;
  overflow: hidden;
  max-width: 60%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.af-sel__summary:empty { display: none; }

.af-sel__num { transition: background-color 200ms ease, color 200ms ease; }
.af-sel__step.is-done .af-sel__num {  }

/* Express: earliest date and cut-off countdown */
.af-deliv__date strong { color: var(--sel-ink); font-weight: 700; }

.af-deliv__countdown {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--sel-green);
}

.af-deliv__countdown:empty { display: none; }

/* Extras: added rows read as added at a glance */
.af-addon.is-added .af-addon__name { color: var(--sel-ember); }

/* Grouped extras: one head (title + What's this?), then the style buttons
   and the current style's price + Add on a single line. */
.af-addon-group__head {
  display: block;
  width: 100%;
  margin: 0 -5px;
  padding: 3px 5px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  color: inherit;
}

.af-addon-group__head:hover { background: var(--sel-paper); }
.af-addon-group__head:focus-visible { outline: 2px solid var(--sel-ember); outline-offset: 1px; }

.af-addon-group__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 8px 0 12px;
}

.af-addon-group__body .af-variants { flex: 1 1 auto; margin: 0; }

.af-addon-group__body .af-addon--variant {
  flex: none;
  margin-left: auto;
  padding: 0;
  border: 0;
}

.af-addon-group__body .af-addon--variant.has-breaks { flex: 1 1 100%; }

/* Sticky basket bar (small screens) */
.af-sticky {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9990;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.12);
  font-family: inherit;
  transform: translateY(110%);
  transition: transform 220ms ease;
}

.af-sticky__l { font-size: 13px; color: #7a736a; }
.af-sticky__l strong { display: block; color: #eb461a; font-size: 22px; line-height: 1.1; }

.af-sticky__btn {
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: #eb461a;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .af-sticky { display: flex; }
  .af-sticky.is-on { transform: translateY(0); }
}

@media (max-width: 500px) {
  .af-sel__summary { max-width: 48%; font-size: 12px; }
  .af-addon__name { font-size: 14px; }
  .af-addon { gap: 8px; }
  .af-addon__stepper button { width: 32px; }
  .af-addon__count { min-width: 26px; }
  .af-addon-group__body .af-addon--variant { margin-left: 0; width: 100%; justify-content: flex-end; }

  span.af-addon__desc > span:nth-child(2), .af-addon__flag {
    display: none
}


}

@media (prefers-reduced-motion: reduce) {
  .af-sticky { transition: none; }
}

.af-deliv__note {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--sel-muted);
}


/* Align the image and text side-by-side */
.af-addon__main, 
.af-addon-group__head {
    display: flex;
    align-items: center;
    gap: 16px; /* Space between image and text */
    text-align: left;
    width: 100%;
    background: transparent;
    border: none;
    padding: 6px 0; /* A little breathing room */
    transition: opacity 0.2s ease-in-out;
}

/* Subtle hover effect for the whole row */
.af-addon__main:hover, 
.af-addon-group__head:hover {
    opacity: 0.75;
    cursor: pointer;
}

/* Premium styling for the image thumbnail */
.af-addon__thumb {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px; /* Nice rounded corners */
    overflow: hidden;
    background-color: #f4f4f4; /* Placeholder color while loading */
    border: 1px solid rgba(0, 0, 0, 0.05); /* Very faint border */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); /* Soft lift/shadow */
    display: flex;
}

/* Make sure the image perfectly fills the box without stretching */
.af-addon__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Keep the text stacked neatly */
.af-addon__text-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px; /* Tiny gap between title and "What's this?" */
}

/* Ensure the main button expands to push the price to the right */
.af-addon {
    display: flex;
    align-items: center;
}
.af-addon__main {
    flex-grow: 1;
}





/* 1. Prevent iOS from natively restyling buttons */
.af-sel button,
.af-sel a,
.af-selmodal button,
.af-selmodal a {
    -webkit-appearance: none;
    appearance: none;
}

/* 2. Remove the blue flash overlay when tapping on mobile */
.af-sel *,
.af-selmodal * {
    -webkit-tap-highlight-color: transparent;
}

/* 3. Force auto-detected phone numbers (prices/quantities) to inherit your colors */
.af-sel a[href^="tel"],
.af-selmodal a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
}

/* ==========================================================================
   Theme Bleed Overrides (Force text colors against global theme defaults)
   ========================================================================== */

.af-sel a,
.af-sel button,
.af-sel .af-crate__qty,
.af-sel .af-crate__total,
.af-sel .af-deliv__name,
.af-sel .af-addon__name {
    color: var(--sel-ink) !important;
    text-decoration: none !important;
}

/* Ensure the links meant to be orange stay orange */
.af-sel .af-addon__whats,
.af-sel .af-deliv__compare,
.af-sel .af-sel__more-link {
    color: var(--sel-ember) !important;
}

/* Ensure specific price text and disabled buttons inherit correctly */
.af-sel .af-addon.is-locked .af-addon__add {
    color: var(--sel-muted) !important;
}


/* 1. Modal List Styling */
.af-selmodal__body ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.af-selmodal__body li {
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

/* 2. Text Limiting & Truncation Wrapper */
.af-selmodal__desc-wrap {
    position: relative;
}

.af-selmodal__desc-content {
    /* Adjust this value based on your image heights so some text is always visible */
    max-height: 480px; 
    overflow: hidden;
    transition: max-height 0.3s ease;
}

/* Gradient fade-out over the text when collapsed */
.af-selmodal__desc-wrap:not(.is-expanded)::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    /* Adjust 'rgba(255,255,255,1)' if your modal background isn't white */
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1)); 
    pointer-events: none;
}

/* 3. Show More Button Styling */
.af-selmodal__show-more {
    display: inline-block;
    background: transparent;
    border: none;
    color: var(--sel-green, #2b8a3e);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 0 0 0;
    margin-top: 0.25rem;
    cursor: pointer;
    text-decoration: underline;
}

.af-selmodal__show-more:hover {
    text-decoration: none;
}



div:has(> button.is-oos) {
  display: none !important;
}