/* =========================================================
   AlterEvolveListing — front.css (PS 8.2.1)

   v6 fixes:
   - Desktop: bottom-anchored content without mid-gaps (spacer at top only) + thin nice scrollbar
   - Mobile: sheet height measured from real visible content (shrinks back on "achat unique")
   - Isolation: no collisions with theme custom.js/css (no generic IDs/classes like #nw-subscribe-block, .select-wrapper, .plus-btn/.minus-btn)
   - Visual: inputs bg #EDEDF3, chevron +/- accent #E62249, radios custom (bg white, border #777, dot #E62249)
   ========================================================= */

:root{
  --ael-bg: #000;
  --ael-fg: #fff;
  --ael-muted: rgba(255,255,255,.72);
  --ael-line: rgba(255,255,255,.14);
  --ael-accent: #E62249;
  --ael-radius: 12px;

  --ael-input-bg: #EDEDF3;
  --ael-input-fg: #0F0F0F;

  --ael-sheet-dur: 420ms;
}

html.ael-no-scroll,
body.ael-no-scroll{ overflow:hidden !important; }

/* Ensure card can host absolute overlay */
.product-miniature,
.js-product-miniature{ position: relative; }

/* Desktop holder injected in card */
.product-miniature > .ael-holder,
.product-miniature .thumbnail-container > .ael-holder{
  position:absolute;
  inset:0;
  z-index: 50;
  pointer-events:none;
  overflow:hidden;
}
.product-miniature > .ael-holder.is-open,
.product-miniature .thumbnail-container > .ael-holder.is-open{ pointer-events:auto; }

/* Fullscreen holder (mobile) */
#ael-fs-holder{
  position: fixed;
  inset: 0;
  z-index: 1200;
  pointer-events:none;
  background: transparent;
}
#ael-fs-holder.is-open{ pointer-events:auto; }

