/* ── BroKreator Configurator Shortcode ─────────────────────────────────────── */

.bm-configurator-section {
  width: 100%;
  overflow: clip;
  background-image: url("../images/brokreator-background.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-size: 50% 100%;
  background-attachment: fixed;
}

/* Izolacja — reset wszystkich stylów odziedziczonych od motywu/strony */
.bm-configurator-wrap {
  all: revert;
  /* Przywróć niezbędne właściwości layoutu po resecie */
  display: flex;
  align-items: stretch;
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  color: #202020;
  line-height: 1.4;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}

/* Resetuj dziedziczenie dla wszystkich bezpośrednich i zagnieżdżonych elementów */
.bm-configurator-wrap *,
.bm-configurator-wrap *::before,
.bm-configurator-wrap *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Wyzeruj WSZYSTKIE stare style motywu/systemu na przyciskach i linkach wewnątrz wrapa */
/* .bm-configurator-wrap button,
.bm-configurator-wrap button:hover,
.bm-configurator-wrap button:focus,
.bm-configurator-wrap button:active,
.bm-configurator-wrap button:visited,
.bm-configurator-wrap a,
.bm-configurator-wrap a:hover,
.bm-configurator-wrap a:focus,
.bm-configurator-wrap a:active,
.bm-configurator-wrap a:visited,
.bm-configurator-wrap input,
.bm-configurator-wrap input:hover,
.bm-configurator-wrap input:focus,
.bm-configurator-wrap label,
.bm-configurator-wrap h1,
.bm-configurator-wrap h2,
.bm-configurator-wrap h3,
.bm-configurator-wrap h4,
.bm-configurator-wrap p,
.bm-configurator-wrap hr {
    all: unset;
    box-sizing: border-box;
} */

/* .bm-configurator-wrap button:hover {
  border: unset;
  background-color: unset;
} */

/* ── Lewa karta (podgląd produktu) ────────────────────────────────────────── */
.bm-preview-card {
  flex: 1 1 0;
  min-width: 0;
  /* background: #fff; */
  border-radius: 0;
  /* box-shadow: 0 1px 4px rgba(0,0,0,.08); */
  overflow: clip;
  display: flex;
  flex-direction: column;
  /* Karta rozciąga się na pełną wysokość prawego panelu */
  align-self: stretch;
}

/* Wewnętrzna treść karty jest sticky.
   clamp(min, idealny, max): na małych ekranach bliżej góry, na dużych wycentrowana pionowo. */
.bm-preview-card__inner {
  position: sticky;
  top: clamp(70px, calc(50vh - 390px), 280px);
  display: flex;
  flex-direction: column;
}

@media (min-width: 1500px) {
  .bm-preview-card__inner {
    position: sticky;
    top: clamp(70px, calc(50vh - 390px), 120px);
    display: flex;
    flex-direction: column;
  }
  body .bm-product-image,
  body .bm-bottle-img {
    height: 750px;
    width: auto;
  }
}

.bm-view-toggle {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 27px;
  padding: 8px;
  width: 100%;
}

.bm-view-toggle__label {
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.24px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bm-view-toggle__switch {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.bm-view-toggle__btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
  border: none;
  transition: border-color 0.15s;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.bm-view-toggle__btn:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.bm-view-toggle__btn[data-view="product"] {
  padding: 0 20px;
  align-self: stretch;
  border-radius: 50px 0 0 50px;
  border: 1px solid transparent;
  position: relative;
}

.bm-view-toggle__btn[data-view="label"] {
  padding: 0 20px 0 26px;
  border-radius: 0 50px 50px 0;
  margin-left: -20px;
  position: relative;
}

.bm-view-toggle__btn span {
  display: block;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
}

.bm-view-toggle__btn.is-active {
  border: 1px solid var(--Body-text, #5c5c5c);
  border-radius: 50px;
  z-index: 1;
}

.bm-view-toggle__btn.is-active span {
  border-bottom-color: #5695c9;
}

.bm-preview-card__body {
  flex: 1;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #bbb;
  font-size: 14px;
}

[data-view-panel="product"] {
  padding: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Prawa strona (konfigurator) ──────────────────────────────────────────── */
.bm-config-panel {
  flex: 0 0 650px;
  max-width: 650px;
  min-width: 0;
  background: #fff;
  border-radius: 0;
  padding: 20px 24px 0 24px;
  margin-right: -24px;
  box-sizing: border-box;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 25px;
  position: relative;
}
.bm-config-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 50vw;
  height: 100%;
  background-color: #fff;
}

/* ── Pasek nawigacji kroków ───────────────────────────────────────────────── */
.bm-steps-nav {
  display: flex;
  align-items: stretch;
  width: 100%;
  border-bottom: 1px solid #5c5c5c;
}

.bm-steps-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  flex: 1;
  padding-right: 13px;
  position: relative;
  padding-bottom: 10px;
}

.bm-steps-item:last-child {
  padding-right: 0;
}

/* Aktywny krok: pomarańczowa linia przykrywa szarą krawędź navu */
.bm-steps-item.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 16px;
  height: 3px;
  background: #5695c9;
}

.bm-steps-item.is-active:last-child::after {
  right: 0;
}

/* Element __line ukryty — zastąpiony przez border-bottom navu i ::after aktywnego */
.bm-steps-item__line {
  display: none;
}

.bm-steps-item__text {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.bm-steps-item__number {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.64px;
  text-transform: uppercase;
  color: #5c5c5c;
}

.bm-steps-item__label {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.32px;
  text-transform: uppercase;
  color: #5c5c5c;
}

/* Stan aktywny — tekst */
.bm-steps-item.is-active .bm-steps-item__number,
.bm-steps-item.is-active .bm-steps-item__label {
  color: #5695c9;
}

/* Odblokowany krok — klikalny cofacz */
.bm-steps-item.is-unlocked {
  cursor: pointer;
}
.bm-steps-item.is-unlocked .bm-steps-item__number,
.bm-steps-item.is-unlocked .bm-steps-item__label {
  color: #1a1a1a;
}
.bm-steps-item.is-unlocked:hover .bm-steps-item__number,
.bm-steps-item.is-unlocked:hover .bm-steps-item__label {
  color: #5695c9;
}

/* Separator */
.bm-divider {
  width: 100%;
  height: 1px;
  background: #d6d6d6;
  border: none;
  margin: 0;
}

.bm-divider-step3 {
  background: #d6d6d6 !important;
}

/* ── Switch Najczęściej / Własna ──────────────────────────────────────────── */
.bm-mode-switch {
  display: flex;
  align-items: center;
  gap: 24px;
  align-self: stretch;
}

.bm-mode-switch__btn {
  display: flex;
  width: 292px;
  height: 94px;
  padding: 10px;
  align-items: center;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  text-align: left;
  flex-grow: 1;
}

.bm-mode-switch__btn:hover {
  border-color: #aaa;
  background: #fff;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

.bm-mode-switch__btn.is-active,
.bm-mode-switch__btn.is-active:hover {
  background: #000;
  border-color: #000;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

/* Ikona zaznaczenia — ukryta domyślnie */
.bm-mode-switch__check {
  display: none;
  flex-shrink: 0;
}

.bm-mode-switch__btn.is-active .bm-mode-switch__check {
  display: block;
}

/* Treść tekstowa */
.bm-mode-switch__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.bm-mode-switch__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-mode-switch__title {
  color: #000;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.bm-mode-switch__desc {
  color: #8c8c8c;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-mode-switch__btn.is-active .bm-mode-switch__title,
.bm-mode-switch__btn.is-active .bm-mode-switch__desc {
  color: #fff;
}

/* ── Panel własnej konfiguracji ───────────────────────────────────────────── */

.bm-section {
  padding-bottom: 25px;
  border-bottom: 1px solid #d6d6d6;
}

.bm-section__title {
  margin: 0 0 24px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #202020;
  flex: 1 1 auto;
}

/* Błąd walidacji kroku 1 — inline obok nagłówka sekcji */
.bm-step1-error {
  align-self: center;
  font-family: Catamaran, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #d63638;
  line-height: 1.3;
  white-space: nowrap;
}

/* ── Nagłówek sekcji z opcjonalnym tooltipem ── */
.bm-section__header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  align-self: stretch;
  margin-bottom: 0;
}

.bm-section__tooltip-wrap {
  position: relative;
  flex-shrink: 0;
  margin-top: 1px;
}

.bm-section__tooltip-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  display: block;
  color: inherit;
  box-shadow: unset !important;
}
.bm-section__tooltip-btn:hover,
.bm-section__tooltip-btn:focus,
.bm-section__tooltip-btn:active {
  background: none;
  border: none;
  outline: none;
  box-shadow: none;
  color: inherit;
  box-shadow: unset !important;
}

.bm-section__tooltip-content {
  display: none;
  position: absolute;
  right: 0;
  top: 30px;
  background: #202020;
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  min-width: 200px;
  max-width: 280px;
  z-index: 200;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.bm-section__tooltip-wrap:hover .bm-section__tooltip-content,
.bm-section__tooltip-btn:focus + .bm-section__tooltip-content {
  display: block;
}

/* Przyciski opcji (kolor, fermentacja, opakowanie) */
.bm-options-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  flex-wrap: wrap;
}

.bm-option-btn {
  display: flex;
  padding: 12px 0px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex: 1 0 0;
  align-self: stretch;
  border: 1px solid #c3c4c7;
  background: transparent;
  cursor: pointer;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
  color: #1b1b1b;
  border-radius: 3px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  box-sizing: border-box;
}

.bm-option-btn .bm-icon-check {
  display: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.bm-option-btn .bm-icon-bottle {
  display: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.bm-option-btn:hover {
  border: 1px solid #c3c4c7;
  background: transparent;
  color: #1b1b1b;
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

.bm-option-btn.is-selected,
.bm-option-btn.is-selected:hover {
  border: 1px solid #3d3d3d;
  background: #3d3d3d;
  color: #fff;
  /* gap: 5px; */
  text-decoration: none;
  outline: none;
  box-shadow: none;
}

/* Stan zablokowany — nie mieści się w ograniczeniach admina */
.bm-option-btn.is-restricted,
.bm-option-btn.is-restricted:hover {
  opacity: 0.35;
  cursor: not-allowed;
  border: 1px solid #c3c4c7;
  background: transparent;
  color: #1b1b1b;
  text-decoration: none;
  outline: none;
  box-shadow: none;
  pointer-events: none;
}

.bm-option-btn.is-selected .bm-icon-check {
  display: inline-flex;
}

/* Zablokowane przez preset — zaznaczone ale nieklikalne */
.bm-option-btn.is-locked,
.bm-option-btn.is-locked:hover {
  cursor: default;
  pointer-events: none;
  opacity: 0.75;
}

.bm-option-btn.is-selected.is-locked,
.bm-option-btn.is-selected.is-locked:hover {
  opacity: 1;
  cursor: default;
}

/* Moc alkoholu — prezentacja w formie checkboxów, nie pełnych przycisków.
   Selektory zagnieżdżone pod .bm-options-row--checkbox (zamiast samego
   modyfikatora --checkbox), żeby pewnie wygrywać z regułą .bm-option-btn
   z media query mobile (ta sama liczba klas — bez zagnieżdżenia wygrywałaby
   ta zdefiniowana później w pliku, przez co przycisk "skakał" po zaznaczeniu). */
.bm-options-row--checkbox {
  gap: 24px;
}

.bm-options-row--checkbox .bm-option-btn {
  flex: 0 0 auto;
  align-self: auto;
  justify-content: flex-start;
  gap: 10px;
  padding: 4px 0;
  border: none;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  box-shadow: none;
}

.bm-options-row--checkbox .bm-option-btn:hover,
.bm-options-row--checkbox .bm-option-btn:focus,
.bm-options-row--checkbox .bm-option-btn:active,
.bm-options-row--checkbox .bm-option-btn.is-selected,
.bm-options-row--checkbox .bm-option-btn.is-selected:hover,
.bm-options-row--checkbox .bm-option-btn.is-selected:focus,
.bm-options-row--checkbox .bm-option-btn.is-selected:active {
  border: none;
  background: transparent;
  color: #1b1b1b;
  outline: none;
  box-shadow: none;
}

.bm-option-btn__checkbox-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 1.5px solid #c3c4c7;
  border-radius: 3px;
  box-sizing: border-box;
  position: relative;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.bm-option-btn--checkbox.is-selected .bm-option-btn__checkbox-box {
  background: #3d3d3d;
  border-color: #3d3d3d;
}

.bm-option-btn--checkbox.is-selected .bm-option-btn__checkbox-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Przyciski opakowania — siatka 2 kolumn */
.bm-options-row--packaging {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Butelki: check (lewa, 5px), tekst, butelka (5px prawa) — wszystko centrum */
.bm-option-btn--packaging {
  justify-content: center;
  gap: 5px;
}

/* Check zajmuje miejsce zawsze (visibility), żeby tekst nie skakał */
.bm-option-btn--packaging .bm-icon-check {
  display: inline-flex;
  visibility: hidden;
  flex-shrink: 0;
}

.bm-option-btn--packaging.is-selected .bm-icon-check {
  visibility: visible;
}

/* Ikona butelki zawsze widoczna — nie nadpisuj display */
.bm-option-btn--packaging .bm-icon-bottle {
  display: inline-flex;
  flex-shrink: 0;
}

/* Stroke ikon butelki — normalny/aktywny */
.bm-option-btn--packaging .bm-icon-bottle path,
.bm-option-btn--packaging .bm-icon-bottle line {
  stroke: #202020;
}

.bm-option-btn--packaging.is-selected .bm-icon-bottle path,
.bm-option-btn--packaging.is-selected .bm-icon-bottle line {
  stroke: #fff;
}

/* Sekcja separatora + następnej sekcji */
.bm-section + .bm-divider {
  margin: 0 0 24px;
}

/* ── MOC PIWA ─────────────────────────────────────────────────────────────── */
.bm-strength {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bm-strength__checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #202020;
  letter-spacing: -0.32px;
}

.bm-strength__slider-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bm-strength__track {
  position: relative;
  padding-bottom: 20px;
}

.bm-strength__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #3d3d3d 0%,
    #3d3d3d var(--bm-slider-pct, 50%),
    #d6d6d6 var(--bm-slider-pct, 50%),
    #d6d6d6 100%
  );
  outline: none;
  cursor: pointer;
}

.bm-strength__range:disabled {
  opacity: 0.35;
  cursor: default;
}

.bm-strength__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3d3d3d;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.bm-strength__range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3d3d3d;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.bm-strength__labels {
  display: flex;
  justify-content: space-between;
  font-family: Catamaran, sans-serif;
  font-size: 13px;
  color: #7f7e7e;
  margin-top: 4px;
}

.bm-strength__value-display {
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #202020;
}

.bm-strength__midlabel {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  color: #7f7e7e;
  white-space: nowrap;
  pointer-events: none;
}

/* ── Licznik ilości ───────────────────────────────────────────────────────── */
.bm-qty-wrap {
  height: 50px !important;
  all: unset;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid #c0c0c0;
  background: #fff;
  width: fit-content;
  border-radius: 4px;
}

.bm-qty__btn {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 50px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.bm-qty__btn:hover {
  background: transparent;
}
.bm-qty__btn:focus {
  background: transparent;
  outline: none;
}
.bm-qty__btn:active {
  background: transparent;
}

.bm-qty__input {
  all: unset;
  width: 52px;
  height: 50px;
  border-left: 1px solid #d9d9d9 !important;
  border-right: 1px solid #d9d9d9 !important;
  text-align: center;
  font-family: Catamaran, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #202020;
  background: transparent;
  border: none;
  padding: 0;
  -moz-appearance: textfield;
}
.bm-qty__input::-webkit-inner-spin-button,
.bm-qty__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bm-qty__input:focus {
  outline: none;
}
.bm-qty__input[readonly] {
  cursor: default;
  user-select: none;
}

/* ── Podsumowanie ceny ────────────────────────────────────────────────────── */
.bm-price-summary {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
  padding: 37px 24px 50px;
  border-top: 1px solid #d6d6d6;
  background: #f4f4f4;
  margin-left: -24px;
  margin-right: -24px;
  position: relative;
}
.bm-price-summary::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 100%;
  width: 50vw;
  height: 1px;
  background-color: #d6d6d6;
  z-index: 10;
}
.bm-price-summary::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 50vw;
  height: 100%;
  background-color: #f4f4f4;
  z-index: 9;
}

/* ── Cennik ilościowy (lewa strona) ───────────────────────────────────────── */
.bm-tier-table {
  display: flex;
  flex-direction: column;
  padding: 15px;
  align-items: flex-start;
  gap: 10px;
  flex: 1 0 0;
  border: 1px solid #5695c9;
  background: #fff;
}

.bm-tier-table__title {
  margin: 0;
  color: #202020;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bm-tier-table__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  margin-top: 0;
}

.bm-tier-table__col {
  color: #1b1b1b;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.bm-tier-table__sep {
  width: 100%;
  height: 1px;
  background: #d6d6d6;
  border: none;
  margin: 0;
  align-self: stretch;
}

.bm-tier-table__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: stretch;
}

.bm-tier-row {
  display: flex;
  padding: 6px 10px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  border: 1px solid transparent;
  border-radius: 2px;
}

.bm-tier-row.is-active {
  border-color: #5695c9;
  background: rgba(86, 149, 201, 0.15);
}

.bm-tier-row__range {
  color: #1b1b1b;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.bm-tier-row__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bm-tier-row__netto {
  color: #1b1b1b;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.bm-tier-row__brutto {
  color: #5c5c5c;
  font-family: Catamaran, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 125%;
}

/* Krok 3: cennik ilościowy + cena jednostkowa/razem przeniesione do wnętrza formularza zamówienia */
.bm-configurator-wrap.bm-step-3 .bm-price-summary {
  display: none;
}

/* ── Prawa strona: cena + przycisk ───────────────────────────────────────── */
.bm-price-calc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  flex: 1;
}

.bm-price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-self: stretch;
}

.bm-price-row--total {
  margin-top: 0;
}

.bm-price-row__val-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bm-price-calc .bm-unit-price::after {
  content: " (netto)";
}

.bm-price-row__sub {
  color: #5c5c5c;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 125%;
}

.bm-unit-price {
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
}

.bm-price-row__value {
  font-family: "Barlow Condensed", Catamaran, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #202020;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bm-price-row--total .bm-price-row__label,
.bm-price-row--total .bm-price-row__value {
  font-size: 24px;
  letter-spacing: 0.48px;
}

/* ── Krok 3: RAZEM w podsumowaniu zamówienia (styl "Heading 3") ──────────────── */
.bm-configurator-wrap.bm-step-3
  .bm-order-form
  .bm-price-row--total
  .bm-price-row__label,
.bm-configurator-wrap.bm-step-3
  .bm-order-form
  .bm-price-row--total
  .bm-price-row__value {
  color: var(--Black, #000);
  font-family: "Barlow Condensed";
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.64px;
  text-transform: uppercase;
}

.bm-configurator-wrap.bm-step-3
  .bm-order-form
  .bm-price-row--total
  .bm-price-row__val-stack {
  gap: 6px;
}

.bm-configurator-wrap.bm-step-3
  .bm-order-form
  .bm-price-row--total
  .bm-price-row__sub {
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
}

/* ── Przycisk "DALEJ - KONFIGURUJ ETYKIETĘ" (krok 1 → 2) ─────────────────── */
.bm-btn-configure-label {
  all: unset;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  padding: 10px 20px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 4px;
  background: #5695c9;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
  cursor: pointer;
}
.bm-btn-configure-label:hover {
  background: #4a80ac;
  color: #fff;
}
.bm-btn-configure-label:focus {
  background: #5695c9;
  color: #fff;
  outline: none;
}
.bm-btn-configure-label:active {
  background: #4a80ac;
  color: #fff;
}
.bm-btn-configure-label:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Małe przyciski Edytuj / Usuń pozycji w podsumowaniu kroku 3 */
.bm-summary-edit-btn,
.bm-summary-delete-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  padding: 4px 10px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 2px;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.bm-summary-edit-btn:hover,
.bm-summary-delete-btn:hover,
.bm-summary-delete-btn:focus {
  background: #202020;
  color: #fff;
  border-color: #202020;
  outline: none;
}
.bm-summary-edit-btn.is-active {
  background: #202020;
  color: #fff;
  border-color: #202020;
}

.bm-summary-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Pasek z przyciskiem PDF pod podglądem etykiety */
.bm-pdf-bar {
  display: flex;
  justify-content: flex-end;
  padding: 8px 0 0;
}

.bm-btn-pdf {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1.5px solid #3d3d3d;
  border-radius: 4px;
  background: transparent;
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.28px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}

.bm-btn-pdf:hover,
.bm-btn-pdf:focus {
  background: #3d3d3d;
  color: #fff;
  outline: none;
}

.bm-btn-pdf:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* ── Krok 2 — pola formularza etykiety ───────────────────────────────────── */
.bm-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  align-self: stretch;
}

.bm-field__label {
  line-height: 1.3;
  letter-spacing: -0.32px;
  color: #202020;
  font-family: Catamaran;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%; /* 20.8px */
  letter-spacing: -0.32px;
}

/* Select */
.bm-select-wrap {
  position: relative;
  align-self: stretch;
}

.bm-field__select {
  all: unset;
  box-sizing: border-box;
  display: flex;
  height: 40px;
  padding: 8px 44px 8px 16px;
  align-items: center;
  width: 100%;
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.28px;
  border: 1px solid #c0c0c0;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.bm-field__select:focus {
  border-color: #7f7e7e;
}

.bm-select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Custom select (podgląd fontów w rozwiniętej liście) */
.bm-visually-hidden-select {
  display: none;
}

.bm-custom-select__trigger {
  justify-content: flex-start;
  text-align: left;
}

.bm-custom-select.is-open .bm-custom-select__trigger {
  border-color: #7f7e7e;
}

.bm-custom-select.is-open .bm-select-arrow {
  transform: translateY(-50%) rotate(180deg);
}

.bm-custom-select__value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-custom-select__list {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #c0c0c0;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
}

.bm-custom-select__list[hidden] {
  display: none;
}

.bm-custom-select__option {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 8px 16px 8px 36px;
  position: relative;
  color: #3d3d3d;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.28px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-custom-select__option:hover,
.bm-custom-select__option:focus {
  background: #f2f2f2;
  outline: none;
}

.bm-custom-select__option.is-selected {
  background: #eaf3ff;
}

.bm-custom-select__option.is-selected::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 6px;
  height: 11px;
  transform: translateY(-60%) rotate(45deg);
  border-right: 2px solid #3d8bff;
  border-bottom: 2px solid #3d8bff;
}

/* Text input */
.bm-field__input {
  all: unset;
  box-sizing: border-box;
  display: flex;
  height: 40px;
  padding: 10px 12px;
  align-items: center;
  align-self: stretch;
  width: 100%;
  color: #5c5c5c;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.28px;
  border: 1px solid #c0c0c0;
  background: #fff;
  border-radius: 0 !important;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: var(--White, #fff);
  color: var(--Body-text, #5c5c5c);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%; /* 17.5px */
  min-height: 48px;
  border-radius: 4px !important;
}
.bm-field__input:focus {
  outline: none;
  border-color: #7f7e7e;
}
.bm-field__input.is-error {
  border-color: #d32f2f;
}
.bm-field__error-msg {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* Textarea */
.bm-field__textarea {
  all: unset;
  box-sizing: border-box;
  height: 129px;
  padding: 8px 16px;
  align-self: stretch;
  width: 100%;
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.28px;
  border: 1px solid #c0c0c0;
  background: #fff;
  resize: none;
}
.bm-field__textarea:focus {
  outline: none;
  border-color: #7f7e7e;
}
.bm-field__textarea.is-error {
  border-color: #d32f2f;
}

/* Charcount */
.bm-charcount {
  color: #6d6d6d;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.24px;
}

/* ── Pole koloru tła nazwy piwa ────────────────────────────────────────── */
.bm-beer-name-bg-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin: 25px 0;
}

.bm-bg-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bm-bg-item__label {
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #3d3d3d;
  letter-spacing: -0.24px;
  white-space: nowrap;
}

.bm-alpha-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bm-alpha-wrap__pct {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-family: Catamaran, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  color: #8c8c8c;
  pointer-events: none;
  line-height: 19.5px;
}

.bm-field__color {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid #d9d9d9;
  border-radius: 4px;
  background: var(--White, #fff);
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: none;
  outline: none;
}
.bm-field__color::-webkit-color-swatch-wrapper {
  padding: 0;
  border: none;
  box-shadow: none;
}
.bm-field__color::-webkit-color-swatch {
  border: none;
  border-radius: 1px;
  box-shadow: none;
}
.bm-field__color::-moz-color-swatch {
  border: none;
  border-radius: 1px;
  box-shadow: none;
}
.bm-field__color::-moz-color-swatch {
  border: none;
  border-radius: 1px;
}

/* ── Custom color picker ─────────────────────────────────────────────────── */
.bm-cp-wrap {
  position: relative;
  display: inline-block;
}

.bm-cp-swatch {
  display: block;
  width: 40px;
  height: 40px;
  border: 1px solid #c0c0c0;
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  background: #fff;
  flex-shrink: 0;
}

.bm-cp-popup {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #c0c0c0;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.bm-cp-wrap.is-open .bm-cp-popup {
  display: block;
}

.bm-cp-native {
  -webkit-appearance: none;
  appearance: none;
  width: 160px;
  height: 120px;
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 3px;
  display: block;
}

.bm-cp-native::-webkit-color-swatch-wrapper {
  padding: 0;
}
.bm-cp-native::-webkit-color-swatch {
  border: none;
  border-radius: 3px;
}

.bm-beer-name-bg-alpha {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 120px;
}

.bm-field__alpha-num {
  all: unset;
  box-sizing: border-box;
  width: 72px;
  height: 44px;
  padding: 8px 24px 8px 10px;
  border: 2px solid #d9d9d9;
  border-radius: 4px;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #3d3d3d;
  background: var(--White, #fff);
  text-align: left;
}
.bm-field__alpha-num:focus {
  border-color: #7f7e7e;
}
/* Ukryj strzałki spin */
.bm-field__alpha-num::-webkit-inner-spin-button,
.bm-field__alpha-num::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bm-field__alpha-num {
  -moz-appearance: textfield;
}

/* Nagłówki sekcji TYŁ/PRZÓD ETYKIETY */
.bm-label-section-title {
  margin: 0;
  color: #202020;
  font-family: "Barlow Condensed", Catamaran, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Opis wymiarów */
.bm-label-dims {
  margin: 0;
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.32px;
}
.bm-label-dims strong {
  color: #3d3d3d;
  font-weight: 600;
}

/* Blok uploadu */
.bm-upload-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  align-self: stretch;
  border: 1px dashed #3d3d3d;
  border-radius: 5px;
  background-color: #f5f5f5;
  margin-top: 10px;
}

.bm-upload-block__title {
  color: #3d3d3d;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.32px;
}

/* Dropzone */
.bm-dropzone {
  all: unset;
  box-sizing: border-box;
  display: flex;
  height: 85px;
  padding: 24px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  width: 100%;
  cursor: pointer;
  text-align: center;
}
/* .bm-dropzone:hover  { background: #F6F6F6; }
.bm-dropzone:focus  { outline: none; background: #F6F6F6; }
.bm-dropzone:active { background: #F6F6F6; } */
.bm-dropzone.is-error {
  border: 1px solid #d32f2f;
  border-radius: 5px;
}

.bm-dropzone__text {
  color: #515151;
  font-family: "Source Sans Pro", Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bm-dropzone__link {
  color: #151515;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.bm-file-input {
  display: none;
}

/* "lub" separator */
.bm-or-sep {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: #7f7e7e;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  margin: 20px 0;
}

.bm-or-sep::before,
.bm-or-sep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #c0c0c0;
}

/* Blok AI */
.bm-ai-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.bm-btn-ai {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  height: 40px;
  padding: 8px 20px;
  justify-content: center;
  align-items: center;
  background: #202020;
  color: #fff;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.28px;
  cursor: pointer;
}
.bm-btn-ai:hover {
  background: #202020;
  color: #fff;
}
.bm-btn-ai:focus {
  background: #202020;
  color: #fff;
  outline: none;
}
.bm-btn-ai:active {
  background: #202020;
  color: #fff;
}

.bm-btn-ai.bm-btn-ai--full {
  width: 100%;
  height: 48px;
  background: #5695c9;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.bm-btn-ai.bm-btn-ai--full:hover {
  background: #4a80ac;
  color: #fff;
}
.bm-btn-ai.bm-btn-ai--full:focus {
  background: #4a80ac;
  color: #fff;
  outline: none;
}
.bm-btn-ai.bm-btn-ai--full:active {
  background: #4a80ac;
  color: #fff;
}

.bm-btn-ai.is-loading {
  gap: 8px;
  cursor: default;
  opacity: 0.85;
}

.bm-ai-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: bm-ai-spin 0.7s linear infinite;
}

@keyframes bm-ai-spin {
  to {
    transform: rotate(360deg);
  }
}

.bm-ai-notice {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 12px;
  align-items: flex-start;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid var(--Orange, #5695c9);
  background: rgba(86, 149, 201, 0.15);
}

.bm-ai-notice__icon {
  display: flex;
  padding-top: 2px;
  align-items: flex-start;
  flex-shrink: 0;
}

.bm-ai-notice__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bm-ai-notice__title {
  color: var(--Orange, #5695c9);
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 125%;
}

.bm-ai-notice__text {
  color: var(--Orange, #5695c9);
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 16.875px;
}

.bm-ai-notice__text strong {
  font-weight: 700;
}

/* Przyciski akcji */
.bm-price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  align-self: stretch;
  width: 100%;
}

.bm-btn-order {
  all: unset;
  box-sizing: border-box;
  display: flex;
  height: 48px;
  padding: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  align-self: stretch;
  width: 100%;
  background: #5695c9;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
  cursor: pointer;
  white-space: nowrap;
}
.bm-btn-order:hover {
  background: #4a80ac;
  color: #fff;
}
.bm-btn-order:focus {
  background: #5695c9;
  color: #fff;
  outline: none;
}
.bm-btn-order:active {
  background: #4a80ac;
  color: #fff;
}

.bm-btn-cart {
  all: unset;
  box-sizing: border-box;
  display: flex;
  width: 291px;
  height: 48px;
  padding: 10px 50px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #5695c9;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid #5695c9;
}
.bm-btn-cart:hover {
  background: rgba(86, 149, 201, 0.15);
  color: #5695c9;
  border-color: #5695c9;
}
.bm-btn-cart:focus {
  color: #5695c9;
  border-color: #5695c9;
  outline: none;
}
.bm-btn-cart:active {
  background: rgba(255, 121, 28, 0.12);
  color: #5695c9;
  border-color: #5695c9;
}

/* ── Krok 2: Link powrotu do konfiguracji piwa ───────────────────────────── */
.bm-btn-back-to-beer {
  all: unset;
  box-sizing: border-box;
  display: block;
  align-self: stretch;
  width: 100%;
  margin-top: 4px;
  text-align: center;
  color: #a7a7a7;
  font-family: "Barlow Condensed";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.45px;
  cursor: pointer;
}
.bm-btn-back-to-beer:hover {
  color: #8a8a8a;
}

/* ── Krok 3: Toggle Osoba prywatna / Firma ───────────────────────────────── */
.bm-type-switch {
  display: flex;
  align-items: center;
  gap: 24px;
  align-self: stretch;
}

.bm-type-switch__btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex: 1 1 50%;
  width: 292px;
  max-width: 100%;
  padding: 15px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: #fff;
  cursor: pointer;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
  color: #202020;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.bm-type-switch__btn .bm-icon-check {
  display: none;
}

.bm-type-switch__btn:hover,
.bm-type-switch__btn:focus {
  background: #fff;
  color: #202020;
  outline: none;
  box-shadow: none;
  text-decoration: none;
}
.bm-type-switch__btn:active {
  background: #fff;
  color: #202020;
}

.bm-type-switch__btn.is-active,
.bm-type-switch__btn.is-active:hover,
.bm-type-switch__btn.is-active:focus,
.bm-type-switch__btn.is-active:active {
  background: #000;
  border-color: #000;
  color: #fff;
  outline: none;
}

.bm-type-switch__btn.is-active .bm-icon-check {
  display: block;
}

.bm-shipping-method__btn.is-error {
  border-color: #d32f2f;
}

.bm-type-switch__btn.is-disabled,
.bm-type-switch__btn.is-disabled:hover,
.bm-type-switch__btn.is-disabled:focus,
.bm-type-switch__btn.is-disabled:active {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.bm-type-switch__divider {
  width: 100%;
  height: 1px;
  margin: 24px 0;
  background: #d6d6d6;
}

/* ── Krok 3: Formularz — siatka 2 kolumn ─────────────────────────────────── */
.bm-form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}

.bm-form-2col .bm-field {
  margin-top: 0;
}

/* ── Krok 3: Podsumowanie zamówienia ─────────────────────────────────────── */
.bm-summary__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.bm-summary__title {
  margin: 0;
  padding: 0;
  color: #202020;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.bm-summary__count {
  color: #5c5c5c;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
  white-space: nowrap;
}

.bm-order-summary {
  display: flex;
  flex-direction: column;
}

/* Pojedyncza pozycja koszyka w kroku 3 (opakowana w box, gdy pozycji > 1) */
.bm-order-item--boxed {
  border-radius: 4px;
  border: 1px solid #d9d9d9;
  background: #fdfdfd;
  padding: 12px 14px;
}

.bm-order-item--boxed.bm-order-item--active {
  border-color: #202020;
}

.bm-order-item--boxed + .bm-order-item--boxed {
  margin-top: 10px;
}

.bm-order-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.bm-order-item__meta {
  color: #202020;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-order-item__meta strong {
  font-weight: 700;
  text-transform: uppercase;
}

.bm-order-item__body {
  margin-top: 10px;
}

.bm-order-item__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #d6d6d6;
}

.bm-order-item__total-label {
  color: #202020;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.28px;
  text-transform: uppercase;
}

.bm-order-item__total-val {
  color: #202020;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 125%;
}

.bm-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding-bottom: 7px;
  margin-bottom: 10px;
  border-bottom: 1px solid #d6d6d6;
  width: 100%;
}

.bm-summary-row:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.bm-summary-row__label {
  color: #202020;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  white-space: nowrap;
}

.bm-summary-row__val {
  color: #202020;
  text-align: right;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-summary-unit-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.bm-summary-unit-price__label,
.bm-summary-unit-price__netto {
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
}

.bm-summary-unit-price__val-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bm-summary-unit-price__netto {
  text-align: right;
}

.bm-summary-unit-price__brutto {
  display: block;
  text-align: right;
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.36px;
}

/* ── Krok 3: Oświadczenie prawne (wymagane) ──────────────────────────────────── */
.bm-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.bm-consent__input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #202020;
  cursor: pointer;
}

.bm-consent__text {
  color: #5c5c5c;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-consent.is-error .bm-consent__text {
  color: #d32f2f;
}

.bm-consent__error-msg {
  color: #d32f2f;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

/* ── Krok 3: Przycisk płatności ─────────────────────────────────────────────── */
.bm-btn-payment {
  all: unset;
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 48px;
  padding: 10px 50px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  gap: 8px;
  border-radius: 4px;
  background: var(--Orange, #5695c9);
  color: #fff;
  font-family: "Barlow Condensed";
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.48px;
  cursor: pointer;
  white-space: nowrap;
}
.bm-btn-payment:hover {
  background: #4a80ac;
  color: #fff;
}
.bm-btn-payment:focus {
  background: #4a80ac;
  color: #fff;
  outline: none;
}
.bm-btn-payment:active {
  background: #4a80ac;
  color: #fff;
}

/* ── Krok 3: Link powrotu do konfiguracji etykiety ───────────────────────────── */
.bm-btn-back-to-label {
  all: unset;
  box-sizing: border-box;
  display: block;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 100px;
  text-align: center;
  color: #a7a7a7;
  font-family: "Barlow Condensed";
  font-size: 15px;
  font-style: normal;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: 0.45px;
  cursor: pointer;
}
.bm-btn-back-to-label:hover {
  color: #8a8a8a;
}

/* ── Przycisk autouzupełnienia ───────────────────────────────────────────────────── */
.bm-btn-autofill {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  padding: 2px 8px;
  border: 1px dashed #bbb;
  border-radius: 3px;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #7f7e7e;
  cursor: pointer;
  text-transform: lowercase;
}
.bm-btn-autofill:hover {
  border-color: #bbb;
  color: #7f7e7e;
}
.bm-btn-autofill:focus {
  border-color: #bbb;
  color: #7f7e7e;
  outline: none;
}
.bm-btn-autofill:active {
  border-color: #bbb;
  color: #7f7e7e;
}

/* ── Przycisk Wstecz ─────────────────────────────────────────────────────── */

/* ── Toast „Dodano do koszyka‟ ─────────────────────────────────────────── */
.bm-toast {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 10px 16px;
  background: #202020;
  color: #fff;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  border-radius: 4px;
  animation: bm-toast-in 0.22s ease both;
}

@keyframes bm-toast-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Alert powrotu ze Stripe (success / cancel) ────────────────────────── */
.bm-payment-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 14px 18px;
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: 6px;
  animation: bm-toast-in 0.25s ease both;
}

.bm-payment-alert--success {
  background: #f0faf3;
  color: #1a6b35;
  border: 1px solid #a8d9b8;
}

.bm-payment-alert--error {
  background: #fdf3f3;
  color: #8b1c1c;
  border: 1px solid #f0b0b0;
}

/* ══════════════════════════════════════════════════════════════════════════
   Ekran potwierdzenia płatności (niezalogowani) w bm-config-panel
   ════════════════════════════════════════════════════════════════════════ */

.bm-payment-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  flex: 1;
  gap: 16px;
  animation: bm-toast-in 0.25s ease both;
}

.bm-payment-screen__icon {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.bm-payment-screen--success .bm-payment-screen__icon {
  color: #1a7a3c;
}

.bm-payment-screen--error .bm-payment-screen__icon {
  color: #a82020;
}

.bm-payment-screen__title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin: 0;
  color: #111;
}

.bm-payment-screen__text {
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #444;
  margin: 0;
  line-height: 1.5;
  max-width: 380px;
}

.bm-payment-screen__email {
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 0;
  word-break: break-all;
}

.bm-payment-screen__order {
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin: 0;
}

.bm-payment-screen__btn-primary {
  margin-top: 8px;
  max-width: 360px;
  width: 100%;
}

.bm-payment-screen__btn-back {
  all: unset;
  cursor: pointer;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #888;
  text-decoration: underline;
  margin-top: 4px;
}

.bm-payment-screen__btn-back:hover {
  color: #444;
}

/* ══════════════════════════════════════════════════════════════════════════
   Podgląd etykiety — live preview
   ════════════════════════════════════════════════════════════════════════ */

/* Panel etykiety wypełnia całą kartę */
.bm-label-panel {
  flex: 1;
  align-self: stretch;
  overflow: hidden;
  flex-direction: column;
  margin-top: 150px;
  padding-right: 40px;
}

@media (min-width: 1500) {
  .bm-label-panel {
    flex: 1;
    align-self: stretch;
    overflow: hidden;
    flex-direction: column;
    margin-top: 250px;
  }
}

/* ── Widok butelki z owiniętą etykietą ───────────────────────────────────── */
.bm-bottle-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Stage kurczy się do rozmiaru obrazka — overlay % = % obrazka na każdym ekranie */
.bm-bottle-stage {
  position: relative;
  flex: 0 0 auto;
  max-width: 100%;
  line-height: 0;
}

.bm-bottle-img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.18));
}

/* Nakładka etykiety — % zawsze relative do .bm-bottle-stage = do obrazka */
.bm-bottle-label-overlay {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 40%;
  height: 20%;
  display: flex;
  align-items: stretch;
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.32);
  border-radius: 3px;
}

/* Środkowa frontalna część — obrazek */
.bm-blo__center {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #b4b4b4;
}

/* Canvas z projekcją cylindryczną — wypełnia środkowy panel */
.bm-blo__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none; /* pokazywany przez JS gdy jest obrazek */
  z-index: 1;
}

