/* bundle.css — two-step flavor-selector bundle. Matches screenshot exactly (accent #2563C9). */

#my-custom-bundle[template-id="skyr-duo-template-v2-56868"] {
  --bundle-accent: #2563C9;
  --bundle-border: #e3e3e3;
  --bundle-text: #1a1a1a;
  --bundle-muted: #8a8a8a;

  box-sizing: border-box;
  max-width: 640px;
  margin: 20px auto;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--bundle-text);
  display: flex;
  flex-direction: column;
  gap: 18px;

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

  & h2,
  & h3 {
    margin: 0;
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
  }
  & button,
  & select {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
  }
  & button:focus-visible,
  & select:focus-visible {
    outline: 2px solid var(--bundle-accent);
    outline-offset: 2px;
  }

  /* ── Rows ────────────────────────────────────────────────────────────── */
  & .bundle__rows {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  & .bundle__row {
    border: 1px solid #f0f0f0;
    border-radius: 24px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  & .bundle__row--loading {
    color: var(--bundle-muted);
    font-size: 13px;
    text-align: center;
    padding: 40px 20px;
  }

  /* Card top: thumbnail + title/subtitle */
  & .bundle__row-top {
    display: flex;
    align-items: center;
    gap: 24px;
  }
  & .bundle__row-thumb {
    flex: 0 0 140px;
    width: 140px;
    height: 140px;
    border-radius: 16px;
    background: #f4f4f4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  & .bundle__row-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & .bundle__row-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  & .bundle__row-title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bundle-text);
  }
  & .bundle__row-title {
    margin: 0;
  }

  /* ── Flavor chips (step 1) ───────────────────────────────────────────── */
  & .bundle__flavor {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  & .bundle__flavor-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--bundle-text);
  }
  & .bundle__flavor-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  & .bundle__flavor-chip {
    padding: 8px 14px;
    border: 1px solid var(--bundle-border);
    border-radius: 999px;
    background: #fff;
    color: var(--bundle-text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  }
  & .bundle__flavor-chip:hover {
    border-color: var(--bundle-accent);
  }
  & .bundle__flavor-chip.is-selected {
    background: var(--bundle-accent);
    border-color: var(--bundle-accent);
    color: #fff;
    font-weight: 600;
  }
  & .bundle__flavor-chip.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
  }
  & .bundle__flavor-chip.is-disabled:hover {
    border-color: var(--bundle-border);
  }

  /* ── Multi-select step (step 2) ──────────────────────────────────────── */
  & .bundle__multi-heading {
    font-size: 20px;
    font-weight: 700;
    color: var(--bundle-text);
  }
  & .bundle__multi-tiles {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  & .bundle__tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--bundle-border);
    border-radius: 16px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }
  & .bundle__tile.is-selected {
    border-color: var(--bundle-accent);
    box-shadow: 0 0 0 1px var(--bundle-accent) inset;
  }
  & .bundle__tile.is-disabled {
    opacity: 0.5;
  }
  & .bundle__tile-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: #f4f4f4;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  & .bundle__tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  & .bundle__tile-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  & .bundle__tile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--bundle-text);
    line-height: 1.2;
  }
  & .bundle__tile-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  & .bundle__tile-price-current {
    font-size: 14px;
    font-weight: 600;
    color: var(--bundle-text);
  }
  & .bundle__tile-price-original {
    font-size: 13px;
    color: var(--bundle-muted);
    text-decoration: line-through;
  }
  & .bundle__tile-add {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 1px solid var(--bundle-accent);
    border-radius: 999px;
    background: #fff;
    color: var(--bundle-accent);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
  }
  & .bundle__tile-add:hover {
    background: var(--bundle-accent);
    color: #fff;
  }
  & .bundle__tile-add.is-disabled {
    border-color: var(--bundle-border);
    background: #f4f4f4;
    color: var(--bundle-muted);
    cursor: not-allowed;
  }

  /* Quantity stepper (step 2 tiles) */
  & .bundle__stepper {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    height: 38px;
    border: 1px solid var(--bundle-accent);
    border-radius: 999px;
    overflow: hidden;
  }
  & .bundle__stepper-btn {
    flex: 0 0 36px;
    background: var(--bundle-accent);
    color: #fff;
    border: 0;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
  }
  & .bundle__stepper-btn:hover { filter: brightness(1.12); }
  & .bundle__stepper-qty {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    background: #fff;
    color: var(--bundle-text);
  }

  /* ── Footer: price + CTA ─────────────────────────────────────────────── */
  & .bundle__foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  & .bundle__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 28px;
    font-weight: 700;
    color: var(--bundle-text);
    line-height: 1.1;
  }
  & .bundle__price-current { color: var(--bundle-text); }
  & .bundle__price-original {
    font-size: 18px;
    font-weight: 600;
    color: var(--bundle-muted);
    text-decoration: line-through;
  }
  & .bundle__atc-btn {
    width: 100%;
    padding: 11px 24px;
    border: 0;
    background: var(--bundle-accent);
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease;
  }
  & .bundle__atc-btn:hover { filter: brightness(1.08); }
  & .bundle__atc-btn:disabled {
    background: #cfcfcf;
    cursor: not-allowed;
  }

  /* ── Loader ──────────────────────────────────────────────────────────── */
  & .bundle__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    color: var(--bundle-muted);
    font-size: 14px;
  }
  & .bundle__loader::before {
    content: "";
    width: 14px;
    height: 14px;
    margin-right: 10px;
    border: 2px solid #ccc;
    border-top-color: var(--bundle-accent);
    border-radius: 50%;
    animation: bundle-spin-skyr-duo-template-v2-56868 0.9s linear infinite;
  }

  /* ── Mobile ──────────────────────────────────────────────────────────── */
  @media (max-width: 768px) {
    & { max-width: 100%; }
    & .bundle__row-top { gap: 16px; }
    & .bundle__row-thumb { flex-basis: 100px; width: 100px; height: 100px; }
    & .bundle__row-title { font-size: 20px; }
    & .bundle__price { font-size: 24px; }
    & .bundle__tile { gap: 10px; padding: 10px; }
    & .bundle__tile-thumb { flex-basis: 52px; width: 52px; height: 52px; }
    & .bundle__row-title {
      font-size: 23px !important;
    }
  }

  & .bundle__gift-top {
    flex-direction: row !important;
  }
  & .bundle__gift-info {
    align-self: center!important;
  }
  & .bundle__price-original {
    color: #000 !important;
  }
}

@keyframes bundle-spin-skyr-duo-template-v2-56868 { to { transform: rotate(360deg); } }