/* bundle.css — "My Dream Box" accordion + sticky bottom drawer, scoped under #my-custom-bundle.
   EBB rev. 14/10/2026: aligned to Figma (fuchsia lines and step circles, regular step titles,
   compact cards, fuchsia footer message/labels/CTA, app title hidden). */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

#my-custom-bundle {
  --bundle-ink: #1E141A;         /* brand dark — text, CTA */
  --bundle-muted: #9a8e95;
  --bundle-line: #efefef;
  --bundle-pink: #EB4478;        /* site/Figma pink (header colour) — CTA, progress, lines, active */
  --bundle-pink-soft: #FCE1EA;   /* light pink — tiles, progress track */
  --bundle-pink-ring: #F5A2BC;
  --bundle-save: #EB4478;        /* save text */
  --bundle-bg: #ffffff;
  --bundle-radius-card: 14px;
  --bundle-radius-btn: 10px;

  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 0 8px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--bundle-ink);
  background: var(--bundle-bg);
  position: relative;
}
#my-custom-bundle *,
#my-custom-bundle *::before,
#my-custom-bundle *::after { box-sizing: inherit; }

#my-custom-bundle h2,
#my-custom-bundle h3 {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal;
  text-transform: none;
  color: var(--bundle-ink);
  line-height: 1.25;
}
#my-custom-bundle button,
#my-custom-bundle select {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
#my-custom-bundle button:focus-visible,
#my-custom-bundle select:focus-visible {
  outline: 2px solid var(--bundle-pink);
  outline-offset: 2px;
}

/* ── Header ───────────────────────────────────────────────────────────── */
#my-custom-bundle .bundle__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0px 16px;
}
#my-custom-bundle .bundle__title { display: none; }  /* product title comes from the theme */
#my-custom-bundle .bundle__subtitle { display: none; }
#my-custom-bundle .bundle__price-block {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
#my-custom-bundle .bundle__price-current { font-size: 34px; font-weight: 800; color: var(--bundle-ink); line-height: 1; }
#my-custom-bundle .bundle__price-cents { font-size: 0.42em; font-weight: 800; vertical-align: top; position: relative; top: 0.15em; margin-left: 2px; line-height: 1; }
#my-custom-bundle .bundle__price-original { font-size: 14px; color: var(--bundle-muted); text-decoration: line-through; }
#my-custom-bundle .bundle__save-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--bundle-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

/* ── Accordion ────────────────────────────────────────────────────────── */
#my-custom-bundle .bundle__accordion {
  display: flex;
  flex-direction: column;
  padding: 0 0px;
  /* leave room so the sticky drawer never covers the last row */
  margin-bottom: 20px;
}
#my-custom-bundle .bundle__row { border-bottom: 1.5px solid var(--bundle-pink); background: #fff; }
#my-custom-bundle .bundle__row:first-child { border-top: 1.5px solid var(--bundle-pink); }

#my-custom-bundle .bundle__row-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 2px;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}
#my-custom-bundle .bundle__row-num {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--bundle-pink);
  background: var(--bundle-pink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}
#my-custom-bundle .bundle__row-num.is-open {
  border-color: var(--bundle-pink);
  background: var(--bundle-pink);
  color: #fff;
}
#my-custom-bundle .bundle__row-num.is-complete {
  border-color: var(--bundle-pink);
  background: var(--bundle-pink);
  color: #fff;
}
#my-custom-bundle .bundle__row-num svg { display: block; width: 18px; height: 18px; }

#my-custom-bundle .bundle__row-name-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#my-custom-bundle .bundle__row-name { font-size: 18px; font-weight: 400; color: var(--bundle-ink); line-height: 1.2; }
#my-custom-bundle .bundle__row.is-open .bundle__row-name { color: var(--bundle-ink); }
#my-custom-bundle .bundle__row-selected {
  font-size: 14px;
  color: var(--bundle-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#my-custom-bundle .bundle__row-sign {
  flex: 0 0 auto;
  color: var(--bundle-pink);
  display: inline-flex;
  align-items: center;
}
#my-custom-bundle .bundle__row-sign.is-open { color: var(--bundle-pink); }
#my-custom-bundle .bundle__row-sign svg { display: block; transition: transform 0.2s ease; transform: rotate(-90deg); }
#my-custom-bundle .bundle__row-sign.is-open svg { transform: rotate(0deg); }