.bm-blo__image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bm-blo__beer-name {
  display: none;
  position: absolute;
  z-index: 3;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  text-align: center;
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.3px;
  max-width: 90%;
  word-break: break-word;
  white-space: normal;
  line-height: 8px;
  pointer-events: none;
}

.bm-blo__beer-name.is-visible {
  display: block;
}

.bm-blo__brand-header,
.bm-blo__brand-icon,
.bm-blo__brand-title,
.bm-blo__brand-subtitle,
.bm-blo__brand-body,
.bm-blo__brand-rotated,
.bm-blo__brand-footer,
.bm-blo__best-before {
  display: none;
}

/* Cała płaska etykieta (przeskalowany klon .bm-label-preview) na zdjęciu
   opakowania — domyślnie ukryta, pokazywana tylko dla opakowań bez
   zawinięcia (np. Keg), patrz renderFullLabelOverlay() w JS */
.bm-blo__full {
  display: none;
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bm-bottle-label-overlay.is-full-label .bm-blo__center {
  display: none;
}

.bm-bottle-label-overlay.is-full-label .bm-blo__full {
  display: block;
}

/* Separator między widokiem butelki a płaskim podglądem etykiety */
.bm-bottle-label-sep {
  width: 80%;
  height: 1px;
  background: #e0e0e0;
  margin: 4px auto 8px;
}

/* Wrapper przewijany w poziomie — na wąskich ekranach etykieta ma stały,
   czytelny rozmiar (patrz media query mobilna) i zamiast się ściskać,
   pozwala przewinąć się w bok, jeśli nie mieści się w szerokości panelu. */
.bm-label-scroll {
  width: 100%;
}

.bm-label-preview {
  display: flex;
  width: 100%;
  height: auto;
  /* Realny stosunek label_w/label_h jest ustawiany inline przez JS
     (updateLabelPreview → getCurrentLabelDims) za każdym razem, gdy zmienia
     się wybrane opakowanie/wariant. Wartość poniżej to tylko fallback, zanim
     JS zdąży policzyć prawdziwy kształt (pierwsze renderowanie). */
  aspect-ratio: 2.25;
  max-height: 100%;
  min-height: 240px;
  font-family: Catamaran, sans-serif;
  line-height: 1.3;
}

/* ── Lewa sekcja (informacje tekstowe) ───────────────────────────────────── */
.bm-lp__left {
  flex: 0 0 33%;
  display: flex;
  flex-direction: column;
}

.bm-lp__left--site {
  background: #fff;
  padding: 6px 12px 10px;
  gap: 5px;
  overflow: hidden;
}

.bm-lp__left--generator {
  background: #fff;
  padding: 0cap 12px 10px;
  overflow: hidden;
  gap: 2px;
}

.bm-lp__style-name {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  line-height: 1.1;
  word-break: break-word;
}

.bm-lp__desc--site {
  font-family: Catamaran, sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  color: #5695c9;
  line-height: 1.35;
  white-space: pre-line;
}

.bm-lp__desc--generator {
  font-family: Catamaran, sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  color: #5695c9;
  line-height: 1.35;
  white-space: pre-line;
  margin-top: 4px !important;
  margin-bottom: 2px !important;
  /* Bez overflow:hidden: html2canvas (eksport PDF) zawija tekst nieco
       inaczej niż przeglądarka i przy overflow:hidden ucinał go w połowie
       zdania. .bm-lp__left ma dużo zapasu wysokości, więc ewentualna
       drobna różnica po prostu spłynie w dół, zamiast być obcięta. */
}

.bm-lp__info-block {
  font-size: 7px;
  color: #111;
  line-height: 1.4;
}

.bm-lp__info-block p {
  margin: 2px 0;
  padding: 0;
}

.bm-lp__info-block strong {
  font-weight: 700;
}
.bm-lp__info-block em {
  font-style: italic;
}

.bm-lp__ingredients {
  position: relative;
  /* margin-top: 8px !important; */
  padding-top: 1px !important;
}

.bm-lp__ingredients--site::before,
.bm-lp__ingredients--generator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  border-top: 1px solid currentColor;
  transform: scaleY(0.5);
  transform-origin: top left;
}

