/* ── 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), 220px);
    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 .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: #FF791C;
}

.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: 16px;
    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: #FF791C;
}

.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: #FF791C;
}

/* 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: #FF791C;
}

/* 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 .15s, border-color .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: 20px;
    align-self: stretch;
    flex-wrap: wrap;
}

.bm-option-btn {
    display: flex;
    padding: 12px 10px;
    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 .15s, color .15s, border-color .15s;
    box-sizing: border-box;
}

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

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

.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: 10px;
    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;
}

/* 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: .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,.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,.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 #FF791C;
    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: #FF791C;
    background: rgba(255, 121, 28, 0.07);
}

.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: #FF791C;
    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: #e86d17; color: #fff; }
.bm-btn-configure-label:focus  { background: #FF791C; color: #fff; outline: none; }
.bm-btn-configure-label:active { background: #e86d17; 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: .2px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .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 .15s, color .15s;
}

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

.bm-btn-pdf:disabled {
    opacity: .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, .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,.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: #E76F00;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.bm-btn-ai.bm-btn-ai--full:hover  { background: #c55f00; color: #fff; }
.bm-btn-ai.bm-btn-ai--full:focus  { background: #c55f00; color: #fff; outline: none; }
.bm-btn-ai.bm-btn-ai--full:active { background: #c55f00; 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, #FF791C);
    background: #FFF7ED;
}

.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, #FF791C);
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 125%;
}

.bm-ai-notice__text {
    color: var(--Orange, #FF791C);
    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: #FF791C;
    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: #e86d17; color: #fff; }
.bm-btn-order:focus  { background: #FF791C; color: #fff; outline: none; }
.bm-btn-order:active { background: #e86d17; 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: #FF791C;
    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 #FF791C;
}
.bm-btn-cart:hover  { background: rgba(255,121,28,0.06); color: #FF791C; border-color: #FF791C; }
.bm-btn-cart:focus  { color: #FF791C; border-color: #FF791C; outline: none; }
.bm-btn-cart:active { background: rgba(255,121,28,0.12); color: #FF791C; border-color: #FF791C; }

/* ── 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: 10px;
    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 .15s, color .15s, border-color .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: 20px;
    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, #FF791C);
    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: #E5690F; color: #fff; }
.bm-btn-payment:focus  { background: #E5690F; color: #fff; outline: none; }
.bm-btn-payment:active { background: #E5690F; 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 .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 .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 .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: #D95000;
    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: #D95000;
    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: #D95000;
    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: #F47920;
    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;
}

.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 .15s, color .15s, border-color .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 .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,.32);
    width: 500px;
    max-width: calc(100vw - 32px);
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(8px);
    transition: transform .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 .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 .15s, border-color .15s, color .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,.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,.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 .15s, color .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 .15s, border-color .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,.30);
    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,.30);
}

.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, #FF791C);
    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: #FF791C;
    border: 1px solid #FF791C;
    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, .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,.2);
}
.bm-geowidget-modal__close:hover { background: #F0F0F0; color: #202020; }