/* ── BroMarket Configurator Shortcode ─────────────────────────────────────── */

/* 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: flex-start;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    color: #202020;
    line-height: 1.4;
    max-width: 1340px;
}

/* 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: 8px;
    /* box-shadow: 0 1px 4px rgba(0,0,0,.08); */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

.bm-view-toggle {
    display: flex;
    padding: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.bm-view-toggle__btn {
    display: flex;
    height: 32px;
    padding: 1px 9px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    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-radius: 3px;
}

.bm-view-toggle__btn:hover {
    border: none;
    background: transparent;
    color: #202020;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.bm-view-toggle__btn.is-active,
.bm-view-toggle__btn.is-active:hover {
    background: #3D3D3D;
    color: #fff;
    border: none;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

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

[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 553px;
    max-width: 553px;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    padding: 20px 40px;
    box-sizing: border-box;
}

/* Nagłówek kroku */
.bm-step-heading {
    margin: 0 0 16px;
    line-height: 1;
}

.bm-step-heading__step {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    color: #202020;
}

.bm-step-heading__total {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 105%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    color: #7F7E7E;
}

.bm-step-heading__label {
    font-family: "Barlow Condensed", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 105%;
    letter-spacing: 0.48px;
    text-transform: uppercase;
    color: #202020;
}

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

/* ── Switch Najczęściej / Własna ──────────────────────────────────────────── */
.bm-mode-switch {
    display: inline-flex;
    padding: 8px;
    align-items: center;
    gap: 8px;
    margin: 16px 0 0;
}

.bm-mode-switch__btn {
    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;
    cursor: pointer;
    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-mode-switch__btn:hover {
    background: transparent;
    border-color: #c3c4c7;
    color: #202020;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.bm-mode-switch__btn.is-active,
.bm-mode-switch__btn.is-active:hover {
    background: #3D3D3D;
    border-color: #3D3D3D;
    color: #fff;
    white-space: nowrap;
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.bm-mode-switch__btn .bm-icon-check {
    display: none;
    flex-shrink: 0;
}

.bm-mode-switch__btn.is-active .bm-icon-check {
    display: inline-flex;
}

/* ── Panel własnej konfiguracji ───────────────────────────────────────────── */
.bm-custom-config {
    margin-top: 32px;
}

.bm-section {
    margin-bottom: 24px;
}

.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;
}

/* ── 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: center;
    gap: 10px;
    align-self: stretch;
    flex-wrap: wrap;
}

.bm-option-btn {
    display: flex;
    height: 32px;
    padding: 12px 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    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: #202020;
    border-radius: 3px;
    transition: background .15s, color .15s, border-color .15s;
    box-sizing: border-box;
}

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

.bm-option-btn:hover {
    border: 1px solid #c3c4c7;
    background: transparent;
    color: #202020;
    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;
    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: #202020;
    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 — ikona butelki */
.bm-option-btn--packaging .bm-icon-bottle {
    display: inline-flex;
}

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

/* Upewniamy się że ikona check przy butelkach wynika z tego samego mechanizmu */
.bm-option-btn--packaging .bm-icon-check path[stroke] {
    stroke: white;
}

/* 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 {
    all: unset;
    display: flex;
    align-items: center;
    gap: 0;
    padding: 8px 10px;
    border: 1px solid #C0C0C0;
    background: #fff;
    width: fit-content;
}

.bm-qty__btn {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    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;
    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 {
    padding: 4px 0 16px;
}

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

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

.bm-price-row__label {
    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__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;
}

/* ── Przycisk "Konfiguruj etykietę" (krok 1 → 2) ────────────────────────── */
.bm-step-nav {
    display: flex;
    margin-top: 24px;
}

.bm-btn-configure-label {
    all: unset;
    box-sizing: border-box;
    display: flex;
    height: 40px;
    padding: 12px 12px 12px 4px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex: 1 0 0;
    background: #202020;
    color: #fff;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    cursor: pointer;
}
.bm-btn-configure-label:hover  { background: #202020; color: #fff; }
.bm-btn-configure-label:focus  { background: #202020; color: #fff; outline: none; }
.bm-btn-configure-label:active { background: #202020; color: #fff; }

/* Mały przycisk edycji pozycji w podsumowaniu kroku 3 */
.bm-summary-edit-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #f5f5f5;
    color: #3d3d3d;
    font-family: Catamaran, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .2px;
    cursor: pointer;
    border: 1px solid #c0c0c0;
    transition: background .15s, color .15s;
}
.bm-summary-edit-btn:hover  { background: #202020; color: #fff; border-color: #202020; }
.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;
}

.bm-summary-delete-btn {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #f5f5f5;
    color: #3d3d3d;
    border: 1px solid #c0c0c0;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}

.bm-summary-delete-btn:hover,
.bm-summary-delete-btn:focus {
    background: #202020;
    color: #fff;
    border-color: #202020;
    outline: none;
}

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

/* Przycisk powiększenia poglądu etykiety (ikona/lupenka) */
.bm-btn-label-zoom {
    all: unset;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #C0C0C0;
    border-radius: 4px;
    background: transparent;
    color: #7F7E7E;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.bm-btn-label-zoom:hover,
.bm-btn-label-zoom:focus {
    background: #3D3D3D;
    border-color: #3D3D3D;
    color: #fff;
    outline: none;
}

/* ── Lightbox poglądu etykiety ─────────────────────────────────────────── */
.bm-label-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0,0,0,.80);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.bm-label-lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.bm-label-lb-dialog {
    position: relative;
    width: min(960px, 92vw);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 16px 60px rgba(0,0,0,.45);
    overflow: hidden;
    transform: translateY(12px);
    transition: transform .2s ease;
}
.bm-label-lightbox.is-open .bm-label-lb-dialog {
    transform: translateY(0);
}

.bm-label-lb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    border-bottom: 1px solid #E8E8E8;
}
.bm-label-lb-title {
    font-family: 'Barlow Condensed', Catamaran, sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #202020;
}
.bm-label-lb-close {
    all: unset;
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7F7E7E;
    border-radius: 4px;
    transition: background .15s;
}
.bm-label-lb-close:hover { background: #F0F0F0; color: #202020; }

.bm-label-lb-stage {
    padding: 20px;
    box-sizing: border-box;
}
.bm-label-lb-stage .bm-label-preview {
    min-height: 300px;
    border: 1px solid #E8E8E8;
}

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

.bm-field__label {
    color: #3D3D3D;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    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;
}

/* Text input */
.bm-field__input {
    all: unset;
    box-sizing: border-box;
    display: flex;
    height: 40px;
    padding: 8px 16px;
    align-items: center;
    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;
    border-radius: 0 !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; }

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

.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: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-family: Catamaran, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #7F7E7E;
    pointer-events: none;
    line-height: 1;
}

.bm-field__color {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    padding: 2px;
    border: 1px solid #C0C0C0;
    border-radius: 3px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
}
.bm-field__color::-webkit-color-swatch-wrapper { padding: 0; }
.bm-field__color::-webkit-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: 30px !important;
    padding: 8px 20px 8px 10px;
    border: 1px solid #C0C0C0;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #3D3D3D;
    background: #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;
    padding: 19px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border: 1px solid #3D3D3D;
    background: #fff;
}

.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%;
    background: #F6F6F6;
    cursor: pointer;
    text-align: center;
}
.bm-dropzone:hover  { background: #F6F6F6; }
.bm-dropzone:focus  { outline: none; background: #F6F6F6; }
.bm-dropzone:active { background: #F6F6F6; }

.bm-dropzone__text {
    color: #515151;
    font-family: 'Source Sans Pro', Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.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;
    text-align: center;
    color: #7F7E7E;
    font-family: Catamaran, sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin: 20px 0;
}

/* Blok AI */
.bm-ai-block {
    display: flex;
    padding: 19px 16px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border: 1px solid #C0C0C0;
    background: #fff;
}

.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; }

/* Przyciski akcji */
.bm-actions {
    display: flex;
    gap: 8px;
    align-self: stretch;
    margin-top: 16px;
}

.bm-btn-cart {
    all: unset;
    box-sizing: border-box;
    display: flex;
    height: 48px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    border: 1px solid #333;
    color: #333;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    cursor: pointer;
    white-space: nowrap;
}
.bm-btn-cart:hover  { border-color: #333; color: #333; background: transparent; }
.bm-btn-cart:focus  { border-color: #333; color: #333; background: transparent; outline: none; }
.bm-btn-cart:active { border-color: #333; color: #333; background: transparent; }

.bm-btn-order {
    all: unset;
    box-sizing: border-box;
    display: flex;
    height: 48px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    background: #202020;
    color: #fff;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    cursor: pointer;
    white-space: nowrap;
}
.bm-btn-order:hover  { background: #202020; color: #fff; }
.bm-btn-order:focus  { background: #202020; color: #fff; outline: none; }
.bm-btn-order:active { background: #202020; color: #fff; }

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

.bm-type-switch__btn {
    all: unset;
    box-sizing: border-box;
    display: flex;
    flex: 1 1 50%;
    height: 32px;
    padding: 1px 9px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 3px;
    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;
}

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

.bm-type-switch__btn:hover,
.bm-type-switch__btn:focus  { background: transparent; color: #202020; outline: none; box-shadow: none; text-decoration: none; }
.bm-type-switch__btn:active { background: transparent; 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: #3D3D3D;
    color: #FFF;
    outline: none;
}

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

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

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

/* ── Krok 3: Podsumowanie zamówienia ─────────────────────────────────────── */
.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-order-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bm-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

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

.bm-summary-row__val {
    color: #3D3D3D;
    text-align: right;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 130%;
    letter-spacing: -0.32px;
}

/* ── Krok 3: Przycisk płatności ─────────────────────────────────────────────── */
.bm-btn-payment {
    all: unset;
    box-sizing: border-box;
    display: flex;
    width: 100%;
    height: 48px;
    padding: 20px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    background: #202020;
    color: #fff;
    font-family: Catamaran, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.32px;
    cursor: pointer;
    white-space: nowrap;
}
.bm-btn-payment:hover  { background: #202020; color: #fff; }
.bm-btn-payment:focus  { background: #202020; color: #fff; outline: none; }
.bm-btn-payment:active { background: #202020; color: #fff; }

/* ── 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 ─────────────────────────────────────────────────────── */
.bm-btn-back {
    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-back:hover  { border-color: #999; color: #555; }
.bm-btn-back:focus  { border-color: #999; color: #555; outline: none; }
.bm-btn-back:active { border-color: #999; color: #555; }
.bm-btn-back svg    { flex-shrink: 0; }

/* ── 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;
}

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

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

/* ── Widok butelki z owiniętą etykietą ───────────────────────────────────── */
.bm-bottle-label-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 320px;
    padding: 16px 0 8px;
}

.bm-bottle-img {
    display: block;
    max-height: 360px;
    max-width: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18));
}

/* Nakładka etykiety — absolutnie nad butelką, tylko środkowa część frontowa */
.bm-bottle-label-overlay {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 78px;
    height: 130px;
    display: flex;
    align-items: stretch;
    pointer-events: none;
    border-radius: 3px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.32);
}

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

.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;
}

/* Prawa zawinięta część (zachowana dla kompatybilności JS, niewidoczna) */
.bm-blo__right,
.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; }

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

.bm-label-preview {
    display: flex;
    width: 100%;
    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%;
    background: #fff;
    padding: 14px 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-right: 1px solid #e4e4e4;
    overflow: hidden;
}

.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 {
    font-size: 7.5px;
    font-weight: 700;
    color: #D95000;
    line-height: 1.35;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}

.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__footer {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-top: auto;
    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;
    font-size: 7px;
    color: #111;
    line-height: 1.2;
}

.bm-lp__badge-icon {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Ś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;
    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;
}

.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: 8px 5px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bm-lp__brand-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.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;
    background: #F47920;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
}

.bm-lp__brand-rotated {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    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;
}

.bm-lp__barcode-img {
    display: block;
    width: 80px;
    height: 100% !important;
}

.bm-lp__best-before {
    font-size: 5.5px;
    color: #111;
    line-height: 1.2;
    text-align: center;
    margin: 0;
    padding: 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__badge-icon {
    filter: invert(1);
}
.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: 420px;
    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: 380px;
    height: 380px;
    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-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: 8px 0 4px;
}

.bm-preset-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.bm-preset-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border: 2px solid #e4e4e4;
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}

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

.bm-preset-card.is-selected {
    border-color: #3D3D3D;
    background: #f2f2f2;
}

.bm-preset-cb {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #3D3D3D;
    cursor: pointer;
}

.bm-preset-card__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bm-preset-card__name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.bm-preset-card__style {
    font-size: 13px;
    color: #777;
}

.bm-preset-footer {
    display: flex;
    justify-content: flex-end;
}

.bm-preset-next-btn {
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #202020;
    color: #fff;
    cursor: pointer;
    transition: opacity 0.15s;
}

.bm-preset-next-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bm-preset-next-btn:not(:disabled):hover {
    opacity: 0.88;
}

.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: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    user-select: none;
}

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

.bm-strength-slider-wrap {
    position: relative;
    padding-top: 32px;
    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-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: 4px;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    /* --range-min-pct / --range-max-pct — strefy zablokowane (ściemnione)
       --fill-pct                         — aktualna pozycja (pomarańczowe wypełnienie) */
    background: linear-gradient(
        to right,
        #C8C8C8 0%,
        #C8C8C8 var(--range-min-pct, 0%),
        #E8521A var(--range-min-pct, 0%),
        #E8521A var(--fill-pct, 37.5%),
        #D8D8D8 var(--fill-pct, 37.5%),
        #D8D8D8 var(--range-max-pct, 100%),
        #C8C8C8 var(--range-max-pct, 100%),
        #C8C8C8 100%
    );
    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: 4px;
    border-radius: 2px;
}

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

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

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

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