/* BCF product selector "Glacier" (19.11.2026).
   Every class starts with bcf-sel. Colours sit as variables on .bcf-sel so they can be adjusted in one place.
   Layout switches by container width (container queries), not viewport, so the box works in any column. */

.bcf-sel-wrap{container-type:inline-size;max-width:1120px;margin:0 auto;font-family:Onest,system-ui,-apple-system,"Segoe UI",sans-serif}
.bcf-sel{
  --bs-frame:#0048D9;          /* outer frame */
  --bs-tab:#1F70F6;            /* inactive tabs */
  --bs-tab-on:#EEE6FF;         /* active tab */
  --bs-ink:#0f1b3d;            /* body text */
  --bs-title:#000033;          /* dark titles */
  --bs-text:#4a5675;           /* secondary text */
  --bs-line:#dde3ee;
  --bs-soft:#E8EEFD;           /* delivery window / option surfaces */
  --bs-lav:#DCC8FF;            /* selected option fill */
  --bs-lav-line:#A78BFA;       /* selected border */
  --bs-lav-row:#EEE6FF;        /* selected list row */
  --bs-card:#FDFDFD;           /* package card */
  --bs-price:#0000FD;          /* price text */
  --bs-qty-bg:#E1EBFC;         /* custom quantity */
  --bs-sum:#2B59C0;            /* summary bar */
  --bs-buy:#17CB73;            /* buy button */
  --bs-buy-ink:#002611;        /* text on green (white would be about 2:1) */
  --bs-hot:#ffcf3f;            /* Popular tag */
  --bs-start:#0BBF68;          /* Smart Start tag */
  position:relative;border-radius:30px;padding:14px;color:var(--bs-ink);
  background:radial-gradient(520px 260px at 90% 0%,rgba(127,178,255,.3),transparent 70%),var(--bs-frame);
  box-shadow:0 40px 70px -30px rgba(23,52,143,.55);
}
.bcf-sel *,.bcf-sel *::before,.bcf-sel *::after{box-sizing:border-box}
.bcf-sel button{font-family:inherit}
.bcf-sel .bcf-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.bcf-sel :focus-visible{outline:3px solid #ffcf3f;outline-offset:2px}

/* ---------- Tabs ---------- */
.bcf-sel__tabs{display:flex;gap:6px;align-items:flex-end;padding:0 22px;overflow:visible;scrollbar-width:none;scroll-snap-type:x proximity}
.bcf-sel__tabs::-webkit-scrollbar{display:none}
.bcf-sel__tab{position:relative;flex:1 0 96px;min-height:60px;border:0;border-radius:20px 20px 0 0;background:var(--bs-tab);color:#fff;
  padding:10px 8px 12px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;scroll-snap-align:start;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.25);transition:background .15s}