.bm-lp__ingredients--site::before {
  border-top: 2px solid currentColor;
}

.bm-lp__ingredients--generator::before {
  border-top: 0.5px solid currentColor;
  top: 5px;
}

.bm-lp__ingredients--site {
  padding-top: 5px !important;
}
.bm-lp__ingredients--generator {
  padding-top: 5px !important;
  margin: 0 !important;
}

/* UWAGA: tekst "Najlepiej spożyć przed" w PDF-ie NIE jest stylowany tym
   CSS-em — na klonie zostaje ukryty (color:transparent) i dorysowywany
   ręcznie na canvasie na podstawie metryk (font, kolor...) przechwyconych
   z ŻYWEGO elementu --site, PRZED sklonowaniem (patrz
   bmCaptureBestBeforeMetrics/bmDrawBestBeforeOnCanvas w JS). Zmiana
   --generator poniżej nie wpłynie na wygląd PDF-a, dopóki ten mechanizm
   nie zostanie przepięty na czytanie stylu z klonu. */
.bm-lp__best-before--site {
  font-family: Catamaran, sans-serif;
  font-size: 6.5px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  text-align: left;
  margin: auto 0 0;
  padding: 0;
  white-space: pre-line;
}

.bm-lp__best-before--generator {
  font-family: Catamaran, sans-serif;
  font-size: 6.5px;
  font-weight: 500;
  color: #111;
  line-height: 1.4;
  text-align: left;
  margin: auto 0 0;
  padding: 0;
  white-space: pre-line;
}

