/* Product Variant — Storefront */

/* BUG-08: brand colors (terracotta #c45f4e). Wszystkie reguły scoped pod
   .pv-configurator żeby nie wyciekać do reszty theme'a. */
.pv-configurator {
    --pv-brand: #c45f4e;
    --pv-brand-dark: #a44e3f;
    --pv-brand-soft: rgba(196, 95, 78, 0.08);
    --pv-error: #d63638;
    --pv-text: #211a17;
    --pv-text-muted: #6b7280;
    --pv-border: #e5d8d0;

    margin: 16px 0 24px;
}

/* Group */
.pv-group {
    margin-bottom: 20px;
}

.pv-group--error .pv-group-title {
    color: #d63638;
}

.pv-group--error .pv-swatches,
.pv-group--error .pv-dropdown,
.pv-group--error .pv-radios,
.pv-group--error .pv-checkboxes {
    outline: 2px solid #d63638;
    border-radius: 4px;
}

/* BUG-03: tekstowy komunikat błędu walidacji (poza color-only).
   role=alert czyta screenreader; ikona ostrzeżenia + tekst dla wzroku. */
.pv-group-error-msg {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fdecea;
    border-left: 3px solid #d63638;
    color: #8a1f1f;
    font-size: 13px;
    line-height: 1.4;
    border-radius: 4px;
}
.pv-group-error-msg::before {
    content: "⚠ ";
    font-weight: bold;
    margin-right: 4px;
}

.pv-group-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.pv-required {
    color: var(--pv-brand);
    margin-left: 2px;
    font-weight: bold;
}

/* BUG-08: brand-color override dla focus state na inputach. */
.pv-configurator .pv-input:focus,
.pv-configurator .pv-text-input:focus,
.pv-configurator .pv-textarea-input:focus,
.pv-configurator .pv-number-input:focus,
.pv-configurator .pv-email-input:focus,
.pv-configurator .pv-url-input:focus,
.pv-configurator .pv-tel-input:focus,
.pv-configurator .pv-date-input:focus,
.pv-configurator .pv-time-input:focus,
.pv-configurator .pv-datetime-input:focus,
.pv-configurator .pv-dropdown:focus {
    outline: 2px solid var(--pv-brand);
    outline-offset: 1px;
    border-color: var(--pv-brand);
}

/* BUG-08: aktywny swatch — terracotta border + ring. */
.pv-configurator .pv-swatch--active,
.pv-configurator .pv-swatch[aria-pressed="true"] {
    border-color: var(--pv-brand);
    box-shadow: 0 0 0 2px var(--pv-brand-soft);
}

/* BUG-08: hover na opcjach (radio/checkbox label) — subtle terracotta tint. */
.pv-configurator .pv-radio-label:hover,
.pv-configurator .pv-checkbox-label:hover {
    background: var(--pv-brand-soft);
    border-radius: 4px;
}

/* BUG-08: cena modyfikatora — terracotta accent. */
.pv-configurator .pv-opt-price,
.pv-configurator .pv-swatch-price {
    color: var(--pv-brand-dark);
    font-weight: 600;
}

.pv-group-help {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.pv-group-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

/* Swatches */
.pv-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    font-size: 12px;
    text-align: center;
    max-width: 90px;
}

.pv-swatch:hover {
    border-color: #9ca3af;
}

.pv-swatch--active {
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.pv-swatch img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.pv-swatch-label {
    font-size: 11px;
    color: #374151;
    line-height: 1.3;
    word-break: break-word;
}

.pv-swatch-price {
    font-size: 11px;
    color: #6b7280;
}

/* Color swatches */
.pv-swatches--color .pv-swatch {
    flex-direction: row;
    max-width: none;
    padding: 5px 10px;
    gap: 6px;
}

.pv-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.15);
    flex-shrink: 0;
    display: block;
}

/* Dropdown */
.pv-dropdown {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    cursor: pointer;
}

.pv-dropdown:focus {
    outline: none;
    border-color: #111827;
}

/* Radio & Checkbox */
.pv-radios,
.pv-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pv-radio-label,
.pv-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.pv-opt-price {
    color: #6b7280;
    font-size: 12px;
}

/* Switch (Tak/Nie pill) */
.pv-switch {
    display: inline-flex;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.pv-switch-option {
    display: flex;
    align-items: center;
    padding: 7px 16px;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
    transition: background .12s, color .12s;
    user-select: none;
}

.pv-switch-option input[type="radio"] {
    display: none;
}

.pv-switch-option:has(input:checked) {
    background: #111827;
    color: #fff;
}

.pv-switch-option + .pv-switch-option {
    border-left: 1px solid #d1d5db;
}

/* Text input — Audyt 30.05: dodano time/datetime/email/tel/url (były pomijane → surowe). */
.pv-text-input,
.pv-textarea-input,
.pv-number-input,
.pv-date-input,
.pv-time-input,
.pv-datetime-input,
.pv-email-input,
.pv-tel-input,
.pv-url-input {
    width: 100%;
    max-width: 320px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 14px;
    color: #111827;
    background: #fff;
    font-family: inherit;
    box-sizing: border-box;
}

.pv-text-input:focus,
.pv-textarea-input:focus,
.pv-number-input:focus,
.pv-date-input:focus,
.pv-time-input:focus,
.pv-datetime-input:focus,
.pv-email-input:focus,
.pv-tel-input:focus,
.pv-url-input:focus {
    outline: none;
    border-color: #111827;
}

.pv-textarea-input {
    resize: vertical;
    min-height: 80px;
}

/* Number with unit */
.pv-number-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pv-number-wrap .pv-number-input {
    max-width: 160px;
}

.pv-input-unit {
    font-size: 13px;
    color: #6b7280;
    white-space: nowrap;
}

/* Range slider */
.pv-range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 320px;
}