.bcf-sel__tab:hover{background:#3a82f8}
.bcf-sel__tab b{font-size:15px;font-weight:700;line-height:1.15;text-align:center}
.bcf-sel__tab small{font-size:11px;color:#e6efff;text-align:center}
.bcf-sel__dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);margin-bottom:2px}
.bcf-sel__tab.is-on{background:var(--bs-tab-on);color:var(--bs-title);min-height:76px;box-shadow:none;z-index:2}
.bcf-sel__tab.is-on small{color:#3b2a7a}
.bcf-sel__tab.is-on .bcf-sel__dot{background:#8b5cf6;box-shadow:0 0 0 4px rgba(139,92,246,.22)}
/* the bulge: inverse corners so the active tab flows into the sheet */
.bcf-sel__tab.is-on::before,.bcf-sel__tab.is-on::after{content:"";position:absolute;bottom:0;width:20px;height:20px}
.bcf-sel__tab.is-on::before{left:-20px;border-bottom-right-radius:20px;box-shadow:8px 8px 0 8px var(--bs-tab-on)}
.bcf-sel__tab.is-on::after{right:-20px;border-bottom-left-radius:20px;box-shadow:-8px 8px 0 8px var(--bs-tab-on)}
.bcf-sel__tab:first-child.is-on::before,.bcf-sel__tab:last-child.is-on::after{display:none}
.bcf-sel__tab[disabled]{opacity:.45;cursor:not-allowed}
.bcf-sel__tab-tip{display:none}
/* many tabs (more than 7): slimmer */
.bcf-sel--many .bcf-sel__tabs{overflow-x:auto;padding-bottom:20px;margin-bottom:-20px}
.bcf-sel--many .bcf-sel__tab{flex-basis:88px;padding-inline:6px}
.bcf-sel--many .bcf-sel__tab b{font-size:13px}
.bcf-sel--many .bcf-sel__tab small{display:none}

/* ---------- Sheet + panels ---------- */
.bcf-sel__sheet{background:#fff;border-radius:22px;overflow:visible}
.bcf-sel--single .bcf-sel__sheet{border-radius:22px}
.bcf-sel__panel{padding:20px 24px 24px;border-radius:22px;background:linear-gradient(180deg,var(--bs-tab-on) 0,#fff 64px,#fff calc(100% - 120px),#f7f9ff 100%)}
.bcf-sel--single .bcf-sel__panel{background:#fff}
.bcf-sel__panel[hidden]{display:none}
.bcf-sel__h{margin:0 0 14px;font-size:22px;font-weight:800;letter-spacing:-.01em;color:var(--bs-title)}
.bcf-sel__step{display:flex;align-items:center;gap:10px;margin:22px 0 12px;font-size:17px;font-weight:800;color:var(--bs-title)}
.bcf-sel__step:first-child{margin-top:0}
.bcf-sel__step i{font-style:normal;display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--bs-soft);color:var(--bs-frame);font-size:14px}

/* ---------- Delivery window / speed (dropdown) ---------- */
.bcf-sel__field{display:flex;align-items:center;gap:14px;padding:8px 8px 8px 12px;margin-bottom:20px;border-radius:22px;background:var(--bs-soft);box-shadow:inset 0 0 0 1.5px #d3def8}
.bcf-sel__field-ic{flex:none;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--bs-frame)}
.bcf-sel__field-ic svg{width:22px;height:22px}
.bcf-sel__field-label{flex:1;font-size:18px;font-weight:800;color:var(--bs-title)}
.bcf-sel__dd{position:relative}
.bcf-sel__dd-btn{min-height:52px;width:320px;max-width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px 0 16px;
  border:2px solid var(--bs-lav-line);border-radius:14px;background:var(--bs-lav);font-weight:700;font-size:15px;color:var(--bs-title);cursor:pointer}
.bcf-sel__dd-btn svg{width:18px;height:18px;color:#6d28d9;transition:transform .15s}
.bcf-sel__dd-btn[aria-expanded="true"]{box-shadow:0 0 0 4px rgba(167,139,250,.25)}
.bcf-sel__dd-btn[aria-expanded="true"] svg{transform:rotate(180deg)}
.bcf-sel__dd-list{position:absolute;top:calc(100% + 8px);left:0;z-index:20;width:100%;min-width:240px;margin:0;padding:6px;list-style:none;border-radius:16px;background:#fff;
  box-shadow:0 0 0 2px var(--bs-lav-line),0 24px 40px -16px rgba(76,29,149,.3)}
.bcf-sel__dd-list[hidden]{display:none}
.bcf-sel__dd-opt{min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-radius:10px;font-weight:600;font-size:15px;color:var(--bs-title);cursor:pointer}
.bcf-sel__dd-opt:hover,.bcf-sel__dd-opt.is-active{background:#f4f6fb}
.bcf-sel__dd-opt[aria-selected="true"]{background:var(--bs-lav-row);font-weight:700}
.bcf-sel__dd-opt svg{width:16px;height:16px;opacity:0;color:#6d28d9}
.bcf-sel__dd-opt[aria-selected="true"] svg{opacity:1}

/* ---------- Packages ---------- */
.bcf-sel__pkgs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.bcf-sel__pkg{position:relative;min-height:112px;border-radius:20px;background:var(--bs-card);box-shadow:inset 0 0 0 1.5px #e3e9f7,0 10px 22px -16px rgba(15,27,61,.35);
  padding:14px 12px 12px;cursor:pointer;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;transition:transform .12s,box-shadow .12s}
.bcf-sel__pkg:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1.5px #c9d6f5,0 14px 24px -16px rgba(15,27,61,.45)}
.bcf-sel__pkg input{position:absolute;opacity:0;pointer-events:none}
.bcf-sel__pkg:has(input:focus-visible){outline:3px solid #ffcf3f;outline-offset:2px}
.bcf-sel__qty{display:block;font-size:28px;font-weight:900;letter-spacing:-.03em;line-height:1;color:var(--bs-title);font-variant-numeric:tabular-nums}
.bcf-sel__unit{display:block;font-size:12px;font-weight:600;color:var(--bs-text);margin-top:4px}
.bcf-sel__price{font-size:15px;font-weight:800;color:var(--bs-price);background:#eef2fd;padding:5px 10px;border-radius:999px;margin-top:10px;font-variant-numeric:tabular-nums}
.bcf-sel__tag{position:absolute;top:-10px;right:10px;font-size:10px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;padding:3px 8px;border-radius:999px;white-space:nowrap}
.bcf-sel__tag--hot{background:var(--bs-hot);color:var(--bs-title)}
.bcf-sel__tag--start{background:var(--bs-start);color:var(--bs-buy-ink)}
.bcf-sel__tag--edge{background:#eef2fd;color:var(--bs-frame)}
.bcf-sel__pkg.is-on{background:linear-gradient(160deg,#e9defe,#d3c0fb);box-shadow:inset 0 0 0 2px #8b5cf6,0 0 0 4px rgba(139,92,246,.18),0 20px 30px -14px rgba(109,40,217,.5);transform:translateY(-4px)}
.bcf-sel__pkg.is-on .bcf-sel__unit{color:#4b3a7a}
.bcf-sel__pkg.is-on .bcf-sel__price{background:#fff;color:#5b21b6}
.bcf-sel__pkg.is-disabled{opacity:.45;pointer-events:none}

/* duration chips (Auto) */
.bcf-sel__chips{display:flex;flex-wrap:wrap;gap:8px}
.bcf-sel__chip{min-height:48px;min-width:84px;padding:0 16px;border:0;border-radius:14px;background:var(--bs-soft);box-shadow:inset 0 0 0 1.5px #d3def8;font-weight:700;font-size:15px;color:var(--bs-title);cursor:pointer;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15}
.bcf-sel__chip small{font-size:11px;font-weight:600;color:var(--bs-text)}
.bcf-sel__chip.is-on{background:var(--bs-lav);box-shadow:inset 0 0 0 2px var(--bs-lav-line)}

/* ---------- Custom quantity ---------- */
.bcf-sel__custom{margin-top:20px;display:flex;align-items:center;gap:16px;padding:14px 16px 14px 20px;border-radius:20px;background:var(--bs-qty-bg)}
.bcf-sel__custom-l{flex:1}
.bcf-sel__custom-l b{display:block;font-size:16px;font-weight:800;color:var(--bs-title)}
.bcf-sel__custom-l span{font-size:14px;color:var(--bs-text)}
.bcf-sel__stepper{display:flex;align-items:center;gap:4px;background:#fff;border-radius:999px;padding:4px;box-shadow:0 6px 14px -10px rgba(15,27,61,.4)}
.bcf-sel__stepper button{width:46px;height:46px;border:0;border-radius:50%;background:#eef2fd;font-size:22px;font-weight:800;color:var(--bs-frame);cursor:pointer}
.bcf-sel__stepper input{width:110px;border:0;background:transparent;text-align:center;font:inherit;font-size:20px;font-weight:900;color:var(--bs-title);font-variant-numeric:tabular-nums}

/* ---------- Summary ---------- */
.bcf-sel__sum{display:flex;align-items:center;gap:22px;margin-top:14px;padding:14px 14px 14px 22px;border-radius:22px;background:var(--bs-sum);color:#fff}
.bcf-sel__total{font-size:44px;font-weight:900;letter-spacing:-.035em;line-height:1;font-variant-numeric:tabular-nums}
.bcf-sel__meta{flex:1;min-width:0;padding:10px 16px;border-radius:16px;background:rgba(255,255,255,.12)}
.bcf-sel__meta b{display:block;font-size:16px;font-weight:700}
.bcf-sel__meta span{font-size:14px;color:#dbe6ff}
.bcf-sel__buy{min-height:60px;padding:0 32px;border:0;border-radius:999px;background:var(--bs-buy);color:var(--bs-buy-ink);font-size:20px;font-weight:800;cursor:pointer;
  box-shadow:0 0 0 4px rgba(255,255,255,.18),0 14px 26px -10px rgba(5,40,20,.6)}
.bcf-sel__buy:hover{filter:brightness(1.05)}
.bcf-sel.is-loading .bcf-sel__total,.bcf-sel.is-loading .bcf-sel__price{opacity:.4}
.bcf-sel.is-loading .bcf-sel__buy{opacity:.6;pointer-events:none}

/* ---------- Mobile (container narrower than 600px) ---------- */
@container (max-width:600px){
  .bcf-sel{border-radius:26px;padding:10px}
  .bcf-sel__tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:0;margin-bottom:10px;overflow:visible}
  .bcf-sel__tabs[data-count="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bcf-sel__tabs[data-count="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}
  .bcf-sel__tab{min-height:56px;border-radius:16px;padding:8px 4px}
  .bcf-sel__tab b{font-size:13px}
  .bcf-sel__tab small{display:none}
  .bcf-sel__tab.is-on{min-height:56px;box-shadow:0 8px 16px -8px rgba(0,0,0,.4)}
  .bcf-sel__tab.is-on::before,.bcf-sel__tab.is-on::after{display:none}
  .bcf-sel__tab.is-on .bcf-sel__tab-tip{display:block;position:absolute;left:50%;bottom:-7px;width:12px;height:12px;background:var(--bs-tab-on);transform:translateX(-50%) rotate(45deg);border-radius:2px}
  .bcf-sel__sheet,.bcf-sel__panel{border-radius:20px}
  .bcf-sel__panel{padding:16px 14px 18px}
  .bcf-sel__h{font-size:20px}
  .bcf-sel__field{flex-wrap:wrap;padding:10px;gap:10px 12px}
  .bcf-sel__field-ic{width:40px;height:40px}
  .bcf-sel__field-label{font-size:17px}
  .bcf-sel__dd{flex-basis:100%}
  .bcf-sel__dd-btn{width:100%}
  .bcf-sel__pkgs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .bcf-sel__pkg{min-height:100px;border-radius:18px;padding:12px 9px 10px}
  .bcf-sel__qty{font-size:21px}
  .bcf-sel__unit{font-size:11px}
  .bcf-sel__price{font-size:13px;padding:4px 8px}
  .bcf-sel__tag{right:6px;font-size:8px;padding:2px 6px}
  .bcf-sel__chip{min-width:0;flex:1 0 calc(33% - 8px);padding:0 8px}
  .bcf-sel__custom{flex-direction:column;align-items:stretch;padding:14px}
  .bcf-sel__stepper{justify-content:space-between}
  .bcf-sel__stepper button{width:48px;height:48px}
  .bcf-sel__sum{flex-wrap:wrap;gap:12px;padding:14px;border-radius:20px}
  .bcf-sel__total{font-size:34px}
  .bcf-sel__meta{flex:1 1 150px;padding:8px 12px}
  .bcf-sel__meta b{font-size:14px}
  .bcf-sel__meta span{font-size:12px}
  .bcf-sel__buy{flex-basis:100%;min-height:58px}
  /* Mobil: Kaufbalken bleibt beim Scrollen unten sichtbar (Vorgabe Devran 19.11.) */
  .bcf-sel__sum{position:sticky;bottom:8px;z-index:30;box-shadow:0 -6px 24px rgba(15,27,61,.25)}
}