.bm-lp__footer {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  flex-wrap: nowrap;
}

.bm-lp__volume-num {
  display: block;
  font-size: 18px;
  font-weight: 900;
  color: #5695c9;
  line-height: 1;
}

.bm-lp__volume-sub {
  display: block;
  line-height: 1.2;
}

.bm-lp__volume-sub--site {
  font-size: 7px;
  color: #111;
  /* margin-top: 3px; */
}

.bm-lp__volume-sub--generator {
  font-size: 7px;
  color: #111;
  margin-top: 7px;
  /* margin-top: 3px; */
}

.bm-lp__footer .bm-lp__badge-icon {
  flex-shrink: 0;
  margin-left: auto;
  /* margin-top: 5px; */
  object-fit: contain;
}

.bm-lp__footer .bm-lp__badge-icon--site {
  height: 18px;
  width: auto;
  max-width: 70px;
}

/* .bm-lp__abv {
    margin-top: -2px !important;
} */

.bm-lp__footer .bm-lp__badge-icon--generator {
  height: 18px;
  width: 70px;
  margin-top: 15px;
}

/* ── Środkowa sekcja (grafika + overlay nazwy piwa) ─────────────────────── */
.bm-lp__middle {
  flex: 1 1 0;
  background: #b4b4b4;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-lp__image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bm-lp__beer-name {
  display: none;
  position: absolute;
  z-index: 2;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  color: #111;
  text-align: center;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.5px;
  width: fit-content;
  max-width: 200px;
  word-break: break-word;
  white-space: normal;
  cursor: grab;
  user-select: none;
  touch-action: none;
  line-height: 14px;
}