#my-custom-bundle .bundle__row-body { padding: 2px 2px 18px; }

/* ── Product grid ─────────────────────────────────────────────────────── */
#my-custom-bundle .bundle__products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
  gap: 24px 20px;
  max-height: 460px;
  overflow-y: auto;
  padding: 6px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: #cfcfcf transparent;
}
#my-custom-bundle .bundle__products::-webkit-scrollbar { width: 4px; }
#my-custom-bundle .bundle__products::-webkit-scrollbar-thumb { background: #cfcfcf; border-radius: 4px; }

/* Card: pink-bordered rounded container (screenshot). Image tile inside with its own rounded corners. */
#my-custom-bundle .bundle__card {
  border: 2px solid #FDD2E1;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#my-custom-bundle .bundle__card:hover { border-color: var(--bundle-pink); box-shadow: 0 4px 16px rgba(235, 68, 120, 0.12); }
#my-custom-bundle .bundle__card.is-selected {  box-shadow: none; }

/* Image tile inside the card — rounded corners, contains the diagonal product image. */
#my-custom-bundle .bundle__card-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bundle-pink-soft);
  border-radius: 8px;
  overflow: hidden;
  display: block;
  padding: 0;
}
#my-custom-bundle .bundle__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#my-custom-bundle .bundle__card-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
  color: var(--bundle-ink);
}
#my-custom-bundle .bundle__card-subtitle {
  font-size: 14px;
  color: #313131;
  margin: -4px 0 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Loox rating row — under the subtitle. */
#my-custom-bundle .bundle__rating-slot:empty { display: none; }
#my-custom-bundle .bundle__rating { display: flex; align-items: center; gap: 6px; margin: -2px 0 0; }
#my-custom-bundle .bundle__stars { display: inline-flex; gap: 2px; }
#my-custom-bundle .bundle__star {
  width: 14px;
  height: 14px;
  display: inline-block;
  /* gold fill up to --star-fill, light grey beyond — clipped to a star shape */
  background: linear-gradient(90deg, #F5A623 0%, #F5A623 var(--star-fill, 0%), #e0d7db var(--star-fill, 0%), #e0d7db 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.784 1.401 8.169L12 18.896l-7.335 3.867 1.401-8.169L.132 9.21l8.2-1.192z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 .587l3.668 7.431 8.2 1.192-5.934 5.784 1.401 8.169L12 18.896l-7.335 3.867 1.401-8.169L.132 9.21l8.2-1.192z'/%3E%3C/svg%3E") center / contain no-repeat;
}
#my-custom-bundle .bundle__stars-count { font-size: 12px; color: var(--bundle-muted); font-weight: 500; }

#my-custom-bundle .bundle__card-price { display: flex; align-items: baseline; gap: 6px; margin-top: 2px; }
#my-custom-bundle .bundle__card-price-current { font-weight: 800; font-size: 18px; color: var(--bundle-ink); }
#my-custom-bundle .bundle__card-price-original { color: #999; text-decoration: line-through; font-size: 13px; }

#my-custom-bundle .bundle__card-variant-select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #e0e0e0;
  border-radius: 999px;
  background: #fff;
  color: var(--bundle-ink);
  font-size: 12px;
  cursor: pointer;
}

/* Full pill button: outline pink "ADD +" default, filled pink "ADDED X1" when selected. */
#my-custom-bundle .bundle__select-btn {
  width: 100%;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border: 2px solid var(--bundle-pink);
  background: #fff;
  color: var(--bundle-pink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: auto;  /* button sits at the bottom, price stays close to the stars */
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
#my-custom-bundle .bundle__select-btn:hover { background: var(--bundle-pink); color: #fff; }
#my-custom-bundle .bundle__select-btn.is-selected { background: var(--bundle-pink); color: #fff; border-color: var(--bundle-pink); }
#my-custom-bundle .bundle__select-btn svg { display: block; }

/* ── Sticky bottom drawer ─────────────────────────────────────────────── */
#my-custom-bundle .bundle__drawer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: #fff;
  border-top: 1px solid var(--bundle-line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.1);
  padding: 14px 18px 16px;
}