.pv-range-input {
    flex: 1;
    cursor: pointer;
    accent-color: #111827;
}

.pv-range-output {
    min-width: 36px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

/* Color picker */
.pv-color-picker-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pv-color-picker-input {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    background: none;
}

.pv-color-picker-label {
    font-size: 13px;
    color: #374151;
}

/* Section heading */
.pv-section-heading {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 4px 0 2px;
    padding: 0;
    border: none;
}

/* Separator */
.pv-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 4px 0;
    width: 100%;
}

/* Price preview */
.pv-price-preview {
    margin-top: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    display: none;
}

/* Lightbox */
.pv-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.pv-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.pv-lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.pv-lightbox-caption {
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.pv-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

@media (max-width: 600px) {
    .pv-swatch img {
        width: 48px;
        height: 48px;
    }
    .pv-swatch {
        max-width: 72px;
    }
    .pv-range-wrap {
        max-width: 100%;
    }
    .pv-text-input,
    .pv-textarea-input,
    .pv-number-input,
    .pv-date-input,
    .pv-dropdown {
        max-width: 100%;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   Sprint 31.5 — Storefront polish dla typów dodanych w Sprint 27.9-27.10
   (Product Field, Button, Spacer responsive, range output, qty total)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Spacer: visible_on breakpoint hide (Sprint 27.9 settings) ────── */
@media (min-width: 1024px) {
    .pv-spacer--hide-desktop { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .pv-spacer--hide-tablet { display: none; }
}
@media (max-width: 639px) {
    .pv-spacer--hide-mobile { display: none; }
}

/* ── Button (CTA) — style modes z Sprint 27.9 settings ────────────── */
.pv-cta-button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: background 200ms, color 200ms, transform 100ms;
    cursor: pointer;
    border: 2px solid transparent;
    line-height: 1.3;
}
.pv-cta-button:hover { transform: translateY(-1px); }
.pv-cta-button:active { transform: translateY(0); }
.pv-cta-button--primary { background: #b8754a; color: #fff; }
.pv-cta-button--primary:hover { background: #8a5635; color: #fff; }
.pv-cta-button--secondary { background: #211a17; color: #fff; }
.pv-cta-button--secondary:hover { background: #3a2e28; color: #fff; }
.pv-cta-button--ghost { background: transparent; color: #b8754a; }
.pv-cta-button--ghost:hover { background: rgba(184, 117, 74, 0.1); color: #8a5635; }
.pv-cta-button--outline { background: transparent; color: #b8754a; border-color: #b8754a; }
.pv-cta-button--outline:hover { background: #b8754a; color: #fff; }
.pv-cta-button--full { display: block; width: 100%; }

/* ── Range slider live output / unit suffix ──────────────────────── */
.pv-range-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.pv-range-output {
    min-width: 50px;
    padding: 4px 10px;
    background: rgba(184, 117, 74, 0.1);
    border-radius: 6px;
    color: #b8754a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.pv-input-unit { color: #52443b; font-size: 13px; font-weight: 500; }

/* ── Quantity single (per-option MVP) — live total ───────────────── */
.pv-qty-single {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.pv-qty-total {
    margin-left: auto;
    padding: 6px 12px;
    background: rgba(184, 117, 74, 0.08);
    border-radius: 6px;
    color: #b8754a;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ── Telephone prefix display ────────────────────────────────────── */
.pv-telephone-wrap { display: inline-flex; align-items: stretch; }
.pv-tel-prefix {
    padding: 8px 12px;
    background: rgba(184, 117, 74, 0.06);
    border: 1px solid #d8c2b7;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-weight: 500;
    color: #52443b;
}
.pv-telephone-wrap .pv-tel-input { border-radius: 0 6px 6px 0; }

/* ── Color swatches (predefined picker) ───────────────────────────── */
.pv-color-picker-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pv-color-swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-color-swatch-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    transition: box-shadow 150ms, transform 100ms;
    padding: 0;
}
.pv-color-swatch-btn:hover {
    box-shadow: 0 0 0 2px #b8754a;
    transform: scale(1.1);
}

/* ── Date range — days counter ───────────────────────────────────── */
.pv-date-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pv-date-range-days { margin-left: 8px; color: #52443b; font-size: 13px; font-style: italic; }

/* ═══════════════════════════════════════════════════════════════════
   Product Field (cross-sell) — Sprint 27.10 + 31.5 polish
   ═══════════════════════════════════════════════════════════════════ */

.pv-product-field { margin: 16px 0; }
.pv-product-field-empty {
    padding: 20px;
    background: rgba(184, 117, 74, 0.05);
    border: 1px dashed #d8c2b7;
    border-radius: 8px;
    text-align: center;
    color: #85746a;
}

.pv-product-field-search { margin-bottom: 12px; }
.pv-product-field-search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #d8c2b7;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 150ms;
}
.pv-product-field-search-input:focus {
    outline: none;
    border-color: #b8754a;
    box-shadow: 0 0 0 3px rgba(184, 117, 74, 0.15);
}

.pv-product-field-list { display: grid; gap: 12px; }
.pv-product-field--grid_2 .pv-product-field-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv-product-field--grid_3 .pv-product-field-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-product-field--list .pv-product-field-list { grid-template-columns: 1fr; }
.pv-product-field--carousel .pv-product-field-list {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding: 16px;
}
.pv-product-field--carousel .pv-product-field-item {
    flex: 0 0 240px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {
    .pv-product-field--grid_3 .pv-product-field-list,
    .pv-product-field--grid_2 .pv-product-field-list {
        grid-template-columns: 1fr;
    }
}

.pv-product-field-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 2px solid #ebe1d9;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: border-color 150ms, box-shadow 150ms, transform 100ms;
    position: relative;
}
.pv-product-field-item:hover {
    border-color: #d8c2b7;
    box-shadow: 0 4px 12px rgba(184, 117, 74, 0.08);
}
.pv-product-field-item--selected {
    border-color: #b8754a;
    box-shadow: 0 0 0 3px rgba(184, 117, 74, 0.12);
}
.pv-product-field--list .pv-product-field-item {
    flex-direction: row;
    align-items: center;
}

.pv-product-field-checkbox {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    accent-color: #b8754a;
    cursor: pointer;
    z-index: 2;
}

.pv-product-field-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #f7f1eb;
}
.pv-product-field--list .pv-product-field-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.pv-product-field-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.pv-product-field-name {
    font-size: 14px;
    font-weight: 600;
    color: #211a17;
    line-height: 1.3;
}
.pv-product-field-desc {
    font-size: 12px;
    color: #85746a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.pv-product-field-price {
    font-size: 14px;
    font-weight: 600;
    color: #b8754a;
    margin-top: 2px;
}

.pv-product-field-qty {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}
.pv-product-field-qty-label { font-size: 12px; color: #52443b; }
.pv-product-field-qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #d8c2b7;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.pv-product-field-summary {
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(184, 117, 74, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}
.pv-product-field-range { color: #52443b; }
.pv-product-field-discount-info {
    color: #b8754a;
    font-weight: 500;
    flex: 1;
}
.pv-product-field-total {
    font-size: 16px;
    font-weight: 700;
    color: #b8754a;
    font-variant-numeric: tabular-nums;
}
.pv-product-field--invalid .pv-product-field-summary {
    background: rgba(186, 26, 26, 0.06);
    border-left: 3px solid #ba1a1a;
}
.pv-product-field--invalid .pv-product-field-range {
    color: #ba1a1a;
    font-weight: 500;
}

.pv-product-field-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}
.pv-product-field-carousel-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #d8c2b7;
    border-radius: 50%;
    background: #fff;
    color: #52443b;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 150ms, color 150ms;
}
.pv-product-field-carousel-btn:hover {
    border-color: #b8754a;
    color: #b8754a;
}

/* BUG-NEW-02: wrapper ceny głównej — transparentny dla layout (display: contents
   sprawia że wrapper nie tworzy box'a, dziedziczy parent flow). JS storefront.js
   szuka tego elementu deterministycznie (`.pv-main-price-wrap`). */
.pv-main-price-wrap {
    display: contents;
}

/* BUG-NEW-02: live price preview pod konfiguratorem (breakdown). */
.pv-configurator .pv-price-preview {
    margin-top: 12px;
    padding: 10px 14px;
    background: var(--pv-brand-soft);
    border-left: 3px solid var(--pv-brand);
    border-radius: 4px;
    font-size: 14px;
    color: var(--pv-text);
}
.pv-configurator .pv-price-preview strong {
    color: var(--pv-brand-dark);
    font-weight: 700;
}

/* BUG-NEW-05: toast po add-to-cart, fixed bottom-right. */
.pv-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e5d8d0;
    border-left: 4px solid #2e7d32;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    color: #211a17;
    max-width: 360px;
    animation: pvToastIn 0.25s ease-out;
}
.pv-toast--success { border-left-color: #2e7d32; }
.pv-toast-icon {
    font-size: 18px;
    color: #2e7d32;
    font-weight: bold;
}
.pv-toast-msg { flex: 1; }
.pv-toast-link {
    color: #c45f4e;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 4px;
}
.pv-toast-link:hover { color: #a44e3f; }
.pv-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0 4px;
}
.pv-toast-close:hover { color: #211a17; }
@keyframes pvToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
 * Sprint 31.16.5 (Wumex24 X.2.5) — radio_with_description
 * ========================================================== */
.pv-radio-with-description { display: flex; flex-direction: column; gap: 10px; }
.pv-rwd-card { display: block; padding: 14px 16px; border: 2px solid #E0E0E0; border-radius: 8px; cursor: pointer; transition: border-color .15s, background .15s; background: #fff; }
.pv-rwd-card:hover { border-color: #B0B0B0; }
.pv-rwd-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pv-rwd-card:has(input:checked) { border-color: #1E3A5F; background: #F7FAFE; }
/* fallback dla starszych przeglądarek bez :has() */
.pv-rwd-card.is-selected { border-color: #1E3A5F; background: #F7FAFE; }
.pv-rwd-header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pv-rwd-label { font-weight: 600; font-size: 14px; color: #1A1A1A; }
.pv-rwd-secondary { color: #666; font-size: 12.5px; }
.pv-rwd-price { margin-left: auto; font-weight: 600; color: #1E3A5F; font-size: 13.5px; }
.pv-rwd-included { margin-left: auto; font-size: 12px; color: #666; font-style: italic; }
.pv-rwd-description { margin: 6px 0 0; color: #666; font-size: 13px; line-height: 1.5; }
.pv-rwd-sub-cta { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 4px; background: #4A4A4A; color: #fff; border-radius: 8px; text-decoration: none; transition: background .15s; }
.pv-rwd-sub-cta:hover { background: #333; color: #fff; }
.pv-rwd-sub-cta-label { font-weight: 600; font-size: 14px; }
.pv-rwd-sub-cta-desc { font-size: 12.5px; opacity: .85; }
.pv-rwd-sub-cta-arrow { margin-left: auto; font-size: 16px; }

/* ============================================================
 * Sprint 31.16.5 (Wumex24 X.2.5) — fabric_grid_filtered
 * ========================================================== */
.pv-fabric-grid-filtered { display: flex; flex-direction: column; gap: 14px; }
.pv-fabric-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 10px 12px; background: #F2EEEA; border-radius: 8px; }
.pv-fabric-filter label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #666; margin-bottom: 4px; }
.pv-fabric-filter select { width: 100%; padding: 6px 8px; border: 1px solid #D0D0D0; border-radius: 6px; background: #fff; font-size: 13px; cursor: pointer; }
.pv-fabric-preview { display: flex; gap: 14px; padding: 14px; background: #FAFAFA; border-radius: 8px; align-items: center; }
.pv-fabric-preview-img { width: 64px; height: 64px; border-radius: 6px; background: #E5E5E5 50% / cover no-repeat; flex-shrink: 0; }
.pv-fabric-preview-info h4 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.pv-fabric-preview-info p { margin: 0; color: #666; font-size: 12.5px; }
.pv-fabric-best h5 { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: #666; margin: 0 0 10px; }
.pv-fabric-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.pv-fabric-swatch { display: flex; flex-direction: column; gap: 4px; padding: 4px; background: #fff; border: 2px solid transparent; border-radius: 7px; cursor: pointer; transition: border-color .15s; }
.pv-fabric-swatch:hover { border-color: #B0B0B0; }
.pv-fabric-swatch.is-selected { border-color: #1E3A5F; }
.pv-fabric-swatch input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.pv-fabric-swatch-thumb { aspect-ratio: 1; width: 100%; border-radius: 4px; background: #E5E5E5 50% / cover no-repeat; }
.pv-fabric-swatch-label { font-size: 10.5px; text-align: center; color: #444; line-height: 1.2; padding: 0 2px 2px; }
.pv-fabric-empty { grid-column: 1/-1; text-align: center; color: #999; padding: 24px; font-size: 13px; }

@media (max-width: 768px) {
  .pv-fabric-filters { grid-template-columns: repeat(2, 1fr); }
  .pv-fabric-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
}

/* ── Podsumowanie konfiguracji ("Twoja konfiguracja") ──────────────
   Motyw-agnostyczne (neutralne rgba), działa na WC i PrestaShop. */
.pv-config-summary { margin: 18px 0 0; padding: 16px 18px; border: 1px solid rgba(0,0,0,.10); border-radius: 10px; background: rgba(0,0,0,.02); font-size: 14px; }
.pv-cs-title { font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; opacity: .7; margin-bottom: 10px; }
.pv-cs-list { list-style: none; margin: 0; padding: 0; }
.pv-cs-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.pv-cs-row:last-child { border-bottom: 0; }
.pv-cs-label { color: #6b6b6b; }
.pv-cs-val { font-weight: 600; text-align: right; }
.pv-cs-val--muted { font-weight: 400; color: #b0b0b0; font-style: italic; }
.pv-cs-plus { color: #1ca35a; font-weight: 700; white-space: nowrap; }
.pv-cs-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(0,0,0,.12); text-align: right; }

/* #2 Deep-link — przycisk "Udostępnij konfigurację" */
.pv-share-config { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; background: none; border: 1px solid rgba(0,0,0,.15); border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; color: inherit; cursor: pointer; }
.pv-share-config:hover { border-color: rgba(0,0,0,.4); }
.pv-share-config svg { width: 16px; height: 16px; }

/* ════════════════════════════════════════════════════════════════════
 * PREMIUM SKIN — przegląd 31.16.3
 * Dopracowany wygląd konfiguratora wzorowany na Cozey / Everyroom.
 * Motyw-agnostyczny: wszystkie kolory/odstępy przez zmienne CSS na
 * .pv-configurator — dowolny theme nadpisze je bez wojny specyficzności.
 * Pasuje do premium szablonów (premium-sectional / modular-build-your-own).
 * ════════════════════════════════════════════════════════════════════ */
.pv-configurator {
  --pv-accent: #1e3a5f;
  --pv-accent-soft: rgba(30,58,95,.08);
  --pv-ink: #1a1a1a;
  --pv-muted: #6b6b6b;
  --pv-line: rgba(0,0,0,.10);
  --pv-surface: #ffffff;
  --pv-surface-2: #f6f4f1;
  --pv-radius: 12px;
  --pv-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}

/* ── Filtry tkanin: premium pill-bar ─────────────────────────────── */
.pv-configurator .pv-fabric-filters {
  background: var(--pv-surface-2);
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius);
  padding: 12px 14px;
  /* Audyt 30.05: 4 sztywne kolumny były za wąskie w konfiguratorze → „Wszystkie"
     się ucinało. Auto-fit z min. szerokością — zawija do 2 rzędów gdy ciasno. */
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}
.pv-configurator .pv-fabric-filter select {
  border-radius: 999px;
  border-color: var(--pv-line);
  padding: 7px 10px;
  width: 100%;
  text-overflow: ellipsis;
  transition: border-color .15s, box-shadow .15s;
}
.pv-configurator .pv-fabric-filter select:focus {
  outline: none;
  border-color: var(--pv-accent);
  box-shadow: 0 0 0 3px var(--pv-accent-soft);
}

/* ── Siatka tkanin: większe swatche, lift, ring + check ──────────── */
.pv-configurator .pv-fabric-grid {
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 12px;
}
.pv-configurator .pv-fabric-swatch {
  position: relative;
  padding: 6px 6px 8px;
  border-width: 1px;
  border-color: var(--pv-line);
  border-radius: 10px;
  background: var(--pv-surface);
  box-shadow: var(--pv-shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pv-configurator .pv-fabric-swatch:hover {
  transform: translateY(-2px);
  border-color: var(--pv-accent);
}
.pv-configurator .pv-fabric-swatch.is-selected {
  border-color: var(--pv-accent);
  box-shadow: 0 0 0 2px var(--pv-accent);
}
.pv-configurator .pv-fabric-swatch-thumb {
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
/* Checkmark na wybranej tkaninie (top-right). */
.pv-configurator .pv-fabric-swatch.is-selected::after {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pv-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
  pointer-events: none;
}
/* Pill cechy tkaniny (np. „Premium", „Pet-friendly") z metadata fabric_feature.
   attr() działa, bo ::before jest na elemencie z atrybutem (label swatcha). */
.pv-configurator .pv-fabric-swatch[data-fab-feature]:not([data-fab-feature=""])::before {
  content: attr(data-fab-feature);
  position: absolute;
  top: 8px; left: 8px;
  z-index: 1;
  font-size: 9px; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase;
  background: rgba(255,255,255,.92);
  color: var(--pv-ink);
  padding: 2px 6px;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,.18);
  pointer-events: none;
}
.pv-configurator .pv-fabric-swatch-label {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--pv-ink);
}
/* ① dopłata na swatchu tkaniny (parytet z .pv-opt-price / .pv-rwd-price). */
.pv-configurator .pv-fabric-swatch-price {
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.15;
  color: var(--pv-brand-dark, #1E3A5F);
}
.pv-configurator .pv-fabric-swatch-price .woocommerce-Price-amount { white-space: nowrap; }
/* ②③ plakietka bestsellera w jednym gridzie (zamiast osobnej sekcji). */
.pv-configurator .pv-fabric-swatch-best {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  text-align: center;
  line-height: 1.1;
  color: #B8860B;
}

/* ── Preview wybranej tkaniny: premium karta ─────────────────────── */
.pv-configurator .pv-fabric-preview {
  background: var(--pv-surface);
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius);
  box-shadow: var(--pv-shadow);
  padding: 14px 16px;
}
.pv-configurator .pv-fabric-preview-img {
  width: 72px; height: 72px; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
}
.pv-configurator .pv-fabric-preview-info h4 { font-size: 15px; color: var(--pv-ink); }
.pv-configurator .pv-fabric-best h5 { color: var(--pv-accent); }

/* ── Podsumowanie „Twoja konfiguracja": sticky premium karta ─────── */
.pv-configurator .pv-config-summary {
  border: 1px solid var(--pv-line);
  border-radius: var(--pv-radius);
  background: var(--pv-surface);
  box-shadow: var(--pv-shadow);
  padding: 18px 20px;
}
.pv-configurator .pv-cs-title { color: var(--pv-accent); opacity: 1; }
.pv-configurator .pv-cs-total { font-size: 16px; }
.pv-configurator .pv-cs-total strong { color: var(--pv-ink); }
@media (min-width: 1024px) {
  .pv-configurator .pv-config-summary { position: sticky; top: 24px; }
}

/* ── Przycisk „Udostępnij konfigurację": akcent ──────────────────── */
.pv-configurator .pv-share-config {
  border-radius: 999px;
  border-color: var(--pv-accent);
  color: var(--pv-accent);
  transition: background .15s, color .15s, border-color .15s;
}
.pv-configurator .pv-share-config:hover {
  background: var(--pv-accent);
  color: #fff;
  border-color: var(--pv-accent);
}

/* ── Linked Variants (Sprint 31.8) — brakowało jakiegokolwiek CSS w PV core,
      przez co renderowało się jako surowy blok tekstu (nazwy+ceny). ──────── */
.pv-linked-variants { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 2px; align-items: flex-start; }
.pv-linked-variant {
  display: inline-flex; flex-direction: column; align-items: center; gap: 5px;
  text-decoration: none; color: var(--pv-ink, #1A1A1A);
  font-size: 11px; line-height: 1.2; text-align: center; cursor: pointer; position: relative;
}
.pv-linked-variant-swatch-dot {
  width: 40px; height: 40px; border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,.15); border: 2px solid transparent;
  transition: border-color .15s, transform .15s;
}
.pv-linked-variant:hover .pv-linked-variant-swatch-dot { transform: translateY(-1px); border-color: rgba(0,0,0,.3); }
.pv-linked-variant--current .pv-linked-variant-swatch-dot { border-color: var(--pv-accent, #1E3A5F); }
.pv-linked-variant-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); border: 2px solid transparent; display: block; }
.pv-linked-variant--current .pv-linked-variant-thumb { border-color: var(--pv-accent, #1E3A5F); }
.pv-linked-variant-text { padding: 7px 14px; border: 1px solid var(--pv-line, #e5e7eb); border-radius: 20px; }
.pv-linked-variant--current .pv-linked-variant-text { border-color: var(--pv-accent, #1E3A5F); background: var(--pv-accent, #1E3A5F); color: #fff; }
.pv-linked-variant-name { color: var(--pv-muted, #6b7280); max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-linked-variant-price { color: var(--pv-muted, #6b7280); font-size: 10.5px; }
.pv-linked-variant-current-mark {
  position: absolute; top: -3px; right: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--pv-accent, #1E3A5F); color: #fff; font-size: 10px; line-height: 16px;
}
/* Swatches = kompaktowy color-picker: nazwa/cena ukryte (pełna nazwa w tooltipie aria-label). */
.pv-linked-variants--swatches .pv-linked-variant-name,
.pv-linked-variants--swatches .pv-linked-variant-price { display: none; }
.pv-linked-variants--large .pv-linked-variant-swatch-dot { width: 52px; height: 52px; }
.pv-linked-variants--small .pv-linked-variant-swatch-dot { width: 30px; height: 30px; }

/* ── Audyt 30.05: nowo renderowane typy ──────────────────────────── */
/* image_hover — swatch obrazkowy z powiększeniem na hover */
.pv-configurator .pv-swatches--hover { display: flex; flex-wrap: wrap; gap: 10px; }
.pv-configurator .pv-swatch--hover { overflow: visible; position: relative; }
.pv-configurator .pv-swatch--hover img { transition: transform .18s ease; transform-origin: center bottom; }
.pv-configurator .pv-swatch--hover:hover { z-index: 5; }
.pv-configurator .pv-swatch--hover:hover img { transform: scale(1.7); box-shadow: 0 6px 20px rgba(0,0,0,.25); border-radius: 6px; }

/* popup_modal — trigger + overlay + dialog */
.pv-configurator .pv-popup-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 1px solid var(--pv-line, #e5e7eb); border-radius: var(--pv-radius, 8px);
  background: var(--pv-surface, #fff); color: var(--pv-ink, #1A1A1A); font: inherit; cursor: pointer;
}
.pv-configurator .pv-popup-trigger:hover { border-color: var(--pv-accent, #1E3A5F); }
.pv-popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.pv-popup-overlay[hidden] { display: none; }
.pv-popup-dialog {
  background: #fff; border-radius: 12px; max-width: 460px; width: 100%;
  max-height: 80vh; overflow: auto; padding: 22px; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.pv-popup-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 24px; line-height: 1; cursor: pointer; color: #666; }
.pv-popup-options { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.pv-popup-option { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--pv-line, #e5e7eb); border-radius: 8px; cursor: pointer; }
.pv-popup-option:hover { border-color: var(--pv-accent, #1E3A5F); }
.pv-popup-option:has(input:checked) { border-color: var(--pv-accent, #1E3A5F); background: rgba(30,58,95,.04); }

/* formula — wyświetlacz wyliczonej wartości */
.pv-configurator .pv-formula {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border: 1px dashed var(--pv-line, #e5e7eb); border-radius: var(--pv-radius, 8px);
  background: rgba(0,0,0,.02);
}
.pv-configurator .pv-formula-label { color: var(--pv-muted, #6b7280); font-size: 13px; }
.pv-configurator .pv-formula-value { font-weight: 700; color: var(--pv-ink, #1A1A1A); }

/* signature — pad */
.pv-configurator .pv-signature { display: inline-block; }
.pv-configurator .pv-signature-pad {
  display: block; width: 100%; max-width: 400px; height: 150px;
  border: 1px solid var(--pv-line, #e5e7eb); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair;
}
.pv-configurator .pv-signature-clear {
  margin-top: 8px; padding: 6px 14px; border: 1px solid var(--pv-line, #e5e7eb);
  border-radius: 6px; background: var(--pv-surface, #fff); cursor: pointer; font-size: 13px;
}

/* repeater_group — dynamiczne wiersze */
.pv-configurator .pv-repeater-rows { display: flex; flex-direction: column; gap: 8px; }
.pv-configurator .pv-repeater-row { display: flex; gap: 8px; align-items: center; }
.pv-configurator .pv-repeater-input { flex: 1; padding: 9px 12px; border: 1px solid var(--pv-line, #e5e7eb); border-radius: 8px; font: inherit; }
.pv-configurator .pv-repeater-remove { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #999; padding: 0 6px; }
.pv-configurator .pv-repeater-add {
  margin-top: 10px; padding: 8px 14px; border: 1px dashed var(--pv-line, #e5e7eb);
  border-radius: 8px; background: none; cursor: pointer; font-size: 13px; color: var(--pv-accent, #1E3A5F);
}

/* dropdown — polish natywnego selecta */
.pv-configurator .pv-dropdown {
  width: 100%; max-width: 360px; padding: 9px 36px 9px 12px;
  font-family: inherit; font-size: 14px; line-height: 1.5; /* line-height: descendery „ą/ę" nie ucinane */
  height: auto; box-sizing: border-box;
  border: 1px solid var(--pv-line, #e5e7eb); border-radius: var(--pv-radius, 8px); background: var(--pv-surface, #fff);
  -webkit-appearance: none; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
}
.pv-configurator .pv-dropdown:focus { outline: none; border-color: var(--pv-accent, #1E3A5F); }

/* ── Audyt 30.05: UJEDNOLICENIE swatchy obrazkowych (image_swatch / multi_image_swatch /
      image_hover). Wcześniej .pv-swatch miał max-width ale brak stałej wysokości →
      każdy box miał inną wielkość/kształt (etykiety zawijały się różnie, obrazki różne).
      Tu: równa szerokość+wysokość, obrazek 100%×64px cover, etykieta clamp do 2 linii. ── */
.pv-configurator .pv-swatches--image,
.pv-configurator .pv-swatches--multi,
.pv-configurator .pv-swatches--hover { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pv-configurator .pv-swatch--image,
.pv-configurator .pv-swatch--multi,
.pv-configurator .pv-swatch--hover {
  width: 92px; min-height: 118px; max-width: none; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px;
  padding: 8px; border: 2px solid var(--pv-line, #e5e7eb); border-radius: 10px;
  background: var(--pv-surface, #fff); cursor: pointer; text-align: center;
}
.pv-configurator .pv-swatch--image img,
.pv-configurator .pv-swatch--multi img,
.pv-configurator .pv-swatch--hover img {
  width: 100%; height: 64px; object-fit: cover; border-radius: 6px; display: block; margin: 0;
}
.pv-configurator .pv-swatch--image .pv-color-dot,
.pv-configurator .pv-swatch--multi .pv-color-dot,
.pv-configurator .pv-swatch--hover .pv-color-dot {
  width: 100%; height: 64px; border-radius: 6px; display: block;
}
.pv-configurator .pv-swatch--image .pv-swatch-label,
.pv-configurator .pv-swatch--multi .pv-swatch-label,
.pv-configurator .pv-swatch--hover .pv-swatch-label {
  font-size: 11px; line-height: 1.25; color: var(--pv-ink, #1A1A1A); word-break: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 28px;
}
.pv-configurator .pv-swatch--image .pv-swatch-price,
.pv-configurator .pv-swatch--multi .pv-swatch-price,
.pv-configurator .pv-swatch--hover .pv-swatch-price { font-size: 10.5px; color: var(--pv-muted, #6b7280); margin-top: auto; }
/* Sprint 32 — metadata enrichment dla image_swatch (tier/rating/desc z source data np. fabric_options Forniro). */
.pv-configurator .pv-swatch--image .pv-swatch-rating {
	display: block; font-size: 10px; letter-spacing: 1px;
	color: var(--pv-brand, #C45F4E); line-height: 1; margin: 4px 0 2px;
}
/* Oceny cząstkowe — metadata.ratings: kilka cech jednej opcji, każda z własnym
   wskaźnikiem (np. komfort / trwałość / elastyczność wypełnienia). */
.pv-configurator .pv-swatch--image .pv-swatch-ratings { display: block; margin: 4px 0 2px; }
.pv-configurator .pv-swatch--image .pv-swatch-rating-row { display: block; }
.pv-configurator .pv-swatch--image .pv-swatch-rating-row + .pv-swatch-rating-row { margin-top: 3px; }
.pv-configurator .pv-swatch--image .pv-swatch-rating-label {
	display: block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.5px;
	text-transform: uppercase; color: var(--pv-muted, #6b7280); line-height: 1.2;
}
.pv-configurator .pv-swatch--image .pv-swatch-ratings .pv-swatch-rating { margin: 1px 0 0; }
.pv-configurator .pv-swatch--image .pv-swatch-tier {
	font-weight: 700; color: var(--pv-ink, #1A1A1A); letter-spacing: 0.4px;
}
.pv-configurator .pv-swatch--image .pv-swatch-desc {
	display: -webkit-box; font-size: 10px; line-height: 1.3;
	color: var(--pv-muted, #6b7280); font-style: italic;
	margin-top: 3px;
	-webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Gdy są metadane (rating/desc) — label nie clamp'uj na 2 linie (tier+name w jednej linii) */
.pv-configurator .pv-swatch--image:has(.pv-swatch-rating) .pv-swatch-label,
.pv-configurator .pv-swatch--image:has(.pv-swatch-desc) .pv-swatch-label {
	-webkit-line-clamp: 1; min-height: auto;
}
.pv-configurator .pv-swatch--image.pv-swatch--active,
.pv-configurator .pv-swatch--image[aria-pressed="true"],
.pv-configurator .pv-swatch--multi.pv-swatch--active,
.pv-configurator .pv-swatch--multi[aria-pressed="true"],
.pv-configurator .pv-swatch--hover.pv-swatch--active,
.pv-configurator .pv-swatch--hover[aria-pressed="true"] { border-color: var(--pv-accent, #1E3A5F); box-shadow: 0 0 0 1px var(--pv-accent, #1E3A5F); }

/* ── Audyt 30.05 (punkt 9): RÓWNE swatche tkanin (fabric_grid) + plakietka właściwości
      bez przelewania poza box. Wcześniej boxy miały różną wysokość (etykieta 1/2 linie,
      część z ceną/bestsellerem) a długie cechy (PLAMOODPORNA) wystawały poza swatch. ── */
.pv-configurator .pv-fabric-grid { align-items: stretch; }
.pv-configurator .pv-fabric-swatch {
  min-height: 140px;
  display: flex; flex-direction: column; align-items: stretch; gap: 5px; justify-content: flex-start;
}
.pv-configurator .pv-fabric-swatch-thumb { aspect-ratio: 1; width: 100%; flex: 0 0 auto; }
.pv-configurator .pv-fabric-swatch-label {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 27px; line-height: 1.25; text-align: center;
}
/* plakietka cechy: nie szersza niż swatch, ucięcie wielokropkiem zamiast przelania */
.pv-configurator .pv-fabric-swatch[data-fab-feature]:not([data-fab-feature=""])::before {
  max-width: calc(100% - 14px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 8px; padding: 2px 5px; top: 6px; left: 6px;
}

/* ── Audyt 30.05: natywne kontrolki (range / color / file) ostylowane pod kartę ── */
/* Range slider — customowy track + thumb (akcent zamiast szarej natywnej belki). */
.pv-configurator .pv-range-input {
  -webkit-appearance: none; appearance: none;
  height: 6px; border-radius: 999px; background: var(--pv-line, #e5e7eb);
  accent-color: var(--pv-accent, #1E3A5F);
}
.pv-configurator .pv-range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%; background: var(--pv-accent, #1E3A5F);
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); cursor: pointer; margin-top: -6px;
}
.pv-configurator .pv-range-input::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--pv-accent, #1E3A5F);
  border: 2px solid #fff; cursor: pointer;
}
.pv-configurator .pv-range-input::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; }
.pv-configurator .pv-range-input::-moz-range-track { height: 6px; border-radius: 999px; background: var(--pv-line, #e5e7eb); }

/* Color picker — swatch z zaokrągleniem. */
.pv-configurator .pv-color-picker-input {
  width: 46px; height: 38px; border-radius: 8px; border: 1px solid var(--pv-line, #e5e7eb);
  padding: 3px; cursor: pointer; background: #fff;
}

/* File upload — dropzone + brandowy przycisk (zamiast surowego „Wybierz pliki"). */
.pv-configurator .pv-file-input {
  width: 100%; max-width: 360px; box-sizing: border-box;
  font-size: 13px; color: var(--pv-muted, #6b7280);
  border: 1px dashed var(--pv-line, #cfcfcf); border-radius: 8px; padding: 9px;
  background: var(--pv-surface, #fff); cursor: pointer;
}
.pv-configurator .pv-file-input::file-selector-button {
  margin-right: 10px; padding: 7px 14px; border: 0; border-radius: 6px;
  background: var(--pv-accent, #1E3A5F); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pv-configurator .pv-file-input::-webkit-file-upload-button {
  margin-right: 10px; padding: 7px 14px; border: 0; border-radius: 6px;
  background: var(--pv-accent, #1E3A5F); color: #fff; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pv-configurator .pv-file-label { font-size: 12px; color: var(--pv-muted, #6b7280); margin-top: 6px; }