.bm-lp__beer-name.is-visible {
  display: block;
}

/* Metryki czcionki Catamaran wizualnie przesuwają tekst za wysoko względem
   pigułki tła — korekta tylko dla tego kroju (suma padding-top+bottom
   niezmieniona, więc wysokość pigułki się nie zmienia). */
.bm-lp__beer-name--catamaran {
  padding-top: 7px;
  padding-bottom: 3px;
}

.bm-lp__beer-name.is-dragging {
  cursor: grabbing;
}

/* ── Prawa sekcja (branding BROKREACJA) ─────────────────────────────────── */
.bm-lp__right {
  /* flex: 0 0 80px; */
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
}

.bm-lp__brand-header {
  background: #1a1a1a;
  padding: 6px 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.bm-lp__brand-icon {
  width: 22px;
  flex-shrink: 0;
  object-fit: contain;
}

.bm-lp__brand-title {
  display: block;
  color: #fff;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  line-height: 1;
  text-align: center;
}

.bm-lp__brand-subtitle {
  display: block;
  color: #fff;
  font-size: 5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
  text-align: center;
}

.bm-lp__brand-body {
  flex: 1;
  display: flex;
  /* Kontener dla poniższej @container — mierzymy WŁASNĄ wysokość tego
     elementu (bez nagłówka/stopki brandingu), bo to ona realnie zależy
     od kształtu etykiety (np. 93px przy 180×80 vs 223px przy puszce
     204×139). CSS nie pozwala kontenerowi kwerendować samego siebie,
     więc efekt (dodatkowy odstęp od góry) aplikujemy na jego jedynym
     dziecku — .bm-lp__brand-rotated — zamiast bezpośrednio tutaj. */
  container-type: size;
  container-name: bm-brand-body;
}

.bm-lp__brand-body--site,
.bm-lp__brand-body--generator {
  background: #5695c9;
  overflow: hidden;
  align-items: flex-start;
  justify-content: center;
  padding: 6px 2px 0;
}

.bm-lp__brand-body--generator {
  align-items: flex-start !important;
  display: block !important;
}
.bm-lp__brand-body--generator .bm-lp__brand-rotated p {
  margin: 2px 0 !important;
}

/* Przy "większych" etykietach (kolumna brandingu wyższa niż 100px, np.
   190×95 czy puszka 204×139) dodaj odstęp od góry, żeby pionowy tekst nie
   zaczynał się tuż przy krawędzi — przy najmniejszej etykiecie (180×80,
   93px) zostaje samo bazowe padding-top: 6px. 4px marginesu + 6px
   bazowego paddingu = 10px odstępu łącznie od góry kolumny. */
@container bm-brand-body (min-height: 100px) {
  .bm-lp__brand-rotated {
    margin-top: 4px;
  }
}

.bm-lp__brand-rotated {
  writing-mode: vertical-rl;
  font-size: 7px;
  color: #fff;
  letter-spacing: 0.2px;
  overflow: hidden;
  max-height: 100%;
}

/* W trybie vertical-rl <br> tworzy nową kolumnę zamiast nowej linii.
   Chowamy go — cały tekst płynie jako jedna pionowa kolumna. */
/* .bm-lp__brand-rotated br {
    display: none;
} */

.bm-lp__brand-rotated span {
  font-weight: 700 !important;
  font-size: 8px;
  line-height: 12px;
}

/* Dodaj separator punktowy między segmentami tekstu */
.bm-lp__brand-rotated span + span::before {
  content: " \00B7  ";
  font-weight: 400;
  font-size: 7px;
}

.bm-lp__brand-footer {
  background: #fff;
  padding: 0;
  overflow: hidden;
  height: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.bm-lp__barcode-img {
  display: block;
  width: 60px;
  flex: 1 1 auto;
  min-height: 0;
  transform: rotate(90deg);
  object-fit: contain;
}

.bm-lp__barcode {
  width: 100%;
  max-width: 70px;
  transform: rotate(90deg);
  margin-top: 30px;
}

/* ── Ciemna wersja kolorystyczna etykiety ────────────────────────────────── */
.bm-label-preview.is-dark .bm-lp__left {
  background: #111;
  border-right-color: #333;
}
.bm-label-preview.is-dark .bm-lp__style-name {
  color: #fff;
}
.bm-label-preview.is-dark .bm-lp__info-block {
  color: #fff;
}
.bm-label-preview.is-dark .bm-lp__volume-sub {
  color: #fff;
}
.bm-label-preview.is-dark .bm-lp__middle {
  background: #1a1a1a;
}
.bm-label-preview.is-dark .bm-lp__right {
  background: #111;
}
.bm-label-preview.is-dark .bm-lp__best-before {
  color: #fff;
}
.bm-label-preview.is-dark .bm-lp__barcode rect,
.bm-label-preview.is-dark .bm-lp__barcode text {
  fill: #fff !important;
}

/* ── Switcher wersji kolorystycznej ──────────────────────────────────────── */
.bm-color-scheme-switch {
  display: inline-flex;
  padding: 0;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.bm-cs-btn {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex: 1 1 50%;
  height: 32px;
  padding: 1px 9px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border: 1px solid #c3c4c7;
  background: transparent;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  letter-spacing: -0.32px;
  color: #202020;
  border-radius: 3px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.bm-cs-btn:hover {
  background: transparent;
  border-color: #c3c4c7;
  color: #202020;
}
.bm-cs-btn.is-active {
  background: #3d3d3d;
  border-color: #3d3d3d;
  color: #fff;
}

/* ══════════════════════════════════════════════════════════════════════════
   Modal przycinania grafiki
   ════════════════════════════════════════════════════════════════════════ */

.bm-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  font-family: Catamaran, sans-serif;
}

.bm-crop-modal.is-open {
  opacity: 1;
}

.bm-crop-dialog {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32);
  width: 500px;
  max-width: calc(100vw - 32px);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.bm-crop-modal.is-open .bm-crop-dialog {
  transform: translateY(0);
}

.bm-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #e8e8e8;
}

.bm-crop-title {
  font-family: "Barlow Condensed", Catamaran, sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #202020;
}

.bm-crop-close {
  all: unset;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f7e7e;
  font-size: 16px;
  border-radius: 4px;
  transition: background 0.15s;
}
.bm-crop-close:hover {
  background: #f0f0f0;
  color: #202020;
}

.bm-crop-stage {
  padding: 16px 20px 0;
  display: flex;
  justify-content: center;
}

.bm-crop-canvas {
  display: block;
  width: 460px;
  height: 460px;
  max-width: 100%;
  cursor: grab;
  border: 2px solid #d6d6d6;
  border-radius: 2px;
  background: #888;
  touch-action: none;
}

.bm-crop-canvas:active {
  cursor: grabbing;
}

.bm-crop-quad-row {
  padding: 14px 20px 0;
}

.bm-crop-quad-label {
  display: block;
  font-size: 12px;
  color: #7f7e7e;
  margin-bottom: 8px;
}

.bm-crop-quad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  max-width: 320px;
}

.bm-crop-quad-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 32px;
  font-family: Catamaran, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3d3d3d;
  background: #f6f6f6;
  border: 1px solid #d6d6d6;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
}
.bm-crop-quad-btn:hover {
  background: #efefef;
}
.bm-crop-quad-btn.is-active {
  background: #202020;
  border-color: #202020;
  color: #fff;
}

