.bpfs {
  --bpfs-pink:#ec087a;
  --bpfs-black:#151515;
  --bpfs-line:#e2e2e2;
  --bpfs-soft:#f8f8f8;
  width:100% !important;
  max-width:none !important;
  flex:0 0 100% !important;
  clear:both;
  display:block;
  box-sizing:border-box;
  margin:14px 0 20px;
  padding:16px;
  border:1px solid var(--bpfs-line);
  border-radius:14px;
  background:#fff;
  font-family:inherit;
}
.bpfs * { box-sizing:border-box; }
.bpfs__head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:13px;
}
.bpfs__eyebrow {
  display:block;
  margin-bottom:4px;
  font-size:9px;
  line-height:1.2;
  font-weight:800;
  letter-spacing:1.4px;
  color:var(--bpfs-pink);
}
.bpfs__title {
  margin:0;
  color:var(--bpfs-black);
  font-size:20px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.35px;
}
.bpfs__intro {
  max-width:390px;
  margin:0;
  color:#747474;
  font-size:11px;
  line-height:1.45;
  text-align:right;
}
.bpfs__grid {
  width:100%;
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:9px;
}
.bpfs__item {
  position:relative;
  min-width:0;
  width:100%;
  display:grid !important;
  grid-template-columns:58px minmax(0,1fr);
  align-items:center;
  gap:9px;
  min-height:88px;
  margin:0 !important;
  padding:10px 9px 10px 13px;
  border:1px solid var(--bpfs-line);
  border-radius:10px;
  background:var(--bpfs-soft);
  cursor:pointer;
  overflow:hidden;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,opacity .18s ease;
}
.bpfs__item:hover {
  border-color:#c9c9c9;
  box-shadow:0 8px 18px rgba(0,0,0,.055);
  transform:translateY(-1px);
}
.bpfs__item.is-current {
  border-color:#c8c8c8;
  background:#fff;
  box-shadow:0 0 0 1px rgba(21,21,21,.035);
}
/* Aktualny produkt wyróżniamy kolorem wariantu zamiast dodatkowej etykiety. */
.bpfs__item--k.is-current {
  border-color:#9d9d9d;
  background:#f7f7f7;
  box-shadow:0 0 0 1px rgba(21,21,21,.07), 0 7px 18px rgba(21,21,21,.06);
}
.bpfs__item--c.is-current {
  border-color:#7bcde9;
  background:#f2fbfe;
  box-shadow:0 0 0 1px rgba(0,169,224,.10), 0 7px 18px rgba(0,169,224,.08);
}
.bpfs__item--m.is-current {
  border-color:#f08aba;
  background:#fff5fa;
  box-shadow:0 0 0 1px rgba(236,8,122,.10), 0 7px 18px rgba(236,8,122,.08);
}
.bpfs__item--y.is-current {
  border-color:#dfca59;
  background:#fffdf2;
  box-shadow:0 0 0 1px rgba(240,200,0,.10), 0 7px 18px rgba(240,200,0,.08);
}
.bpfs__item.is-unavailable {
  opacity:.5;
  background:#f4f4f4;
  cursor:default;
}
.bpfs__item.is-unavailable:hover { transform:none; box-shadow:none; }
.bpfs__checkbox { position:absolute; opacity:0; pointer-events:none; }
.bpfs__check {
  position:absolute;
  top:8px;
  right:8px;
  width:16px;
  height:16px;
  border:1px solid #c7c7c7;
  border-radius:3px;
  background:#fff;
}
.bpfs__checkbox:checked + .bpfs__check {
  border-color:var(--bpfs-black);
  background:var(--bpfs-black);
}
.bpfs__checkbox:checked + .bpfs__check:after {
  content:"✓";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:12px;
  line-height:1;
  font-weight:900;
  transform:translateY(-.25px);
}
.bpfs__color {
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:4px;
  background:#111;
}
.bpfs__item--c .bpfs__color { background:#00a9e0; }
.bpfs__item--m .bpfs__color { background:#ec087a; }
.bpfs__item--y .bpfs__color { background:#f0c800; }
.bpfs__media {
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:7px;
  background:#fff;
}
.bpfs__media img { display:block; max-width:100%; max-height:100%; object-fit:contain; }
.bpfs__imageFallback { font-size:18px; font-weight:900; color:#aaa; }
.bpfs__info { min-width:0; display:block; padding-right:12px; }
.bpfs__topline { display:flex; align-items:center; gap:5px; min-width:0; flex-wrap:wrap; }
.bpfs__topline strong { font-size:11px; color:#222; line-height:1.2; }
.bpfs__topline em {
  font-style:normal;
  font-size:7px;
  line-height:1;
  padding:3px 4px;
  border-radius:3px;
  background:#f7e4ee;
  color:var(--bpfs-pink);
  text-transform:uppercase;
  letter-spacing:.4px;
  white-space:nowrap;
}
.bpfs__ref {
  display:block;
  margin-top:4px;
  color:#777;
  font-size:9px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.bpfs__price { display:block; margin-top:4px; color:#111; font-size:12px; font-weight:800; }
.bpfs__availability {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:5px;
  font-size:8px;
  line-height:1.2;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.25px;
}
.bpfs__availability:before {
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
}
.bpfs__availability.is-in-stock { color:#2d9952; }
.bpfs__availability.is-out-of-stock { color:#c43745; }
.bpfs__footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:13px;
}
.bpfs__summary { display:flex; align-items:baseline; gap:8px; color:#777; font-size:10px; }
.bpfs__summary strong { color:#111; font-size:17px; font-weight:800; }
.bpfs__button {
  min-height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:0 20px;
  border:0;
  border-radius:999px;
  background:var(--bpfs-black);
  color:#fff;
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  transition:transform .18s ease,background .18s ease;
}
.bpfs__button:hover { transform:translateY(-1px); background:#050505; }
.bpfs__button:disabled { opacity:.45; cursor:not-allowed; transform:none; }
.bpfs__arrow { color:var(--bpfs-pink); font-size:17px; }
.bpfs__message { min-height:0; padding-top:7px; font-size:10px; color:#4b7458; text-align:right; }
.bpfs__message:empty { display:none; }
.bpfs__message.is-error { color:#b02a37; }
.bpfs.is-loading .bpfs__button { opacity:.65; pointer-events:none; }

@media (max-width:1199px) {
  .bpfs__grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:767px) {
  .bpfs { margin-top:14px; padding:14px; border-radius:12px; }
  .bpfs__head { align-items:flex-start; flex-direction:column; gap:5px; }
  .bpfs__intro { max-width:none; text-align:left; }
  .bpfs__grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:7px; }
  .bpfs__item { grid-template-columns:46px minmax(0,1fr); min-height:76px; padding:8px 7px 8px 11px; }
  .bpfs__media { width:46px; height:46px; }
  .bpfs__footer { align-items:stretch; flex-direction:column; gap:10px; }
  .bpfs__summary { justify-content:space-between; }
  .bpfs__button { width:100%; justify-content:space-between; }
  .bpfs__message { text-align:left; }
}
@media (max-width:420px) {
  .bpfs__grid { grid-template-columns:1fr !important; }
}