/* Base overlay */
.ael-overlay-card{
  font-size: 14px;
  line-height: 1.35;
  color: var(--ael-fg);
  /* Global black gradient (requested) */
  background: linear-gradient(159deg, #000000 20.53%, #202020 85.89%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.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;
}

/* =========================================================
   Icons (no filters; recolor via background)
   ========================================================= */
.ael-icon{
  display:inline-block;
  width: 18px;
  height: 18px;
  background: #FFEFD0;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.ael-icon--plus{ background: var(--ael-accent); -webkit-mask-image:url("../img/plus-icon.svg"); mask-image:url("../img/plus-icon.svg"); }
.ael-icon--minus{ background: var(--ael-accent); -webkit-mask-image:url("../img/moins-icon.svg"); mask-image:url("../img/moins-icon.svg"); }
.ael-select-chevron{
  background: var(--ael-accent);
  -webkit-mask-image:url("../img/chevron-icon.svg");
  mask-image:url("../img/chevron-icon.svg");
  /* IMPORTANT: mask defaults to repeat -> looks like a “double chevron” */
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.ael-icon--crown{ width: 20px; height: 20px; background: #FFEFD0; -webkit-mask-image:url("../img/crown-icon.svg"); mask-image:url("../img/crown-icon.svg"); }
.ael-icon--info{ width: 18px; height: 18px; background: #FFEFD0; -webkit-mask-image:url("../img/info-loyalty-icon.svg"); mask-image:url("../img/info-loyalty-icon.svg"); opacity:.9; }
.ael-icon--cart{ width: 27px; height: 36px; background:#FFEFD0; -webkit-mask-image:url("../img/addtocart-icon.svg"); mask-image:url("../img/addtocart-icon.svg"); }
.ael-footer-pricewrap{margin-top: 8px}
/* =========================================================
   MOBILE
   ========================================================= */
@media (max-width: 991px){
  .ael-overlay-card{
    position: fixed;
    inset: 0;
    height: var(--ael-vh, 100dvh);
    background: var(--ael-bg);
    display:flex;
    flex-direction: column;
    opacity:0;
    transform: translate3d(0,10px,0);
    transition: transform .26s cubic-bezier(.22,1,.36,1), opacity .22s ease;
  }
  .ael-overlay-card.is-open{ opacity:1; transform:none; }

  /* Topbar */
  .ael-topbar{
    flex: 0 0 auto;
    background: var(--ael-bg);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .ael-topbar-actions{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
    padding: 10px 12px;
    background: rgba(0,0,0,.92);
    backdrop-filter: blur(10px);
  }
  .ael-topbar-left{ height: 1px; }
  .ael-topbar-close{
    width: 42px;
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    color: var(--ael-fg);
    font-size: 24px;
    line-height: 1;
    justify-self: center;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  .ael-topbar-link{
color: #ffffff;
    justify-self: end;
font-weight: 500;
    font-size: 13px;
    display:inline-flex;
    align-items:center;
    gap:8px;

    text-decoration: underline;
    text-underline-offset: 4px;
    letter-spacing: 1px;


    white-space: nowrap;
  }
  .ael-topbar-icon{ width:24px; height:24px; display:block; opacity:1; }

  /* Stage */
  .ael-stage{
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--ael-bg);
    overflow: hidden;
  }

  /* Photo zone under topbar */
  .ael-photo{
    width: 100%;
    height: calc(100vw + var(--ael-photo-extra, 0px));
    background: #ffffff;
    overflow:hidden;
    position: relative;
    z-index: 1;
  }
  .ael-photo img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display:block;
    transform-origin: 50% 0%;
    will-change: transform;
    transform: scale(var(--ael-photo-scale, 1));
    transition: transform .12s linear;
  }

  /* Bottom sheet */
  .ael-panel{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--ael-sheet-h, 60vh);
    max-height: calc(100% - 8px);
    background: linear-gradient(159deg, #000000 20.53%, #202020 85.89%);
    border-top: 1px solid rgba(255,255,255,.12);
    border-radius: 18px 18px 0 0;
    overflow: hidden;
    display:flex;
    flex-direction: column;
    z-index: 2;
    will-change: transform, height;
    transition: height var(--ael-sheet-dur) cubic-bezier(.22,1,.36,1), transform var(--ael-sheet-dur) cubic-bezier(.22,1,.36,1);
  }


  /* Intro: start sheet fully off-screen so photo is 100% visible, then slide up */
  .ael-overlay-card.is-intro .ael-panel{
    transform: translate3d(0, 120%, 0);
  }
  .ael-grab-handle{
    /* Bigger touch target (requested) */
    height: 46px;
    display:flex;
    align-items:center;
    justify-content:center;
    /* Keep a single gradient on the panel itself (avoid visible seams) */
    background: transparent;
  }
  .ael-grab-handle::before{
    content:'';
    width: 62px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.28);
  }

  /* Panel body scroll only */
  .ael-panel-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    /* Keep a single gradient on the panel itself (avoid visible seams) */
    background: transparent;
  }

  .ael-panel-footer{
    flex: 0 0 auto;
    /* Keep a single gradient on the panel itself (avoid visible seams) */
    background: transparent;

    padding: 12px 0 0 12px
  }
}

/* =========================================================
   DESKTOP
   ========================================================= */
@media (min-width: 992px){
  .ael-topbar{ display:none !important; }
  .ael-photo{ display:none !important; }

  .ael-overlay-card{
    position:absolute;
    inset: 0;
    border-radius: var(--ael-radius);
    background: linear-gradient(159deg, #000000 20.53%, #202020 85.89%);
    box-shadow: 0 12px 32px rgba(0,0,0,.40);
    overflow:hidden;
    opacity:0;
    transform: translateY(8px) scale(.995);
    transition: transform .22s cubic-bezier(.22,1,.36,1), opacity .22s ease;
    padding-top: 16px;
  }
  .ael-overlay-card.is-open{ opacity:1; transform:none; }

  /* Nicer desktop hover: lightly stagger content + footer */
  .ael-overlay-card .ael-content,
  .ael-overlay-card .ael-panel-footer{
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s cubic-bezier(.22,1,.36,1);
  }
  .ael-overlay-card.is-open .ael-content,
  .ael-overlay-card.is-open .ael-panel-footer{
    opacity: 1;
    transform: none;
  }

  .ael-stage{ height: 100%; }

  .ael-panel{
    position: relative;
    height: 100%;
    /* Single gradient already on .ael-overlay-card (avoid visible seams) */
    background: transparent;
    display:flex;
    flex-direction: column;
    overflow:hidden;
  }

  .ael-grab-handle{ display:none !important; }

  .ael-panel-body{
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    /*scrollbar-gutter: stable;*/
    /* Keep a single gradient on the panel itself (avoid visible seams) */
    background: transparent;
    display:flex;
    flex-direction: column;
  }

  /* Bottom anchor without creating mid-gaps */
  .ael-panel-body-inner{ margin-top: auto; }

  /* Desktop scrollbar: thin & subtle */
  .ael-panel-body{ scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; }
  .ael-panel-body::-webkit-scrollbar{ width: 4px; }
  .ael-panel-body::-webkit-scrollbar-track{ background: transparent; }
  .ael-panel-body::-webkit-scrollbar-thumb{
    background-color: rgba(255,255,255,.22);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: content-box;
  }
  .ael-panel-body::-webkit-scrollbar-thumb:hover{ background-color: rgba(255,255,255,.34); }

  .ael-panel-footer{
    flex: 0 0 auto;
    /* Keep a single gradient on the panel itself (avoid visible seams) */
    background: transparent;

    padding: 14px 16px;
  }
}

/* =========================================================
   Shared UI (scoped)
   ========================================================= */
.ael-overlay-card *,
.ael-overlay-card *::before,
.ael-overlay-card *::after{ box-sizing: border-box; }



.ael-content{ padding: 12px 16px 0 14px; }

.ael-field{ margin: 0 0 14px}
.ael-field:last-child{ margin-bottom: 0; }
.ael-field label{text-align: left}
.ael-field--qty{margin:16px 0}
.ael-field-label{
  display:block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 0 8px;
  color: var(--ael-fg);
  margin:0;
}

/* Inputs: light bg (#EDEDF3) */
.ael-overlay-card input,
.ael-overlay-card select{
  font-family: inherit;
}

.ael-select-wrapper{ position: relative; width: 100%; }

/* Native <select> kept for a11y + form submission, but visually hidden.
   All user interaction goes through .ael-select-face + .ael-options-list. */
.ael-select{
  position:absolute;
  inset:0;
  width:100%;
  height:44px;
  opacity:0;
  pointer-events:none;
  border:0;
  padding:0;
  margin:0;
}

/* Visible faux-select button */
.ael-select-face{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  height:44px;
  border-radius:3px;
  border:0;
  background:#EDEDF3;
  color:#0F0F0F;
  padding:10px 44px 10px 12px;
  font-family:inherit;
  font-weight:500;
  font-size:16px;
  text-align:left;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  transition:background .15s ease, box-shadow .15s ease;
}
.ael-select-face:hover{ background:#E3E3ED; }
.ael-select-face:focus-visible{
  outline:2px solid rgba(230,34,73,.55);
  outline-offset:2px;
}
.ael-select-face-label{
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  line-height:1;
}

.ael-select-chevron{
  position:absolute;
  top:50%;
  right:12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%) rotate(0);
  transition: transform .25s ease;
  pointer-events:none;
  opacity: 1;
}
.ael-select-wrapper.is-open .ael-select-chevron{ transform: translateY(-50%) rotate(180deg); }
.ael-select-wrapper.opened .ael-select-chevron{ transform: translateY(-50%) rotate(180deg); }

/* Custom options panel — flat design on dark overlay background.
   position: fixed so it escapes .ael-panel-body overflow clipping and
   panel-footer stacking. Coordinates are set inline in JS (initCustomSelects). */
.ael-options-list{
  position:fixed;
  z-index:600;
  list-style:none;
  margin:0;
  padding:6px;
  border-radius:10px;
  background:#15171c;
  border:1px solid var(--ael-line);
  box-shadow:0 12px 32px rgba(0,0,0,.45);
  max-height:260px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ael-options-list[hidden]{ display:none; }

.ael-option{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:6px;
  color:var(--ael-fg);
  font-weight:500;
  font-size:15px;
  line-height:1.2;
  cursor:pointer;
  user-select:none;
  transition:background .12s ease, color .12s ease, opacity .12s ease;
}
.ael-option:hover{ background:rgba(255,255,255,.06); }
.ael-option[aria-selected="true"]{
  background:var(--ael-accent);
  color:#fff;
}
.ael-option[aria-selected="true"] .ael-option-check{
  opacity:1;
}
.ael-option.is-unavailable,
.ael-option[aria-disabled="true"]{
  opacity:.42;
  cursor:not-allowed;
  text-decoration:line-through;
  text-decoration-thickness:1px;
}
.ael-option.is-unavailable:hover,
.ael-option[aria-disabled="true"]:hover{
  background:transparent;
}
.ael-option-label{
  flex:1 1 auto;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ael-option-check{
  flex:0 0 auto;
  width:14px;
  height:14px;
  border-radius:999px;
  background:#fff;
  opacity:0;
  transition:opacity .12s ease;
}

/* -------------------------
   Variant badges UI (opt-in via BO setting AEL_VARIANT_UI = "badges")
   ------------------------- */
.ael-badges{
  display:flex;
  flex-wrap:wrap;
  /* front finitions: wider gap between declension chips so fat fingers can
     pick a value without mis-tapping a neighbour. */
  gap:10px;
}
.ael-badge{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:#202020;
  color:#fff;
  border-radius:3px;
  /* front finitions: taller chips (~38px) for comfortable touch targets. */
  padding:7px 13px;
  font-family:inherit;
  font-weight:500;
  font-size:15px;
  line-height:1.6;
  cursor:pointer;
  user-select:none;
  transition:background .18s ease, color .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.ael-badge:hover:not(.is-unavailable):not(.is-selected){
  background:#2c2c2c;
}
.ael-badge:focus-visible{
  outline:2px solid rgba(230,34,73,.6);
  outline-offset:2px;
}
.ael-badge.is-selected{
  background:var(--ael-accent);
  color:#fff;
  box-shadow:0 2px 10px rgba(230,34,73,.35);
  animation:ael-badge-pop .28s cubic-bezier(.22,1,.36,1);
}
.ael-badge.is-unavailable{
  opacity:.35;
  text-decoration:line-through;
  text-decoration-thickness:1px;
  cursor:not-allowed;
}
.ael-badge.is-unavailable:hover{ background:#202020; }

@keyframes ael-badge-pop{
  0%   { transform:scale(1); }
  40%  { transform:scale(1.08); }
  100% { transform:scale(1); }
}
@media (prefers-reduced-motion: reduce){
  .ael-badge.is-selected{ animation:none; }
}

/* Qty */
.ael-qty-group{ position: relative; }
.ael-qty-input{
  width:100%;
  height: 44px;
  border-radius:3px;
  border: 0;
  background: #EDEDF3;
  color: #0F0F0F;
  padding: 10px 92px 10px 12px;
  font-weight: 700;
  text-align: left;
  outline: none;
}
/* hide native steppers */
.ael-qty-input::-webkit-outer-spin-button,
.ael-qty-input::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
.ael-qty-input{ -moz-appearance: textfield; }

.ael-qty-actions{
  position:absolute;
  top:50%;
  right: 10px;
  transform: translateY(-50%);
  height: 44px;
  display:flex;
  align-items:center;
  gap: 10px;
}

.ael-qty-btn{
  border: 0;
  background: transparent;
  width: 26px;
  height: 26px;
  padding: 0;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.ael-qty-btn:active{ transform: scale(.96); }
.ael-qty-btn.is-hidden{ display:none !important; }

/* Subscribe (custom radios) */
.ael-nw-subscribe-block{ margin: 0}
.ael-radio-group{ margin:0; padding:0; border:0; }

/* front finitions: render the buy-mode choice (one-time / subscription) as
   chips that match the declension badges (.ael-badge) — dark pill, amaranth
   when selected — instead of round radios. The hidden <input> still drives
   selection and the frequency controls keep stacking below. */
.ael-radio-group{ display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.ael-radio-line{ padding: 0; }
.ael-radio-left{ display:inline-flex; }

.ael-radio-input{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
}

.ael-radio-label{
  position:relative;
  margin:0;
  padding:7px 13px;
  cursor:pointer;
  background:#202020;
  color:#fff;
  border-radius:3px;
  font-weight:500;
  font-size:15px;
  line-height:1.6;
  transition:background .18s ease, box-shadow .18s ease;
}
.ael-radio-input:checked + .ael-radio-label{
  background: var(--ael-accent);
  box-shadow:0 2px 10px rgba(230,34,73,.35);
}

.ael-sub-adv{
  background: rgba(255,255,255,.10);
  padding: 10px 12px;
  margin: 10px 0 0;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ael-fg);
  border-radius: 10px;
}

.ael-sub-controls{ padding: 16px 0 0; }
.ael-field-label--freq{ margin: 0 0 8px; font-size:13px; color: rgba(255,255,255,.7); }


/* Loyalty */
.ael-loyalty-advantages{

  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 14px 16px;
  border-radius: 12px;
}
.ael-loyalty-left{ display:flex; align-items:center; gap: 10px; }
.ael-loyalty-points{
  background: #FFEFD0;
  color: #0F0F0F;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 900;
}
.ael-loyalty-info{ cursor: help; display:inline-flex; }

/* Footer */
.ael-panel-footer{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  row-gap: 5px;
  align-items: start;
}

.ael-footer-buyrow{
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
}

.ael-footer-assoc{
  grid-column: 1;
  grid-row: 2;
}

.ael-footer-atc{
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  justify-self: end;
}

.ael-footer-metacol{ display:flex; flex-direction:column; min-width: 0; }

/* Product link in footer */
.ael-footer-name-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  color: #EDEDF3;
  text-decoration:none;
  min-width: 0;
  width: 100%;
}
.ael-footer-name-link:hover,
.ael-footer-name-link:focus-visible{
  text-decoration: underline; color:#ffffff;
  text-decoration-color:  #e62249;text-underline-offset: 12px
}

.ael-footer-name-icon{ width: 24px; height: 24px; flex: 0 0 auto; opacity: 1; }
.ael-footer-name-text{
  font-size: 17px;
  font-weight: 500;
  line-height: 26px;
  min-width: 0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ael-footer-brand{     font-size: 14px;
  color: #777777;
  line-height: 21px;
  font-weight: 500;
  text-transform: uppercase;}

.ael-footer-reviews-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
}
.ael-footer-reviews-link:hover{
  text-decoration: underline;
}
.ael-footer-reviews-link:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.ael-footer-pricewrap{ display:flex; flex-wrap:wrap; align-items:baseline; gap: 2px 6px; }
.ael-footer-price{     color: #e62249;
  text-align: left;
  font-size: 20px;
  font-weight: 400;}
.ael-footer-assoc-addon{ font-size: 13px; font-weight: 600; color: rgba(255,255,255,.65); white-space:nowrap; }
.ael-footer-period{ font-size: 11px; font-weight: 500; color: #ffffff; text-transform: uppercase; letter-spacing:.06em; width:100%; }

.ael-footer-atc{
  border:0;
  border-radius: 14px;
  background: var(--ael-accent);
  transition: background .20s ease, transform .12s ease;
  width: 54px;
  height: 54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 0;
  flex: 0 0 auto;
  cursor:pointer;

  position: relative;

  /* Animation / layering */
  z-index: 2;
  will-change: transform;
}

/* Small "pop" on open */
.ael-overlay-card.is-open .ael-footer-atc{
  animation: ael-atc-pop .42s cubic-bezier(.22,1,.36,1) both;
}
@keyframes ael-atc-pop{
  from{ transform: translate3d(18px,18px,0) scale(.88); }
  to{ transform: translate3d(0,0,0) scale(1); }
}

@media (max-width: 991px){
  /* Mobile: delay the pop so it happens when the sheet is visible. */
  .ael-overlay-card.is-open .ael-footer-atc{ animation-delay: 520ms; }
}

@media (min-width: 992px){
  .ael-overlay-card.is-open .ael-footer-atc{ animation-delay: 100ms; }
  .ael-panel-footer{row-gap:12px}
}

/* Halo: animate in then fade (no constant red spot). */
.ael-overlay-card.is-open @keyframes ael-atc-halo{
  0%{ opacity: 0; transform: scale(.65); }
  35%{ opacity: 1; transform: scale(1); }
  100%{ opacity: 0; transform: scale(1.20); }
}




.ael-footer-atc:hover,
.ael-footer-atc:focus-visible{
  background:none;

}
.ael-footer-atc:disabled{ opacity:.6; cursor:not-allowed; }

/* Fallback when the native <select> dropdown is used (a11y / no-JS) — muted style, no dark bg. */
.ael-select option:disabled,
.ael-select option.is-unavailable{
  color:#9a9a9a;
}

/* Accessoire switch row */

.ael-assoc-row{
  display:flex;
  align-items:center;

  cursor:pointer;
  user-select:none;
  color: var(--ael-fg);
}
.ael-assoc-row input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
}

.ael-switch{
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(230,34,73,.55);
  position: relative;
  flex: 0 0 auto;
  border: 1px solid rgba(230,34,73,.75);
}
.ael-switch::after{
  content:'';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position:absolute;
  top:50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left .18s ease;
}
.ael-assoc-row input:checked + .ael-switch{
  background: var(--ael-accent);
  border-color: rgba(255,255,255,.20);
}
.ael-assoc-row input:checked + .ael-switch::after{ left: 23px; }

.ael-assoc-name{ font-size: 15px; font-weight: 700; color: #ffffff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex: 0 1 auto; min-width: 0;margin-left: 8px }
.ael-assoc-price{ margin-left: 6px; font-size: 15px; font-weight: 900; color: var(--ael-fg); opacity:.9; flex: 0 0 auto; white-space:nowrap; }
.ael-assoc-price::before{ content: "("; opacity: .95; }
.ael-assoc-price::after{ content: ")"; opacity: .95; }


.ael-out-of-stock{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(230,34,73,.14);
  border: 1px solid rgba(230,34,73,.38);
  color: #ffd0d9;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 12px;
  text-align: center;
}

/* ---------- Cart modal booster mention ---------- */

.ael-modal-assoc{
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #e62249;
}

/* ---------- Cart booster switch ---------- */

.ael-cart-switch{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  margin-top: 6px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background: #f8f8f8;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.ael-cart-switch:hover{
  border-color: #e62249;
  background: #fff5f7;
  color: #e62249;
}
.ael-cart-switch:disabled{
  opacity: .5;
  cursor: wait;
}
.ael-cart-switch-icon{
  font-size: 16px;
  line-height: 1;
}

@media (prefers-reduced-motion: reduce){
  .ael-overlay-card,
  .ael-panel{
    transition: none !important;
  }

  .ael-panel-footer::before{ animation: none !important; }
  .ael-overlay-card.is-open .ael-footer-atc{ animation: none !important; }
  }




/* Mobile: corner ATC button without layout padding hacks */
@media (max-width: 991px){
  .ael-footer-atc:hover,
  .ael-footer-atc:focus-visible{
    background:none;
    box-shadow: #ffffff 2px 2px 2px;
  }
  .ael-footer-assoc{ margin-top: 8px;margin-bottom: 8px }
  .ael-panel-footer{
    padding: 12px 0 0 14px;
  }
  .ael-footer-atc{
    width: 76px;
    height: calc(76px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 18px 0 0 0;
  }

  .ael-out-of-stock{
    margin-bottom: env(safe-area-inset-bottom);
  }
}

/* Scroller: prevent “flash scrollbar” during open/hover.
   Default is hidden; enable only when content really overflows. */
.ael-panel-body{ overflow-y: hidden; }
.ael-panel-body.is-scrollable{ overflow-y: auto; }
.ael-panel-body.is-animating{ overflow-y: hidden !important; }


/* Avoid blocking clicks when holders are closing (important for native cart modal). */
.ael-holder:not(.is-open){ pointer-events: none; }
#ael-fs-holder[aria-hidden="true"]{ pointer-events: none; }

.ass-overlay__close{
  /* conserve tes règles de positionnement existantes (top/right/z-index...) */
  background: transparent;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;

  /* optionnel si tu avais un "×" textuel dans le bouton */
  font-size: 0;
}

.ass-overlay__close::before{
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background: url("../img/close-wh-icon.svg") no-repeat center / contain;
}

/* ---- Cart modal integration ---- */
#blockcart-modal .ael-modal-left-row {
    display: flex;
    flex-wrap: wrap;
}
#blockcart-modal .ael-price-col {
    text-align: right;
}
#blockcart-modal .ael-desktop-only {
    display: none;
}
@media (max-width: 991.98px) {
    #blockcart-modal .ael-mobile-only {
        display: block;
    }
}

/* =========================================================
   Review snippet (lazy, alterglobalreviews)
   - Hidden until JS hydrates with an eligible review
   - Compact, single line of text where possible
   ========================================================= */
.ael-overlay-card .ael-review-snippet[hidden]{ display:none !important; }
.ael-overlay-card .ael-review-snippet{
    margin: 0 0 10px;
    padding: 8px 10px;
    border: 1px solid var(--ael-line);
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
}
.ael-overlay-card .ael-review-snippet-inner{
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ael-overlay-card .ael-review-snippet-stars{
    font-size: 12px;
    line-height: 1;
    letter-spacing: 1px;
    color: #f5b301;
}
.ael-overlay-card .ael-review-snippet-text{
    margin: 0;
    font-size: 12.5px;
    line-height: 1.35;
    color: var(--ael-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ael-overlay-card .ael-review-snippet-meta{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}
.ael-overlay-card .ael-review-snippet-author{
    font-size: 11px;
    color: var(--ael-muted);
    opacity: 0.85;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ael-overlay-card .ael-review-snippet-next{
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid var(--ael-line);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ael-overlay-card .ael-review-snippet-next[hidden]{ display:none !important; }
.ael-overlay-card .ael-review-snippet-next:hover{
    border-color: var(--ael-accent);
}
.ael-overlay-card .ael-review-snippet-next-icon{
    display: inline-block;
    width: 0; height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid var(--ael-fg);
    margin-left: 2px;
}
.ael-overlay-card .ael-review-snippet-next:hover .ael-review-snippet-next-icon{
    border-left-color: var(--ael-accent);
}

/* Lot F.1 — Listings ratings display mode "hover".
 * The wrapper is emitted by themes/classic-child miniatures/product.tpl with
 * the modifier class when AEL_RATINGS_DISPLAY_MODE = 'hover'. Stars stay in
 * the document flow (opacity-only) to preserve tile height/layout.
 */
.product-miniature .product-reviews-wrapper--hover {
    opacity: 0;
    transition: opacity 150ms ease-in-out;
}
.product-miniature:hover .product-reviews-wrapper--hover,
.product-miniature:focus-within .product-reviews-wrapper--hover {
    opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
    .product-miniature .product-reviews-wrapper--hover {
        transition: none;
    }
}