.bm-crop-zoom-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 0;
}

.bm-crop-zoom-label {
  font-size: 13px;
  font-weight: 600;
  color: #3d3d3d;
  white-space: nowrap;
  flex-shrink: 0;
}

.bm-crop-zoom {
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  background: #d6d6d6;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.bm-crop-zoom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3d3d3d;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.bm-crop-zoom::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3d3d3d;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.bm-crop-zoom-val {
  font-size: 13px;
  color: #7f7e7e;
  min-width: 36px;
  text-align: right;
  flex-shrink: 0;
}

.bm-crop-hint {
  margin: 6px 20px 0;
  font-size: 12px;
  color: #a0a0a0;
  text-align: center;
}

.bm-crop-actions {
  display: flex;
  gap: 8px;
  padding: 14px 20px 18px;
  margin-top: 4px;
}

.bm-crop-btn {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex: 1;
  height: 40px;
  justify-content: center;
  align-items: center;
  font-family: Catamaran, sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.3px;
  cursor: pointer;
  border-radius: 2px;
  transition:
    background 0.15s,
    color 0.15s;
}

.bm-crop-btn--cancel {
  border: 1px solid #c0c0c0;
  color: #3d3d3d;
  background: #fff;
}
.bm-crop-btn--cancel:hover {
  background: #f6f6f6;
}

.bm-crop-btn--confirm {
  background: #202020;
  color: #fff;
}
.bm-crop-btn--confirm:hover {
  background: #3d3d3d;
}

/* ══════════════════════════════════════════════════════════════════
   PANEL UŻYTKOWNIKA (tylko zalogowani)
══════════════════════════════════════════════════════════════════ */