/* Collapsed: hide everything except message + progress. */
#my-custom-bundle .bundle__drawer-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#my-custom-bundle .bundle__drawer-message-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: -6px;
}
#my-custom-bundle .bundle__drawer-message {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--bundle-pink);
  text-align: center;
  line-height: 1.3;
}
/* Bare chevron — no pill, no border, no background, no text. */
#my-custom-bundle .bundle__drawer-top-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  margin-top: -4px;
  border: 0;
  background: none;
  color: var(--bundle-pink);
  cursor: pointer;
}
#my-custom-bundle .bundle__drawer-top-toggle:hover { color: var(--bundle-save); }
#my-custom-bundle .bundle__drawer-top-toggle-text { display: none; }
#my-custom-bundle .bundle__drawer-top-toggle-icon { display: inline-flex; }
#my-custom-bundle .bundle__drawer-top-toggle-icon svg { display: block; transition: transform 0.2s ease; transform: rotate(180deg); }
#my-custom-bundle .bundle__drawer-top-toggle-icon svg path { stroke: currentColor; }
#my-custom-bundle .bundle__drawer-top-toggle.is-open .bundle__drawer-top-toggle-icon svg { transform: rotate(0deg); }
#my-custom-bundle .bundle__drawer-message.is-complete { color: var(--bundle-pink); }

#my-custom-bundle .bundle__progress-track {
  height: 7px;
  border-radius: 999px;
  background: var(--bundle-pink-soft);
  overflow: hidden;
}
#my-custom-bundle .bundle__progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bundle-pink);
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Body = slots only — the single part that collapses. */
#my-custom-bundle .bundle__drawer-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}
/* Foot = total + CTA — always visible, collapsed AND expanded. */
#my-custom-bundle .bundle__drawer-foot {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 14px;
}

/* Slot strip — pink rounded tiles with a caption below. */
#my-custom-bundle .bundle__slots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 64px);
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
#my-custom-bundle .bundle__slot-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
#my-custom-bundle .bundle__slot {
  width: 100%;
  max-width: 64px;
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: var(--bundle-pink-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  overflow: visible;
  border: 1.5px solid transparent;
}
#my-custom-bundle .bundle__slot.is-empty { border: 1.5px dashed var(--bundle-pink-ring); background: #fff; }
#my-custom-bundle .bundle__slot.is-active { border: 2px solid var(--bundle-pink); }
#my-custom-bundle .bundle__slot.is-active.is-empty { border: 2px solid var(--bundle-pink); background: var(--bundle-pink-soft); }
#my-custom-bundle .bundle__slot.is-filled { background: var(--bundle-pink-soft); }
#my-custom-bundle .bundle__slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
#my-custom-bundle .bundle__slot-plus { color: var(--bundle-pink); display: inline-flex; }
#my-custom-bundle .bundle__slot-plus svg { display: block; }
#my-custom-bundle .bundle__slot.is-empty .bundle__slot-plus { color: var(--bundle-muted); }
#my-custom-bundle .bundle__slot.is-active .bundle__slot-plus { color: var(--bundle-pink); }
#my-custom-bundle .bundle__slot-label {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  color: var(--bundle-pink);
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
#my-custom-bundle .bundle__slot-label.is-active { color: var(--bundle-pink); font-weight: 700; }
#my-custom-bundle .bundle__slot-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: var(--bundle-ink);
  color: #fff;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
#my-custom-bundle .bundle__slot-remove:hover { background: #000; }
#my-custom-bundle .bundle__slot-remove,
#my-custom-bundle .bundle__slot-remove * { color: #fff !important; }
#my-custom-bundle .bundle__slot-remove svg { display: block; }
#my-custom-bundle .bundle__slot-remove svg path { stroke: #fff !important; }

