/* Poppins — the geometric sans from the design. */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

#my-custom-bundle[template-id="mix-match-71333"] {
  --bundle-pink: #FFF5FB;
  --bundle-white: #FFFFFF;
  --bundle-black: #333333;
  --bundle-border: #E0E0E0;
  --bundle-slot: #F1EFEE;
  --bundle-muted: #A8A29E;
  --bundle-disabled: #9E9E9E;

  box-sizing: border-box;
  display: block;
  width: 100%;
  margin: 16px 0;
  font-family: var(--bundle-font-body, "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #333333;

  & *,
  & *::before,
  & *::after {
    box-sizing: inherit;
  }

  & [hidden] { display: none !important; }

  & h2,
  & h3 {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    color: #333333;
    line-height: 1.25;
  }
  & button {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    -webkit-tap-highlight-color: transparent;
  }
  & button:focus-visible,
  & [role="radio"]:focus-visible,
  & [role="button"]:focus-visible {
    outline: 2px solid #333333;
    outline-offset: 2px;
  }

  /* ── Section heading ("SELECCIONA TU CANTIDAD:") ─────────────────── */
  & .bundle__heading {
    margin: 0 0 26px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    text-align: center;
    color: #333333;
    overflow-wrap: anywhere;
  }

  /* ── Reservation banner ─────────────────────────────────────────────── */
  & .bundle__timer {
    margin-bottom: 22px;
    padding: 12px 16px;
    background: #FFF5FB;
    border-radius: 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
  }
  & .bundle__timer-time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  & .bundle__notice {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #FFF5FB;
    border: 1px solid #333333;
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
  }

  /* ── Pack cards ─────────────────────────────────────────────────────── */
  & .bundle__packs {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  & .bundle__pack {
    position: relative;
    background: #FFFFFF;
    border: 2px solid #E0E0E0;
    border-radius: 24px;
    padding: 18px 20px;
    transition: border-color 0.15s ease;
  }
  & .bundle__pack.is-active { border-color: #333333; }

  & .bundle__pack-ribbon {
    position: absolute;
    top: 0;
    right: 24px;
    transform: translateY(-50%);
    padding: 5px 12px;
    background: #333333;
    color: #FFFFFF;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    line-height: 1.2;
  }

  & .bundle__pack-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    cursor: pointer;
    border-radius: 16px;
  }
  & .bundle__pack-radio {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #C4C4C4;
    border-radius: 50%;
    background: #FFFFFF;
  }
  & .bundle__pack.is-active .bundle__pack-radio { border-color: #333333; }
  & .bundle__pack.is-active .bundle__pack-radio::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #333333;
  }

  & .bundle__pack-info { min-width: 0; }
  & .bundle__pack-name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  & .bundle__pack-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }
  & .bundle__pack-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #FFF5FB;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 700;
    color: #333333;
    line-height: 1.3;
  }
  & .bundle__pack-unit {
    margin-top: 4px;
    font-size: 13px;
    color: #A8A29E;
  }
  & .bundle__pack-unit-price { font-weight: 700; color: #57534E; }
  & .bundle__pack-unit-original { color: #A8A29E; }

  & .bundle__pack-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
  }
  & .bundle__pack-price {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
  }
  & .bundle__pack-price-original {
    font-size: 13px;
    color: #A8A29E;
  }

  /* ── Slot grid (active pack) ────────────────────────────────────────── */
  /* ── Gifts (per pack, from the bundle editor) ── */
  & .bundle__gifts { margin-top: 16px; }
  & .bundle__gifts--inactive { cursor: pointer; }
  & .bundle__gifts-heading {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  & .bundle__gifts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  & .bundle__gift {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
  }
  & .bundle__gift-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 24px;
    line-height: 1;
  }
  & .bundle__gift-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  & .bundle__gift-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.02em;
    overflow-wrap: anywhere;
  }
  & .bundle__gift-prices {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.25;
  }
  & .bundle__gift-price,
  & .bundle__gift-free { font-weight: 700; }
  /* Selected pack: dark block flush with the card's sides and bottom. */
  & .bundle__gifts--block {
    margin: 22px -20px -18px;
    padding: 22px 20px 10px;
    border-radius: 0 0 22px 22px;
  }
  & .bundle__gifts--block .bundle__gifts-heading { margin-bottom: 12px; }
  & .bundle__gifts--block .bundle__gifts-list { gap: 0; }
  & .bundle__gifts--block .bundle__gift {
    padding: 12px 0;
    border-top: 1px solid;
  }
  & .bundle__gifts--block .bundle__gift-media {
    width: 52px;
    height: 52px;
    border-radius: 10px;
  }
  & .bundle__gifts--block .bundle__gift-img {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }
  /* Photos only: a row of thumbnails. */
  & .bundle__gifts--photos .bundle__gifts-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  & .bundle__gifts--photos .bundle__gift { display: block; }
  & .bundle__gifts--photos .bundle__gift-title,
  & .bundle__gifts--photos .bundle__gift-prices { display: none; }
  & .bundle__gifts--photos .bundle__gift-media {
    width: 48px;
    height: 48px;
  }

  & .bundle__pack-body { margin-top: 18px; }
  & .bundle__slots {
    display: grid;
    grid-template-columns: repeat(var(--bundle-slot-cols, 5), minmax(0, 1fr));
    gap: 10px;
  }
  & .bundle__slot-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
  }
  & .bundle__slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    background: #F1EFEE;
  }
  & .bundle__slot--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    min-height: 44px;
    color: #A8A29E;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  & .bundle__slot--empty:hover { background: #E8E5E3; }
  & .bundle__slot--filled {
    overflow: visible;
    cursor: pointer;
  }
  & .bundle__slot-img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 8%;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 16px;
  }
  & .bundle__slot-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    cursor: pointer;
  }
  /* 44px tap area around the small round button. */
  & .bundle__slot-remove::after {
    content: "";
    position: absolute;
    inset: -10px;
  }
  & .bundle__slot-name {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  /* ── CTA ────────────────────────────────────────────────────────────── */
  & .bundle__footer { margin-top: 22px; }
  & .bundle__cta {
    width: 100%;
    min-height: 56px;
    margin-top: 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 16px;
    background: #333333;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.15s ease;
  }
  & .bundle__cta:hover:not(:disabled) { opacity: 0.92; }
  & .bundle__cta:disabled {
    background: #9E9E9E;
    cursor: not-allowed;
  }
  & .bundle__cta.is-loading,
  & .bundle__cta.is-loading:disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #333333;
    cursor: progress;
    opacity: 0.85;
  }
  & .bundle__cta.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: bundle-spin-mix-match-71333 0.9s linear infinite;
  }
  & .bundle__validation {
    margin-top: 10px;
    font-size: 12px;
    color: #b3261e;
    text-align: center;
  }

  /* ── Shade picker (slides in from the left) ─────────────────────────── */
  & .bundle__modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #333333;
    font-family: inherit;
    line-height: inherit;
    overflow: hidden;
    overflow: clip; /* the dialog can never be scrolled, so the sheet can't jump */
    outline: none;
    /* Block any pop-up animation the theme adds to dialogs. */
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  & .bundle__modal:not([open]) { display: none; }
  & .bundle__modal[open] { display: block; }
  & .bundle__modal::backdrop {
    background: transparent;
    animation: none !important;
  }
  & .bundle__modal-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  & .bundle__modal.is-open .bundle__modal-backdrop { opacity: 1; }
  /* Bottom sheet: full screen width, rises from the bottom, about 85% of the screen tall. */
  & .bundle__modal-panel {
    position: absolute;
    left: 0;
    bottom: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    height: 85dvh;
    background: #FFFFFF;
    color: #333333;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.16);
    will-change: transform;
    backface-visibility: hidden;
    animation: none !important;
    /* Closed: below the screen. Open: glides up and eases to a stop — no overshoot. */
    transform: translate3d(0, 100%, 0);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1);
  }
  & .bundle__modal.is-open .bundle__modal-panel { transform: translate3d(0, 0, 0); }
  /* Desktop: centred title, ✕ in the top-right corner. Mobile: ⌄ above the title (see Mobile). */
  & .bundle__modal-head {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 72px 0;
    background: #FFFFFF;
  }
  & .bundle__modal-close {
    position: absolute;
    top: 4px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    background: none;
    color: #333333;
    cursor: pointer;
  }
  & .bundle__modal-close-down { display: none; }
  & .bundle__modal-close-x { display: flex; }
  & .bundle__modal-close svg { display: block; }
  & .bundle__modal-close-down svg { width: 24px; height: 14px; }
  & .bundle__modal-close-x svg { width: 26px; height: 26px; }
  & .bundle__modal-title {
    margin: 0;
    padding: 0 15px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: -0.09px;
    text-transform: uppercase;
    text-align: center;
    color: #000000;
    overflow-wrap: anywhere;
  }
  /* Top padding leaves room for the ✓ circles of the first row; bottom padding keeps the last row clear of the footer. */
  & .bundle__modal-grid {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 16px 45px 180px;
    display: grid;
    grid-template-columns: repeat(var(--bundle-picker-cols, 4), minmax(0, 1fr));
    gap: 30px;
    align-content: start;
    overscroll-behavior: contain;
  }

  & .bundle__shade {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: #FFFFFF;
    border: 0.8px solid #E3E3E3;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 1px 3px, rgba(0, 0, 0, 0.24) 0px 1px 2px;
    transition: border-color 0.15s ease, box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  /* Desktop hover (mouse only): the card's shadow deepens; the nail zooms 1.2x when the cursor is on it. */
  @media (hover: hover) and (pointer: fine) {
    & .bundle__shade:not(.is-disabled):hover {
      box-shadow: rgba(0, 0, 0, 0.12) 0px 14px 28px, rgba(0, 0, 0, 0.12) 0px 10px 10px;
    }
    & .bundle__shade:not(.is-disabled) .bundle__shade-img:hover { scale: 1.2; }
  }
  /* Thicker border; less padding keeps the content in place. */
  & .bundle__shade.is-selected {
    border: 3px solid #333333;
    padding: 9.8px;
  }
  /* The whole card adds the shade: hand cursor, and quick clicks don't select the name. */
  & .bundle__shade {
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
  & .bundle__shade .bundle__shade-qty { cursor: default; }
  & .bundle__shade.is-disabled { opacity: 0.45; cursor: not-allowed; }
  /* Desktop: large ✓ circle sitting on the card's top-right corner. */
  & .bundle__shade-check {
    position: absolute;
    top: -14px;
    right: -14px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #333333;
    color: #FFFFFF;
  }
  & .bundle__shade-check svg {
    display: block;
    width: 17px;
    height: 14px;
  }
  & .bundle__shade-swatch {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 135px;
    border-radius: 8px;
    overflow: hidden;
    background: #FFFFFF;
  }
  /* The nail fills 90% of the photo area's width, centred; hover scales up (see above). */
  & .bundle__shade-img {
    display: block;
    width: 90%;
    max-width: 90%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    background: #FFFFFF;
    transform-origin: center;
    transition: scale 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  }
  & .bundle__shade-name {
    margin: 0;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.09px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  /* "Add" button — rectangular on desktop, a pill on mobile. */
  & .bundle__shade-add {
    position: relative;
    width: 100%;
    height: 36px;
    margin-top: auto;
    padding: 6px 10px;
    border: 0;
    border-radius: 5px;
    background: #FFECF6;
    color: #000000;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.09px;
    line-height: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
  }
  & .bundle__shade-add::after {
    content: "";
    position: absolute;
    inset: -7px 0;
  }
  & .bundle__shade-add:hover:not(:disabled) { filter: brightness(0.97); }
  & .bundle__shade-add:disabled { cursor: not-allowed; }
  /* − 1 + stepper: rectangular pink buttons on desktop, small round ones on mobile; 44px tap areas. */
  & .bundle__shade-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px;
    margin-top: auto;
    padding: 0;
  }
  & .bundle__shade-btn {
    position: relative;
    flex: 0 0 24%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24%;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: #FFECF6;
    color: #000000;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }
  & .bundle__shade-btn::after {
    content: "";
    position: absolute;
    inset: -8px;
  }
  & .bundle__shade-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
  }
  & .bundle__shade-qty {
    flex: 1 1 auto;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -0.09px;
    font-variant-numeric: tabular-nums;
  }

  /* Floating footer: cart pill (overlapping the top edge), progress bar, Done. Desktop: a centred 500px panel. */
  & .bundle__modal-foot {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    width: min(500px, calc(100% - 20px));
    margin: 0 auto;
    padding: 32px 19px 22px;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  }
  & .bundle__modal-cart {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 80px;
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: #333333;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  & .bundle__modal-cart-icon { display: inline-flex; }
  & .bundle__modal-cart-icon svg {
    display: block;
    width: 20px;
    height: 19px;
  }
  & .bundle__modal-progress {
    display: block;
    height: 4px;
    margin: 0 6px;
    background: #D9D9D9;
    border-radius: 999px;
    overflow: hidden;
  }
  & .bundle__modal-progress-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #333333;
    border-radius: inherit;
    transition: width 0.3s ease;
  }
  & .bundle__modal-done {
    display: block;
    width: 100%;
    min-height: 54px;
    margin-top: 28px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background: #333333;
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  & .bundle__modal-done:hover { opacity: 0.92; }
  /* No shade chosen yet: light grey (it still closes the picker). */
  & .bundle__modal-done.is-empty {
    background: #C4C4C4;
    color: #FFFFFF;
  }

  /* ── Desktop picker: exact sizes from the reference ─────────────────── */
  @media (min-width: 769px) {
    /* Cards 249.29px wide (shrink on narrow screens), 30px apart, row centred; 80px sides, 152.637px bottom. */
    & .bundle__modal-grid {
      grid-template-columns: repeat(var(--bundle-picker-cols, 4), minmax(0, 249.29px));
      justify-content: center;
      gap: 30px;
      padding: 16px 80px 152.637px;
    }
    & .bundle__shade { height: 250.6px; }
    /* The photo area takes the room left by the name + button, so the card stays 250.6px tall. */
    & .bundle__shade-swatch {
      flex: 1 1 0;
      min-height: 0;
      height: auto;
    }
       /* Nail: 106px tall (matches the reference), 11.18px each side; the hover zoom scales it 1.2x. */
    & .bundle__shade-img {
      width: min(241.56px, calc(100% - 22.36px));
      max-width: none;
      height: 106px;
      max-height: 100%;
      margin: 0 11.18px;
    }
    & .bundle__modal-title {
      font-size: 24px;
      padding: 0 15px;
    }
        /* Footer panel: 400px box, full-width progress bar, full-width Done (matches the reference). */
    & .bundle__modal-foot {
      width: min(400px, calc(100% - 20px));
      padding: 26px 16px 18px;
      border-radius: 8px;
    }
    & .bundle__modal-cart {
      min-width: 0;
      width: 64px;
      height: 32px;
      padding: 0 10px;
      gap: 6px;
      font-size: 17px;
    }
    & .bundle__modal-cart-icon svg {
      width: 17px;
      height: 16px;
    }
    /* Full width of the box, 4px tall. */
    & .bundle__modal-progress {
      width: auto;
      height: 4px;
      margin: 0 4px;
      border-radius: 999px;
    }
    & .bundle__modal-done {
      width: 100%;
      max-width: none;
      height: 44px;
      min-height: 44px;
      margin: 22px 0 0;
      padding: 10px 8px;
      font-size: 16px;
    }
    /* 72 x 4, centred under the cart counter. */
    & .bundle__modal-progress {
      width: 72px;
      height: 4px;
      margin: 18px auto 0;
      border-radius: 2px;
    }
    & .bundle__modal-done {
      width: 370px;
      max-width: calc(100% - 20px);
      height: 44px;
      min-height: 44px;
      margin: 16px auto 16px;
      padding: 10px 8px;
      font-size: 16px;
    }
  }

  /* ── Empty / loading ────────────────────────────────────────────────── */
  & .bundle__empty {
    grid-column: 1 / -1;
    padding: 24px;
    text-align: center;
    color: #A8A29E;
    font-size: 13px;
  }
  & .bundle__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 240px;
  }
  & .bundle__loader--small {
    grid-column: 1 / -1;
    min-height: 160px;
  }
  & .bundle__loader::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid #E0E0E0;
    border-top-color: #333333;
    border-radius: 50%;
    animation: bundle-spin-mix-match-71333 0.9s linear infinite;
  }

  /* ── Colours from the bundle editor ("Colors" section) ─────────────────
     applyColors() sets these variables on the root; an empty field keeps the design colour after the comma.
     These rules come last so they win over the colours above. */
  & { color: var(--bundle-color-text, #333333); }
  & .bundle__modal-panel,
  & .bundle__modal-close { color: var(--bundle-color-text, #333333); }
  & .bundle__heading { color: var(--bundle-color-heading, #333333); }
  /* Title font from the bundle editor (Typography); empty = same as the texts. */
  & .bundle__heading,
  & .bundle__modal-title,
  & .bundle__pack-name { font-family: var(--bundle-font-title, inherit); }
  & .bundle__timer {
    background: var(--bundle-color-timer-bg, #FFF5FB);
    color: var(--bundle-color-timer-text, #333333);
  }
  & .bundle__notice {
    background: var(--bundle-color-timer-bg, #FFF5FB);
    border-color: var(--bundle-color-card-active-border, #333333);
    color: var(--bundle-color-timer-text, #333333);
  }
  & .bundle__pack {
    background: var(--bundle-color-card-bg, #FFFFFF);
    border-color: var(--bundle-color-card-border, #E0E0E0);
  }
  & .bundle__pack.is-active { border-color: var(--bundle-color-card-active-border, #333333); }
  & .bundle__pack:not(.is-active) { background: var(--bundle-color-card-inactive-bg, var(--bundle-color-card-bg, #FFFFFF)); }
  & .bundle__gifts-heading { color: var(--bundle-color-gifts-heading, #C4622D); }
  & .bundle__gift-title { color: var(--bundle-color-gifts-text, #333333); }
  & .bundle__gift-value { color: var(--bundle-color-gifts-value, #A8A29E); }
  & .bundle__gift-price,
  & .bundle__gift-free { color: var(--bundle-color-gifts-price, #333333); }
  & .bundle__gifts--block {
    background: var(--bundle-color-gifts-block-bg, #333333);
    color: var(--bundle-color-gifts-block-text, #FFFFFF);
  }
  & .bundle__gifts--block .bundle__gifts-heading { color: var(--bundle-color-gifts-block-heading, #C4622D); }
  & .bundle__gifts--block .bundle__gift-title,
  & .bundle__gifts--block .bundle__gift-price,
  & .bundle__gifts--block .bundle__gift-free { color: var(--bundle-color-gifts-block-text, #FFFFFF); }
  & .bundle__gifts--block .bundle__gift-value { color: var(--bundle-color-gifts-block-value, #B5B5B5); }
  & .bundle__gifts--block .bundle__gift { border-color: var(--bundle-color-gifts-block-divider, #555555); }
  & .bundle__gifts--block .bundle__gift-media { background: var(--bundle-color-gifts-thumb-bg, #FFFFFF); }
  & .bundle__pack-ribbon {
    background: var(--bundle-color-ribbon-bg, #333333);
    color: var(--bundle-color-ribbon-text, #FFFFFF);
  }
  & .bundle__pack-radio { background: var(--bundle-color-card-bg, #FFFFFF); }
  & .bundle__pack.is-active .bundle__pack-radio { border-color: var(--bundle-color-radio, #333333); }
  & .bundle__pack.is-active .bundle__pack-radio::after { background: var(--bundle-color-radio, #333333); }
  & .bundle__pack-name { color: var(--bundle-color-pack-name, #333333); }
  & .bundle__pack-badge {
    background: var(--bundle-color-badge-bg, #FFF5FB);
    color: var(--bundle-color-badge-text, #333333);
  }
  & .bundle__pack-unit { color: var(--bundle-color-unit-text, #A8A29E); }
  & .bundle__pack-unit-price { color: var(--bundle-color-unit-price, #57534E); }
  & .bundle__pack-unit-original { color: var(--bundle-color-compare-price, #A8A29E); }
  & .bundle__pack-price { color: var(--bundle-color-price, #333333); }
  & .bundle__pack-price-original { color: var(--bundle-color-compare-price, #A8A29E); }
  & .bundle__slot { background: var(--bundle-color-slot-bg, #F1EFEE); }
  & .bundle__slot--empty { color: var(--bundle-color-slot-plus, #A8A29E); }
  & .bundle__slot--empty:hover {
    background: var(--bundle-color-slot-bg, #F1EFEE);
    filter: brightness(0.96);
  }
  & .bundle__slot-remove {
    background: var(--bundle-color-remove-bg, #FFFFFF);
    color: var(--bundle-color-remove-icon, #333333);
  }
  & .bundle__slot-name { color: var(--bundle-color-slot-name, #333333); }
  & .bundle__cta {
    background: var(--bundle-color-cta-bg, #333333);
    color: var(--bundle-color-cta-text, #FFFFFF);
  }
  & .bundle__cta:disabled { background: var(--bundle-color-cta-disabled-bg, #9E9E9E); }
  & .bundle__cta.is-loading,
  & .bundle__cta.is-loading:disabled { background: var(--bundle-color-cta-bg, #333333); }
  & .bundle__shade.is-selected { border-color: var(--bundle-color-picker-accent, #333333); }
  & .bundle__shade-check {
    background: var(--bundle-color-picker-accent, #333333);
    color: var(--bundle-color-picker-accent-text, #FFFFFF);
  }
  & .bundle__shade-add,
  & .bundle__shade-btn {
    background: var(--bundle-color-picker-add-bg, #FFECF6);
    color: var(--bundle-color-picker-add-text, #000000);
  }
  & .bundle__modal-cart {
    background: var(--bundle-color-picker-cart-bg, #333333);
    color: var(--bundle-color-picker-cart-text, #FFFFFF);
  }
  & .bundle__modal-progress { background: var(--bundle-color-picker-track, #D9D9D9); }
  & .bundle__modal-progress-fill { background: var(--bundle-color-picker-progress, #333333); }
  & .bundle__modal-done {
    background: var(--bundle-color-picker-done-bg, #333333);
    color: var(--bundle-color-picker-done-text, #FFFFFF);
  }

  @media (prefers-reduced-motion: reduce) {
    & .bundle__modal-panel,
    & .bundle__modal-backdrop,
    & .bundle__shade,
    & .bundle__shade-img { transition: none; }
  }

  /* ── Mobile ─────────────────────────────────────────────────────────── */
  @media (max-width: 768px) {
    & .bundle__heading { font-size: 19px; margin-bottom: 20px; }
    & .bundle__timer { margin-bottom: 18px; font-size: 13px; }
    & .bundle__pack { padding: 16px; border-radius: 20px; }
    & .bundle__pack-head { gap: 10px; }
    & .bundle__pack-name { font-size: 15px; }
    & .bundle__pack-unit { font-size: 12px; }
    & .bundle__pack-price { font-size: 16px; }
    & .bundle__pack-price-original { font-size: 12px; }
    & .bundle__gifts--block {
      margin: 20px -16px -16px;
      padding: 20px 16px 8px;
      border-radius: 0 0 18px 18px;
    }
    & .bundle__gift { gap: 12px; }
    & .bundle__gift-title { font-size: 14px; }
    & .bundle__gift-prices { font-size: 13px; }
    & .bundle__slots {
      gap: 8px;
      grid-template-columns: repeat(var(--bundle-slot-cols-m, var(--bundle-slot-cols, 5)), minmax(0, 1fr));
    }
    & .bundle__slot,
    & .bundle__slot-img { border-radius: 12px; }
    & .bundle__slot--empty { font-size: 24px; }
    & .bundle__cta { font-size: 14px; min-height: 52px; }

    & .bundle__modal-panel { border-radius: 16px 16px 0 0; }
    & .bundle__modal-head { padding: 16px 20px 18px; }
    & .bundle__modal-close {
      position: static;
      width: 64px;
      height: 40px;
    }
    & .bundle__modal-close-down { display: flex; }
    & .bundle__modal-close-x { display: none; }
    & .bundle__modal-title { margin-top: 4px; font-size: 17px; }
    & .bundle__modal-grid {
      grid-template-columns: repeat(var(--bundle-picker-cols-m, 3), minmax(0, 1fr));
      gap: 8px;
      padding: 8px 16px 150px;
    }
    & .bundle__shade { gap: 6px; padding: 10px 8px; }
    & .bundle__shade.is-selected { border-width: 2px; padding: 8.8px 6.8px; }
    & .bundle__shade-check { top: 5px; right: 5px; width: 18px; height: 18px; }
    & .bundle__shade-check svg { width: 9px; height: 8px; }
    & .bundle__shade-swatch { height: auto; aspect-ratio: 1 / 1; border-radius: 6px; }
    & .bundle__shade-name { margin: 0; font-size: 12px; line-height: 1.2; }
    & .bundle__shade-add {
      height: 24px;
      padding: 0 6px;
      border-radius: 999px;
      font-size: 12px;
      line-height: 1;
    }
    & .bundle__shade-add::after { inset: -10px 0; }
    & .bundle__shade-stepper { height: 24px; padding: 0 4px; }
    & .bundle__shade-btn {
      flex: 0 0 22px;
      width: 22px;
      height: 22px;
      border-radius: 50%;
      font-size: 15px;
    }
    & .bundle__shade-btn::after { inset: -11px; }
    & .bundle__shade-qty { font-size: 15px; }
    & .bundle__modal-foot {
      left: 9px;
      right: 9px;
      bottom: 16px;
      width: auto;
      padding: 26px 10px 10px;
      border-radius: 10px;
    }
    & .bundle__modal-cart { min-width: 58px; height: 30px; padding: 0 12px; gap: 6px; font-size: 16px; }
    & .bundle__modal-cart-icon svg { width: 16px; height: 15px; }
    & .bundle__modal-progress { margin: 0 8px; }
    & .bundle__modal-done { min-height: 44px; margin-top: 16px; font-size: 16px; }
  }
}

/* Page scroll lock while the shade picker is open. */
body.bundle-scroll-lock-mix-match-71333 {
  overflow: hidden;
}

@keyframes bundle-spin-mix-match-71333 {
  to { transform: rotate(360deg); }
}