.bm-user-panel {
  display: flex;
  gap: 0;
  margin-top: 48px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  overflow: hidden;
  min-height: 420px;
}

/* ── Sidebar ── */
.bm-user-panel__sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #f9f9f9;
  border-right: 1px solid #e8e8e8;
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.bm-user-panel__identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  margin-bottom: 12px;
}

.bm-user-panel__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #202020;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: "Catamaran", sans-serif;
}

.bm-user-panel__identity-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.bm-user-panel__name {
  font-size: 13px;
  font-weight: 700;
  color: #202020;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-user-panel__email {
  font-size: 11px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav */
.bm-user-panel__nav {
  display: flex;
  flex-direction: column;
  padding: 0 12px;
  gap: 2px;
}

.bm-user-nav__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.15s,
    color 0.15s;
  font-family: inherit;
  position: relative;
}

.bm-user-nav__btn:hover {
  background: #efefef;
  color: #202020;
}

.bm-user-nav__btn.is-active {
  background: #202020;
  color: #fff;
}

.bm-user-nav__btn svg {
  flex-shrink: 0;
}

.bm-user-nav__badge {
  margin-left: auto;
  background: #e76f00;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 7px;
  min-width: 20px;
  text-align: center;
}

.bm-user-nav__btn.is-active .bm-user-nav__badge {
  background: rgba(255, 255, 255, 0.25);
}

/* ── Content ── */
.bm-user-panel__content {
  flex: 1;
  padding: 32px 36px;
  min-width: 0;
}

.bm-user-tab__title {
  font-size: 20px;
  font-weight: 700;
  color: #202020;
  margin: 0 0 6px;
  font-family: "Catamaran", sans-serif;
}

.bm-user-tab__desc {
  font-size: 13px;
  color: #888;
  margin: 0 0 28px;
}

/* ── Formularz profilu ── */
.bm-profile-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
}

.bm-profile-form__row {
  display: flex;
  gap: 16px;
}

.bm-profile-form__row--half > .bm-profile-form__field {
  flex: 1;
}

.bm-profile-form__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bm-profile-form__label {
  font-size: 12px;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bm-profile-form__input {
  border: 1.5px solid #dcdcdc;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #202020;
  background: #fff;
  font-family: inherit;
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.bm-profile-form__input:focus {
  border-color: #202020;
}

.bm-profile-form__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}

.bm-profile-form__submit {
  padding: 10px 24px;
  background: #202020;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.bm-profile-form__submit:hover {
  background: #3d3d3d;
}

.bm-profile-form__submit:disabled {
  background: #999;
  cursor: not-allowed;
}

.bm-profile-form__feedback {
  font-size: 13px;
  color: #27ae60;
}

.bm-profile-form__feedback.is-error {
  color: #e74c3c;
}

/* ── Lista zamówień ── */
.bm-orders-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bm-order-card {
  border: 1.5px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.bm-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9f9f9;
  border-bottom: 1px solid #ebebeb;
}

.bm-order-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bm-order-card__id {
  font-size: 13px;
  font-weight: 700;
  color: #202020;
}

.bm-order-card__date {
  font-size: 12px;
  color: #999;
}

.bm-order-card__status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bm-order-card__status--pending,
.bm-order-card__status--pending_payment {
  background: #fff4e0;
  color: #d48000;
}
.bm-order-card__status--paid,
.bm-order-card__status--processing {
  background: #e5f0ff;
  color: #1a5fbd;
}
.bm-order-card__status--shipped {
  background: #efe8ff;
  color: #6a2fbd;
}
.bm-order-card__status--completed {
  background: #e3f7ec;
  color: #1b7a45;
}
.bm-order-card__status--cancelled {
  background: #f5f5f5;
  color: #888;
}

.bm-order-card__items {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bm-order-card__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.bm-order-card__item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bm-order-card__item-qty {
  font-size: 12px;
  color: #999;
  flex-shrink: 0;
}

.bm-order-card__footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid #ebebeb;
  background: #fafafa;
}

.bm-order-card__total-label {
  font-size: 12px;
  color: #888;
}

.bm-order-card__total-value {
  font-size: 14px;
  font-weight: 700;
  color: #202020;
}

/* ── Empty state zamówień ── */
.bm-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  gap: 12px;
}

.bm-orders-empty__icon {
  opacity: 0.4;
}

.bm-orders-empty__title {
  font-size: 17px;
  font-weight: 700;
  color: #202020;
  margin: 0;
}

.bm-orders-empty__desc {
  font-size: 13px;
  color: #888;
  max-width: 340px;
  margin: 0;
}

.bm-orders-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 22px;
  background: #202020;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.bm-orders-empty__cta:hover {
  background: #3d3d3d;
}

/* ── Responsywność panelu ── */
@media (max-width: 680px) {
  .bm-user-panel {
    flex-direction: column;
  }

  .bm-user-panel__sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #e8e8e8;
    padding: 20px 0 16px;
  }

  .bm-user-panel__content {
    padding: 24px 20px;
  }

  .bm-user-panel__nav {
    flex-direction: row;
    padding: 0 16px;
  }

  .bm-user-panel__identity {
    padding: 0 16px 16px;
  }

  .bm-profile-form__row {
    flex-direction: column;
    gap: 16px;
  }
}

/* ── Presety "Najczęściej zamawiane" ──────────────────────────────────────── */

.bm-popular-config {
  padding: 0;
}

.bm-preset-heading {
  margin: 25px 0 25px !important;
}

.bm-preset-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  padding-bottom: 25px;
  margin-bottom: 25px;
  border-bottom: 1px solid #d6d6d6;
  width: 100%;
}

.bm-preset-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  align-self: stretch;
}

.bm-preset-card {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  padding: 10px;
  align-items: flex-start;
  gap: 10px;
  align-self: stretch;
  border: 1px solid #e4e4e4;
  cursor: pointer;
  background: #fff;
  transition:
    background 0.15s,
    border-color 0.15s;
  user-select: none;
  box-sizing: border-box;
}

.bm-preset-card:hover {
  border-color: #aaa;
}

.bm-preset-card.is-selected {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.bm-preset-cb {
  display: none;
}

/* Lewa strona — obrazek + check */
.bm-preset-card__img-wrap {
  width: 81px;
  flex-shrink: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.bm-preset-card__img {
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
}

.bm-preset-card__check {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
}

.bm-preset-card.is-selected .bm-preset-card__check {
  display: block;
}

/* Prawa strona — teksty */
.bm-preset-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bm-preset-card__style {
  color: #000;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 105%;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  margin-top: 10px;
}

.bm-preset-card.is-selected .bm-preset-card__style {
  color: #fff;
}

.bm-preset-card__name {
  color: #000;
  font-family: Catamaran, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 130%;
  letter-spacing: -0.32px;
}

.bm-preset-card.is-selected .bm-preset-card__name {
  color: #fff;
}

.bm-preset-card__para {
  color: #000;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 125%;
  margin-top: 5px;
}

.bm-preset-card.is-selected .bm-preset-card__para {
  color: #fff;
}

.bm-preset-card__pkg {
  color: #000;
  font-family: Catamaran, sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 125%;
  margin-top: 10px;
}

.bm-preset-card.is-selected .bm-preset-card__pkg {
  color: #fff;
}

.bm-preset-divider {
  margin-top: 25px;
  margin-bottom: 25px;
}

.bm-preset-qty-section {
  margin-bottom: 20px;
}

.bm-preset-empty {
  color: #888;
  font-size: 14px;
  padding: 12px 0;
}

/* ── Suwak mocy piwa ──────────────────────────────────────────────────────── */
.bm-strength-nonalc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 20px;
  user-select: none;
}

.bm-strength-nonalc__cb {
  -webkit-appearance: none;
  appearance: none;
  display: flex;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #c0c0c0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin: 0;
  transition:
    background 0.15s,
    border-color 0.15s;
}

.bm-strength-nonalc__cb:checked {
  background: #000;
  border-color: #000;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M22 11.0857V12.0057C21.9988 14.1621 21.3005 16.2604 20.0093 17.9875C18.7182 19.7147 16.9033 20.9782 14.8354 21.5896C12.7674 22.201 10.5573 22.1276 8.53447 21.3803C6.51168 20.633 4.78465 19.2518 3.61096 17.4428C2.43727 15.6338 1.87979 13.4938 2.02168 11.342C2.16356 9.19029 2.99721 7.14205 4.39828 5.5028C5.79935 3.86354 7.69279 2.72111 9.79619 2.24587C11.8996 1.77063 14.1003 1.98806 16.07 2.86572M22 4L12 14.01L9 11.01' stroke='%23FF791C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.bm-strength-nonalc.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.bm-strength-slider-wrap {
  position: relative;
  padding-top: 58px;
  padding-bottom: 4px;
}

.bm-strength-slider-wrap.is-locked {
  opacity: 0.4;
  pointer-events: none;
}

.bm-strength-bubble {
  position: absolute;
  top: 0;
  background: #fff;
  border: 1.5px solid #202020;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  left: 37.5%;
}

.bm-qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.bm-qty-cartons-label {
  color: var(--Body-text, #5c5c5c);
  font-family: Catamaran;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-qty-carton-note {
  color: var(--Body-text, #5c5c5c);
  font-family: Catamaran;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
}

.bm-strength-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #202020;
  border-bottom: none;
}

/* Range slider — cross-browser */
.bm-strength-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  border-radius: 0;
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 1;
  /* Warstwa 1 (góra): pomarańczowe wypełnienie 3px, poza nim transparentne
       Warstwa 2 (dół): cienka 1px szara linia wyśrodkowana w 3px elemencie */
  background:
    linear-gradient(
      to right,
      transparent var(--range-min-pct, 0%),
      #e8521a var(--range-min-pct, 0%),
      #e8521a var(--fill-pct, 37.5%),
      transparent var(--fill-pct, 37.5%)
    ),
    linear-gradient(
      to bottom,
      transparent 33.33%,
      #d0d0d0 33.33%,
      #d0d0d0 66.67%,
      transparent 66.67%
    );
  border: none;
  padding: 0;
  margin: 0;
}

.bm-strength-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8521a;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
  margin-top: -8px;
}

.bm-strength-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e8521a;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.bm-strength-slider::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 0;
}