/* Box total row. */
#my-custom-bundle .bundle__total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
#my-custom-bundle .bundle__total-label { font-size: 13px; color: var(--bundle-muted); }
#my-custom-bundle .bundle__total-values { display: flex; align-items: baseline; gap: 8px; }
#my-custom-bundle .bundle__total-original { font-size: 14px; color: var(--bundle-muted); text-decoration: line-through; }
#my-custom-bundle .bundle__total-current { font-size: 22px; font-weight: 800; color: var(--bundle-ink); }
#my-custom-bundle .bundle__total-save { font-size: 13px; font-weight: 700; color: var(--bundle-save); }

/* CTA row: fuchsia-outline Back button + full-width fuchsia CTA. */
#my-custom-bundle .bundle__cta-row { display: flex; align-items: stretch; gap: 10px; }
#my-custom-bundle .bundle__back {
  flex: 0 0 52px;
  width: 52px;
  border: 1.5px solid var(--bundle-pink);
  background: #fff;
  color: var(--bundle-pink);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
#my-custom-bundle .bundle__back[hidden] { display: none; }
#my-custom-bundle .bundle__back:hover { background: var(--bundle-pink); color: #fff; }
#my-custom-bundle .bundle__back svg { display: block; }
#my-custom-bundle .bundle__drawer-toggle {
  flex: 0 0 52px;
  width: 52px;
  border: 1.5px solid var(--bundle-pink);
  background: #fff;
  color: var(--bundle-pink);
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#my-custom-bundle .bundle__drawer-toggle svg { display: block; transition: transform 0.2s ease; transform: rotate(180deg); }
#my-custom-bundle .bundle__drawer-toggle.is-open svg { transform: rotate(0deg); }

#my-custom-bundle .bundle__cta {
  flex: 1 1 auto;
  padding: 15px 24px;
  border: 0;
  background: var(--bundle-pink);
  color: #fff;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}
#my-custom-bundle .bundle__cta:hover { filter: brightness(1.15); }
#my-custom-bundle .bundle__cta.is-ready { background: var(--bundle-pink); }
#my-custom-bundle .bundle__cta.is-ready:hover { filter: brightness(1.08); }
#my-custom-bundle .bundle__cta:disabled { background: #d9b9c7; cursor: not-allowed; }

/* ── Empty / loading ──────────────────────────────────────────────────── */
#my-custom-bundle .bundle__empty {
  padding: 24px;
  text-align: center;
  color: var(--bundle-muted);
  font-size: 13px;
}
#my-custom-bundle .bundle__loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  color: var(--bundle-muted);
  font-size: 14px;
}
#my-custom-bundle .bundle__loader::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-right: 10px;
  border: 2px solid #FCE1EA;
  border-top-color: var(--bundle-pink);
  border-radius: 50%;
  animation: bundle-spin 0.9s linear infinite;
}
@keyframes bundle-spin { to { transform: rotate(360deg); } }

/* Visually-hidden label for the slot remove button (keeps the aria/text localized). */
#my-custom-bundle .bundle__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  #my-custom-bundle { margin: 0 auto; }
  #my-custom-bundle .bundle__header { flex-direction: column; padding: 16px; }
  #my-custom-bundle .bundle__price-block { align-items: baseline; }
  #my-custom-bundle .bundle__accordion { padding: 0 16px; }
  #my-custom-bundle .bundle__products { grid-template-columns: repeat(2, 1fr); max-height: none; gap: 20px 14px; }
  #my-custom-bundle .bundle__card-title { font-size: 15px; }
  #my-custom-bundle .bundle__card-subtitle { font-size: 13px; }
  #my-custom-bundle .bundle__select-btn { height: 40px; font-size: 13px; }
  #my-custom-bundle .bundle__drawer { padding: 12px 14px 14px; }
  #my-custom-bundle .bundle__slot-label { font-size: 11px; }
}