.bm-strength-slider::-moz-range-track {
  height: 3px;
  border-radius: 0;
  background: transparent;
}

.bm-strength-slider:disabled {
  cursor: default;
}

.bm-strength-ticks {
  position: absolute;
  top: 0; /* dokładna wartość ustawiana przez JS */
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  overflow: visible;
}

.bm-strength-tick {
  position: absolute;
  top: -5px;
  width: 1px;
  height: 10px;
  background: rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.bm-strength-tick--major {
  top: -8px;
  height: 16px;
  background: rgba(0, 0, 0, 0.35);
}

.bm-strength-tick--avail {
  background: #202020;
}

.bm-strength-avail-bar {
  position: absolute;
  top: 0; /* dokładna wartość ustawiana przez JS */
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
  overflow: visible;
}

.bm-strength-avail-segment {
  position: absolute;
  top: -1px;
  height: 2px;
  background: #202020;
}

.bm-strength-cat-labels {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #202020;
  letter-spacing: 0.1px;
}

.bm-strength-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 12px;
  color: #a0a0a0;
}

/* ── Elementor container override — brak paddingu góra/dół na stronie konfiguratora ── */
.e-con-inner:has(.bm-configurator-wrap) {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.bm-section-counter {
  border-bottom: 0 !important;
}
.bm-unit-price {
  color: var(--Body-text, #5c5c5c) !important;
  font-family: "Barlow Condensed" !important;
  font-size: 16px !important;
  font-style: normal;
  font-weight: 600;
  line-height: 130% !important; /* 20.8px */
  letter-spacing: 0.48px;
}

/* ── Pasek podsumowania konfiguracji ──────────────────────────────────────── */
.bm-summary-bar {
  display: flex;
  padding: 11px 80px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: #1a1a1a;
  width: 100%;
  z-index: 100;
  position: relative;
}

.bm-summary-bar::before,
.bm-summary-bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50vw;
  background: #1a1a1a;
}

.bm-summary-bar::before {
  right: 100%;
}

.bm-summary-bar::after {
  left: 100%;
}

.bm-summary-bar__row {
  display: flex;
  align-items: center;
  gap: 50px;
  align-self: stretch;
}

.bm-summary-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1 0 0;
  gap: 30px;
}

.bm-summary-bar__items {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.bm-summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
}

.bm-summary-item__label {
  color: var(--Body-text, #5c5c5c);
  font-family: "Barlow Condensed";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bm-summary-item__value {
  color: #fff;
  font-family: Catamaran;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 125%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bm-summary-bar__price {
  color: var(--Orange, #5695c9);
  font-family: "Barlow Condensed";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 105%;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Responsywność — średnie ekrany (tablety landscape, małe laptopy) ──────── */
@media (max-width: 1200px) {
  .bm-config-panel {
    flex: 0 0 620px;
    max-width: 620px;
  }
}

@media (max-width: 1050px) {
  .bm-config-panel {
    flex: 0 0 540px;
    max-width: 540px;
  }
}

/* ── Responsywność mobilna ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bm-view-toggle {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 25px;
  }

  .bm-configurator-section {
    background-size: cover;
    background-position: center top;
  }

  .bm-configurator-wrap {
    flex-direction: column;
    gap: 0;
  }

  .bm-preview-card {
    flex: 0 0 auto;
    width: 100%;
    align-self: auto;
    overflow: hidden;
  }

  .bm-preview-card__inner {
    position: static;
    top: auto;
  }

  .bm-config-panel {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    padding: 16px 16px 0 16px;
    margin-right: 0;
  }

  .bm-option-btn {
    flex: 0 0 calc((100% - 40px) / 3);
  }

  .bm-config-panel::after {
    display: none;
  }

  .bm-preview-card {
    max-height: none;
  }

  .bm-product-image {
    height: auto;
    max-height: 50vh;
  }

  .bm-bottle-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 50vh;
  }

  .bm-preview-card__body {
    margin-top: 0;
    min-height: 360px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
  }

  .bm-preview-card__body [data-view-panel] {
    width: 100%;
    justify-content: center;
  }

  .bm-summary-bar {
    padding: 11px 10px;
  }

  .bm-summary-bar__row {
    gap: 20px;
  }

  .bm-summary-bar__items {
    gap: 20px;
  }

  .bm-summary-item {
    width: auto;
  }

  .bm-steps-item__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex: 1 0 0;
  }

  .bm-steps-item__label {
    color: var(--Body-text, #5c5c5c);
    font-family: "Barlow Condensed";
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.2px;
    text-transform: uppercase;
  }

  .bm-steps-item__number {
    color: var(--Body-text, #5c5c5c);
    font-family: "Barlow Condensed";
    font-size: 26px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.52px;
    text-transform: uppercase;
  }

  .bm-preset-row {
    flex-direction: column;
  }

  .bm-mode-switch {
    flex-direction: column;
    gap: 8px;
  }

  .bm-mode-switch__btn {
    width: 100%;
    flex-shrink: 1;
  }

  .bm-tier-table {
    flex: 0 0 100%;
    width: 100%;
  }

  .bm-price-row--unit {
    display: none;
  }

  .bm-price-calc {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    padding: 10px 20px 20px 20px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.12);
  }

  .bm-price-row--total {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    flex: 1;
  }

  .bm-price-row--total .bm-price-row__val-stack {
    gap: 6px;
    align-items: flex-start;
  }

  .bm-btn-configure-label {
    padding: 10px;
  }

  .bm-price-row--total .bm-price-row__label {
    color: var(--Body-text, #5c5c5c);
    font-family: "Barlow Condensed";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.42px;
  }

  .bm-price-row--total .bm-price-row__value {
    color: var(--Black, #000);
    font-family: "Barlow Condensed";
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
  }

  .bm-price-row--total .bm-price-row__sub {
    color: var(--Body-text, #5c5c5c);
    font-family: "Barlow Condensed";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    letter-spacing: 0.42px;
  }

  .bm-price-actions {
    width: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    flex-shrink: 0;
  }

  .bm-btn-order {
    width: auto;
    align-self: auto;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .bm-btn-cart {
    width: auto;
    padding: 10px 16px;
    white-space: nowrap;
  }

  .bm-label-panel {
    margin-top: 50px;
    margin-bottom: 50px;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* Etykieta nie ściska się do szerokości ekranu — zachowuje czytelny,
     stały rozmiar, a jeśli nie mieści się w panelu, przewija się w bok
     zamiast zgniatać tekst i grafikę. */
  .bm-label-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/legacy Edge */
  }

  .bm-label-scroll::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Android WebView */
  }

  .bm-label-preview {
    width: 480px;
    max-width: none;
    flex-shrink: 0;
  }
}

/* Desktop short screens (>900px wide, <900px tall): size by height, proportional width */
@media (min-width: 901px) {
  .bm-product-image,
  .bm-bottle-img {
    width: auto;
    max-width: 100%;
    height: calc(100vh - 300px) !important;
    max-height: 780px;
  }
}

/* Desktop tall screens (>900px wide, ≥900px tall): fill container width */
@media (min-width: 901px) and (min-height: 900px) {
  .bm-product-image {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 300px) !important;
    object-fit: contain;
  }
  /* bm-bottle-img jest wewnątrz stage — nie ustawiamy width: 100% (pętla) */
  .bm-bottle-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: calc(100vh - 300px) !important;
  }
}

@media (min-height: 1000px) {
  .bm-product-image,
  .bm-bottle-img {
    width: auto;
    max-width: 100%;
    max-height: 740px !important;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   Sposób dostawy (kurier / Paczkomat InPost) + modal Geowidget
   ════════════════════════════════════════════════════════════════════════ */

.bm-locker-picker__selected {
  color: #202020;
}

.bm-btn-choose-locker {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 10px 24px;
  color: #5695c9;
  border: 1px solid #5695c9;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 15px;
  font-weight: 600;
  line-height: 130%;
  letter-spacing: 0.4px;
  cursor: pointer;
  white-space: nowrap;
}
.bm-btn-choose-locker:hover {
  background: rgba(255, 121, 28, 0.06);
}
.bm-btn-choose-locker:focus {
  outline: none;
}
.bm-btn-choose-locker:active {
  background: rgba(255, 121, 28, 0.12);
}

.bm-geowidget-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-geowidget-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.bm-geowidget-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32);
  width: 900px;
  max-width: calc(100vw - 32px);
  height: 640px;
  max-height: calc(100vh - 64px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bm-geowidget-modal__dialog inpost-geowidget {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  height: 100%;
}

.bm-geowidget-modal__close {
  all: unset;
  box-sizing: border-box;
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #7f7e7e;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.bm-geowidget-modal__close:hover {
  background: #f0f0f0;
  color: #202020;
}
