/**
 * Nelov Product Configurator - Clean Editorial Minimalist Design
 * Palette: White canvas, #f5f3f3 container borders, clickable boxes in #f5f3f3 with subtle darker borders (#e5e2e2)
 * No drop-shadows (box-shadow: none !important)
 * Left-aligned text in all boxes
 * Slim typography: 'Playfair Display' font-weight 400 for headings, 'Inter' 400/500 for UI
 * Monochrome vector SVG icons
 */

:root {
    /* --- Typography (project fonts) --- */
    --nelov-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --nelov-font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* --- Clean Palette --- */
    --nelov-black: #111111;              /* Jet black for primary buttons, active borders, text */
    --nelov-black-hover: #262626;
    --nelov-dark: #1a1a1a;
    
    --nelov-gold: #9b7c52;               /* Subdued Atelier Gold */
    --nelov-gold-hover: #866a44;
    --nelov-gold-light: #faf8f5;
    
    --nelov-bg-main: #ffffff;            /* Czysta biel tła */
    --nelov-card-bg: #ffffff;
    
    --nelov-box-bg: #f5f3f3;             /* Klikalne boxy */
    --nelov-box-hover-bg: #ebe8e8;
    --nelov-box-border: #e5e2e2;         /* Delikatnie ciemniejszy border klikalnych boxów */
    --nelov-box-border-hover: #d6d2d2;
    
    --nelov-border-light: #f5f3f3;       /* Główne ramki kontenerów i kart */
    --nelov-border-active: #111111;
    
    --nelov-text-main: #111111;          /* Tekst główny */
    --nelov-text-muted: #5e5a56;         /* Tekst drugorzędny */
    /* Kontrast WCAG na #f5f3f3 (L=0.900): #6b655d (L=0.132) = 5.2:1; wczesniej #8a857e = 3.3:1 */
    --nelov-text-subtle: #6b655d;        /* Etykiety i podpowiedzi */
    /* Cena kafelka: #7a5f38 (L=0.127) na #f5f3f3 = 5.4:1; wczesniej #9b7c52 = 3.5:1 */
    --nelov-gold-text: #7a5f38;
    
    --nelov-radius-xs: 2px;
    --nelov-radius-sm: 3px;
    --nelov-radius-md: 4px;

    /* Legacy compatibility aliases */
    --nelov-beige: var(--nelov-box-bg);
    --nelov-gray: var(--nelov-text-muted);
    --nelov-light-gray: var(--nelov-box-bg);
    --nelov-border: var(--nelov-border-light);
    --nelov-radius: var(--nelov-radius-sm);
    --nelov-shadow: none;
}

.nelov-configurator {
    font-family: var(--nelov-font-sans);
    color: var(--nelov-text-main);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-self: stretch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Widoczny fokus klawiatury (nie zmienia wygladu przy kliknieciu myszka) */
.nelov-configurator :focus-visible,
.nelov-drawer-root :focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Natywne radio ukryte (opacity 0): pokaz fokus na kafelku obok */
.nelov-radio-tile input:focus-visible + .nelov-radio-content,
.nelov-match-option-tile input:focus-visible ~ .match-radio-indicator {
    outline: 2px solid #111;
    outline-offset: 2px;
}

/* Wymuszenie braku cieni zgodnie z wytycznymi */
.nelov-configurator,
.nelov-summary-card,
.nelov-drawer-panel,
.nelov-summary-chip,
.nelov-accordion-item,
.nelov-tile,
.nelov-radio-content,
.nelov-match-gateway-card,
.nelov-match-option-tile,
.nelov-btn-customize,
.nelov-btn-drawer-confirm {
    box-shadow: none !important;
}

/* Monochromatyczne ikony wektorowe SVG */
.nelov-svg-icon {
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    color: var(--nelov-text-main);
    flex-shrink: 0;
}

/* Layout strony produktu przy włączonym konfiguratorze */
@media (min-width: 768px) {
    body.nelov-has-configurator div.product div.images {
        max-width: 30%;
    }

    body.nelov-has-configurator div.product div.summary {
        flex: 1 1 auto;
        padding-left: 28px;
    }
}

/* =========================================================
   1. AKORDEON I LISTA ETAPÓW (Accordion & Step List)
   ========================================================= */
.nelov-accordion-item {
    margin-bottom: 10px;
    background: var(--nelov-box-bg) !important;
    border: 1px solid var(--nelov-box-border) !important;
    border-radius: var(--nelov-radius-sm);
    transition: all 0.2s ease;
    overflow: hidden;
}

.nelov-accordion-item:hover {
    background: var(--nelov-box-hover-bg) !important;
    border-color: var(--nelov-box-border-hover) !important;
}

.nelov-accordion-item.is-open {
    background: #ffffff !important;
    border-color: var(--nelov-box-border) !important;
}

.nelov-accordion-header {
    /* reset stylow <button> - wyglad identyczny jak dawny <div> */
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    font: inherit;
    color: inherit;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    background: transparent;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    gap: 12px;
}

.nelov-accordion-item {
    scroll-margin-top: 12px;
    max-width: 100%;
    min-width: 0;
}

.nelov-accordion-header:hover,
.nelov-accordion-header:active {
    color: inherit;
    background: transparent;
}

.nelov-accordion-item.is-open .nelov-accordion-header:hover {
    background: #ffffff;
}

.nelov-accordion-item.is-open .nelov-accordion-header {
    background: #ffffff;
    border-bottom: 1px solid var(--nelov-border-light);
}

.nelov-accordion-header .header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

/* Boks na ikonkę w nagłówku */
.nelov-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    background: #ffffff;
    border: 1px solid var(--nelov-box-border);
    border-radius: var(--nelov-radius-xs);
    color: var(--nelov-text-main);
    flex-shrink: 0;
    line-height: 1;
}

.nelov-section-title {
    font-family: var(--nelov-font-sans);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--nelov-text-main);
    text-transform: uppercase;
    text-align: left;
    min-width: 0;
    overflow-wrap: anywhere;
}

.nelov-accordion-header .header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 55%;
    overflow: hidden;
}

/* Podgląd wyboru w zwiniętym akordeonie */
.nelov-section-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 12px;
    color: var(--nelov-text-muted);
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nelov-section-summary-pill .pill-value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.nelov-section-summary-pill .pill-action {
    color: var(--nelov-text-main);
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.nelov-toggle-icon {
    font-size: 13px;
    line-height: 1;
    color: var(--nelov-text-subtle);
    font-weight: 500;
    flex-shrink: 0;
}

.nelov-accordion-content {
    background: #ffffff;
    padding: 18px 20px 22px;
}

.nelov-section-description {
    font-size: 12.5px;
    color: var(--nelov-text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
    text-align: left;
}

/* =========================================================
   2. SIATKI KAFLI I WYBORÓW (Grids & Selection Tiles)
   ========================================================= */
.nelov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

/* Klikalne kafelki: background #f5f3f3, border #e5e2e2, tekst do lewej */
.nelov-tile {
    position: relative;
    background: var(--nelov-box-bg) !important;
    border: 1px solid var(--nelov-box-border) !important;
    border-radius: var(--nelov-radius-xs);
    padding: 8px 8px 10px;
    cursor: pointer;
    transition: all 0.18s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left !important;
}

.nelov-tile:hover {
    background: var(--nelov-box-hover-bg) !important;
    border-color: var(--nelov-box-border-hover) !important;
}

.nelov-tile.is-selected {
    background: var(--nelov-box-bg) !important;
    border: 1.5px solid var(--nelov-black) !important;
}

.nelov-tile-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 6px;
    background: #ffffff;
    border-radius: 2px;
}

.nelov-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.nelov-tile:hover .nelov-tile-img img {
    transform: scale(1.03);
}

.nelov-tile-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--nelov-text-main);
    margin-bottom: 2px;
    line-height: 1.35;
    text-align: left;
    width: 100%;
}

.nelov-tile-price {
    font-size: 11px;
    color: var(--nelov-gold-text);
    font-weight: 600;
    text-align: left;
    width: 100%;
}

/* Radio Tiles (Format / Wersja Zaproszenia) */
.nelov-type-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.nelov-radio-tile {
    cursor: pointer;
    position: relative;
    text-align: left;
}

.nelov-radio-tile input {
    position: absolute;
    opacity: 0;
}

.nelov-radio-content {
    border: 1px solid var(--nelov-box-border) !important;
    background: var(--nelov-box-bg) !important;
    padding: 14px 14px;
    text-align: left !important;
    border-radius: var(--nelov-radius-xs);
    transition: all 0.18s ease;
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start;
    min-height: 125px;
}

.nelov-radio-tile:hover .nelov-radio-content {
    background: var(--nelov-box-hover-bg) !important;
    border-color: var(--nelov-box-border-hover) !important;
}

.nelov-radio-tile.is-selected .nelov-radio-content,
.nelov-radio-tile input:checked + .nelov-radio-content {
    background: var(--nelov-box-bg) !important;
    border: 1.5px solid var(--nelov-black) !important;
}

.nelov-radio-tile-img {
    margin-bottom: 8px;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.nelov-radio-tile-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.nelov-radio-tile-title {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--nelov-text-main);
    line-height: 1.35;
    text-align: left;
    width: 100%;
}

/* Custom Fields Grid */
.nelov-grid-custom-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

/* Clear Selection */
.nelov-clear-selection {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
    font-size: 11.5px;
    color: var(--nelov-text-subtle);
    cursor: pointer;
    transition: color 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nelov-clear-selection:hover {
    color: var(--nelov-black);
}

/* Text Buttons */
.nelov-text-btn {
    background: none;
    border: none;
    color: var(--nelov-text-main);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    padding: 6px 0;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.nelov-text-btn:hover {
    color: var(--nelov-gold);
}

.nelov-tile.is-disabled {
    cursor: not-allowed !important;
    background: #fbfbfb !important;
    border-color: #ededed !important;
    position: relative;
    opacity: 0.45;
}

.nelov-tile-reason {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--nelov-text-main);
}

.nelov-tile.is-disabled .nelov-tile-img {
    opacity: 0.4;
    filter: grayscale(1);
}

.nelov-tile.is-disabled .nelov-tile-label {
    color: #a3a3a3;
}

/* Restriction Info Banner */
.nelov-restriction-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--nelov-box-bg);
    border: 1px solid var(--nelov-box-border);
    border-left: 3px solid var(--nelov-black);
    border-radius: var(--nelov-radius-xs);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--nelov-text-main);
    text-align: left;
}

.nelov-restriction-banner .restriction-icon {
    color: var(--nelov-text-main);
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 2px;
}

.nelov-restriction-banner .restriction-text {
    flex: 1;
    text-align: left;
}

.nelov-restriction-banner strong {
    color: var(--nelov-text-main);
    font-weight: 600;
}

/* Stan alarmowy po automatycznym resecie wyboru (do nastepnej akcji klienta): czerwony, kontrast AA (#7f1d1d na #fef2f2 ~ 9:1) */
.nelov-restriction-banner.is-alert,
.nelov-reset-notice.is-alert {
    background: #fef2f2;
    border-color: #b91c1c;
    border-left: 4px solid #b91c1c;
    color: #7f1d1d;
}
.nelov-restriction-banner.is-alert .restriction-icon,
.nelov-restriction-banner.is-alert strong { color: #7f1d1d; }

/* Trwaly komunikat po automatycznym resecie wyboru (papier => uszlachetnienie/brzeg) */
.nelov-reset-notice {
    background: var(--nelov-box-bg);
    border: 1px solid var(--nelov-box-border);
    border-left: 3px solid var(--nelov-black);
    border-radius: var(--nelov-radius-xs);
    padding: 12px 16px;
    margin: 12px 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--nelov-text-main);
}

/* Pricing Summary in Inline mode */
.nelov-price-summary {
    margin-top: 20px;
    border-top: 1px solid var(--nelov-border-light);
    padding-top: 14px;
}

.nelov-price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 500;
    color: var(--nelov-text-main);
}

.nelov-loader {
    text-align: center;
    box-sizing: border-box;
    min-height: 560px; /* zbliza wysokosc placeholdera do gotowego widoku (mniejszy skok ukladu) */
    padding: 60px 0;
    color: var(--nelov-text-muted);
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* Custom Fields */
.nelov-custom-fields {
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.nelov-custom-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.nelov-cf-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--nelov-text-main);
    text-align: left;
}

.nelov-cf-required {
    color: #b91c1c;
    font-weight: 600;
}

.nelov-cf-optional {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    text-transform: lowercase;
}

.nelov-cf-description {
    font-size: 12px;
    color: var(--nelov-text-muted);
    margin: 0;
    line-height: 1.4;
    text-align: left;
}

.nelov-custom-field input[type="text"],
.nelov-custom-field input[type="number"],
.nelov-custom-field textarea,
.nelov-custom-field select {
    width: 100%;
    max-width: 480px;
    padding: 10px 12px;
    border: 1px solid var(--nelov-box-border);
    border-radius: var(--nelov-radius-xs);
    font-family: inherit;
    font-size: 13.5px;
    color: var(--nelov-text-main);
    background: #ffffff;
    transition: border-color 0.2s ease;
}

.nelov-custom-field input[type="text"]:focus,
.nelov-custom-field input[type="number"]:focus,
.nelov-custom-field textarea:focus,
.nelov-custom-field select:focus {
    border-color: var(--nelov-black);
}

.nelov-cf-number-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 480px;
}

.nelov-cf-number-wrap input[type="number"] {
    max-width: 140px;
}

.nelov-cf-unit {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--nelov-text-muted);
}

.nelov-cf-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.nelov-cf-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--nelov-text-main);
    text-align: left;
}

.nelov-cf-option input[type="checkbox"],
.nelov-cf-option input[type="radio"] {
    accent-color: var(--nelov-black);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Theme Categories (hierarchical) */
.nelov-theme-main-category {
    margin-bottom: 16px;
    text-align: left;
}

.nelov-theme-category-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--nelov-text-main);
    margin: 16px 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-align: left;
}

.nelov-theme-sub-category {
    margin-bottom: 12px;
    text-align: left;
}

.nelov-theme-subcategory-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--nelov-text-muted);
    margin: 12px 0 8px;
    padding-left: 8px;
    border-left: 2px solid var(--nelov-black);
    text-align: left;
}

/* Wax Section */
.nelov-wax-info {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: var(--nelov-box-bg);
    border-radius: var(--nelov-radius-xs);
    border: 1px solid var(--nelov-box-border);
    text-align: left;
}

.nelov-wax-info-title {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--nelov-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nelov-wax-info-row {
    margin: 3px 0;
    font-size: 12.5px;
    color: var(--nelov-text-muted);
}

.nelov-wax-info-note {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: var(--nelov-text-subtle);
}

.nelov-wax-section-title {
    font-size: 12px;
    font-weight: 600;
    margin: 16px 0 10px;
    color: var(--nelov-text-main);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.nelov-wax-radio {
    margin-bottom: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Kafelki Brak / Chce laki: bez zdjecia kompaktowy tekstowy, ze zdjeciem miniatura 4:3 */
.nelov-wax-choice {
    justify-content: center;
}
.nelov-wax-choice:not(.has-img) {
    min-height: 52px;
    padding: 12px 16px;
    align-items: center !important;
    text-align: center !important;
}
.nelov-wax-choice:not(.has-img) .nelov-tile-label {
    margin: 0;
    font-size: 13px;
    text-align: center;
}
.nelov-wax-choice .nelov-tile-img { aspect-ratio: 4 / 3; }
/* Kafelki zwyklych list (papier, uszlachetnienie, brzeg, koperta, kolor/wzor laku, wymiar, motyw) bez zdjecia: tekst wysrodkowany w kafelku
   (klasa is-noimg ustawiana w szablonie przez Alpine), zeby nie wisial przy gornej krawedzi wysokiego kafelka obok kafelkow ze zdjeciem. */
.nelov-tile.is-noimg {
    justify-content: center;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 10px;
}
.nelov-tile.is-noimg .nelov-tile-label,
.nelov-tile.is-noimg .nelov-tile-price,
.nelov-tile.is-noimg .nelov-tile-reason {
    text-align: center;
}
.nelov-tile.is-noimg .nelov-tile-label {
    font-size: 13px;
    margin-bottom: 4px;
}

/* Kafelki opcji pol (np. 'Logo firmy', 'Personalizacja danymi gosci + logo') bez zdjecia: tekst wysrodkowany w kafelku
   (jak wzory laku bez zdjecia), zamiast przy gornej krawedzi w wysokim kafelku sasiadujacym z kafelkami ze zdjeciem. */
.nelov-cf-tile:not(.has-img) {
    justify-content: center;
    align-items: center !important;
    text-align: center !important;
    padding: 12px 10px;
}
.nelov-cf-tile:not(.has-img) .nelov-tile-label,
.nelov-cf-tile:not(.has-img) .nelov-tile-price,
.nelov-cf-tile:not(.has-img) .nelov-cf-disabled-reason {
    text-align: center;
}
.nelov-cf-tile:not(.has-img) .nelov-tile-label {
    font-size: 13px;
    margin-bottom: 4px;
}

.nelov-wax-choice .nelov-tile-img img { display: block; }

.nelov-dimtype-radio {
    margin-bottom: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.nelov-dimtype-choice {
    justify-content: center;
    min-height: 52px;
    padding: 12px 16px;
    align-items: center !important;
    text-align: center !important;
}
.nelov-dimtype-choice .nelov-tile-label {
    margin: 0;
    font-size: 13px;
    text-align: center;
}
.nelov-cf-notice {
    line-height: 1.6;
}
.nelov-cf-notice.is-long {
    max-height: 320px;
    overflow-y: auto;
}

.nelov-wax-grid {
    margin-bottom: 16px;
}

/* Flat Fees / Language Fee */
.nelov-checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px 0;
    text-align: left;
}

.nelov-checkbox-container .label-text {
    font-weight: 500;
    font-size: 13px;
    color: var(--nelov-text-main);
}

.nelov-flat-fee-price {
    color: var(--nelov-gold);
    margin-left: auto;
    font-weight: 600;
}

/* =========================================================
   3. KROK 1: DOPASOWANIE PRODUKTU (Match Gateway Card)
   ========================================================= */
.nelov-match-gateway-card {
    background: #ffffff !important;
    border: 1px solid var(--nelov-border-light) !important;
    border-radius: var(--nelov-radius-sm);
    padding: 22px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.nelov-match-header {
    margin-bottom: 18px;
    text-align: left;
}

.nelov-match-step-badge {
    display: inline-block;
    background: var(--nelov-black);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: var(--nelov-radius-xs);
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.nelov-match-title {
    font-family: var(--nelov-font-serif);
    font-size: 19px;
    font-weight: 400 !important;
    color: var(--nelov-text-main);
    margin: 4px 0 6px 0;
    line-height: 1.3;
    letter-spacing: -0.2px;
    text-align: left;
}

.nelov-match-subtitle {
    font-size: 12.5px;
    color: var(--nelov-text-muted);
    margin: 0;
    line-height: 1.45;
    text-align: left;
}

.nelov-match-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 8px;
}

@media (max-width: 640px) {
    .nelov-match-options-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.nelov-match-option-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--nelov-box-bg) !important;
    border: 1px solid var(--nelov-box-border) !important;
    border-radius: var(--nelov-radius-xs);
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    text-align: left;
}

.nelov-match-option-tile input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.nelov-match-option-tile:hover {
    background: var(--nelov-box-hover-bg) !important;
    border-color: var(--nelov-box-border-hover) !important;
}

.nelov-match-option-tile.is-selected {
    background: var(--nelov-box-bg) !important;
    border: 1.5px solid var(--nelov-black) !important;
}

.match-radio-indicator {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--nelov-box-border-hover);
    background: #ffffff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.nelov-match-option-tile.is-selected .match-radio-indicator {
    border-color: var(--nelov-black);
    background: var(--nelov-black);
}

.nelov-match-option-tile.is-selected .match-radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.match-option-content {
    flex: 1;
    text-align: left;
}

.match-option-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--nelov-text-main);
    line-height: 1.4;
    text-align: left;
}

.nelov-match-details-panel {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--nelov-border-light);
    text-align: left;
}

.nelov-match-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--nelov-radius-xs);
    font-size: 12.5px;
    line-height: 1.5;
    margin-bottom: 14px;
    text-align: left;
}

.nelov-match-notice svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.nelov-match-notice.alert-info {
    background: var(--nelov-box-bg);
    border: 1px solid var(--nelov-box-border);
    color: var(--nelov-text-main);
}

.nelov-match-notice.alert-info svg {
    stroke: var(--nelov-text-main);
}

.nelov-match-notice.alert-neutral {
    background: var(--nelov-box-bg);
    border: 1px solid var(--nelov-box-border);
    color: var(--nelov-text-muted);
}

.nelov-match-notice.alert-neutral svg {
    stroke: var(--nelov-text-subtle);
}

.nelov-match-input-group {
    background: var(--nelov-box-bg) !important;
    border: 1px solid var(--nelov-box-border) !important;
    border-radius: var(--nelov-radius-xs);
    padding: 14px 16px;
    text-align: left;
}

.nelov-input-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--nelov-text-main);
    margin-bottom: 6px;
    text-align: left;
}

.nelov-input-label .required-star {
    color: #b91c1c;
    font-size: 13px;
}

.nelov-input-text {
    width: 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    font-family: inherit;
    border: 1px solid var(--nelov-box-border);
    border-radius: var(--nelov-radius-xs);
    background: #ffffff;
    color: var(--nelov-text-main);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.nelov-input-text:focus {
    border-color: var(--nelov-black);
}

.nelov-input-text.has-error {
    border-color: #b91c1c;
    background: #fff5f5;
}

.nelov-input-hint {
    display: block;
    font-size: 11.5px;
    color: var(--nelov-text-subtle);
    margin-top: 6px;
    line-height: 1.35;
    text-align: left;
}

/* =========================================================
   4. KARTA PODSUMOWANIA NA KARCIE PRODUKTU (Summary Card)
   ========================================================= */
.nelov-summary-card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    background: #ffffff !important;
    border: 1px solid var(--nelov-border-light) !important;
    border-radius: var(--nelov-radius-sm);
    padding: 22px 24px;
    margin-bottom: 24px;
    text-align: left;
}

.nelov-summary-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--nelov-border-light);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.nelov-summary-title-group {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.nelov-summary-badge {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--nelov-text-subtle);
    font-weight: 600;
}

/* Twoja konfiguracja cieńsze niż 600 (font-weight: 400) */
.nelov-summary-heading {
    margin: 0;
    font-family: var(--nelov-font-serif);
    font-size: 21px;
    font-weight: 400 !important;
    color: var(--nelov-text-main);
    letter-spacing: -0.2px;
    text-align: left;
}

.nelov-btn-customize {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--nelov-black);
    color: #ffffff !important;
    border: 1px solid var(--nelov-black);
    border-radius: var(--nelov-radius-xs);
    padding: 8px 16px;
    min-height: 48px;
    justify-content: center;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.nelov-btn-customize:hover {
    background: var(--nelov-black-hover);
    border-color: var(--nelov-black-hover);
}

/* Siatka pigułek konfiguracji (Summary Chips) */
.nelov-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

/* Klikalne boksy w podsumowaniu: background #f5f3f3, border #e5e2e2, tekst do lewej */
.nelov-summary-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--nelov-box-bg) !important;
    border: 1px solid var(--nelov-box-border) !important;
    border-radius: var(--nelov-radius-xs);
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left !important;
    /* reset <button> */
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    text-transform: none;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.nelov-summary-chip:hover {
    background: var(--nelov-box-hover-bg) !important;
    border-color: var(--nelov-box-border-hover) !important;
}

.nelov-summary-chip .chip-icon {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    color: var(--nelov-text-main);
}

.nelov-summary-chip .chip-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-items: flex-start !important;
    text-align: left !important;
}

.nelov-summary-chip .chip-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--nelov-text-subtle);
    font-weight: 600;
    text-align: left;
}

.nelov-summary-chip .chip-value {
    font-size: 12.5px;
    color: var(--nelov-text-main);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
    width: 100%;
}

.nelov-summary-chip .chip-action {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--nelov-text-main);
    flex-shrink: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nelov-summary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--nelov-border-light);
}

.nelov-summary-price-line {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--nelov-text-subtle);
}

.nelov-summary-price-line .price-line-value {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--nelov-text-main);
}

/* =========================================================
   5. PANEL BOCZNY (DRAWER OFF-CANVAS)
   ========================================================= */
body.nelov-drawer-active {
    overflow: hidden !important;
}

.nelov-drawer-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* stopka nie wypada pod pasek przegladarki na telefonie */
    z-index: 999999;
    pointer-events: none;
}

.nelov-drawer-root[style*="display: none"] {
    display: none !important;
}

.nelov-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.4);
    backdrop-filter: blur(2px);
    pointer-events: auto;
    z-index: 1000;
    transition: opacity 0.25s ease;
}

.nelov-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 620px;
    max-width: 95vw;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    border-left: 1px solid var(--nelov-border-light);
    z-index: 1001;
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Nagłówek Panelu */
.nelov-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--nelov-border-light);
    background: #ffffff;
    flex-shrink: 0;
}

.drawer-header-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.drawer-pretitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: var(--nelov-text-subtle);
    font-weight: 600;
    text-align: left;
}

/* Tytuł drawera cieńszy niż 600 */
.drawer-title {
    margin: 4px 0 2px 0;
    font-family: var(--nelov-font-serif);
    font-size: 30px;
    font-weight: 400 !important;
    color: var(--nelov-text-main);
    letter-spacing: -0.4px;
    line-height: 1.15;
    text-align: left;
}

.nelov-drawer-close-btn {
    background: #ffffff;
    border: 1px solid var(--nelov-box-border);
    border-radius: var(--nelov-radius-xs);
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--nelov-text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.nelov-drawer-close-btn:hover {
    background: var(--nelov-box-bg);
    border-color: var(--nelov-black);
}

.nelov-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 32px;
    -webkit-overflow-scrolling: touch;
    background: #ffffff;
}

/* Stopka Panelu */
.nelov-drawer-footer {
    padding: 20px 32px 24px;
    border-top: 1px solid var(--nelov-border-light);
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.drawer-footer-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.drawer-footer-pricing .footer-price-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.drawer-footer-pricing .footer-price-row .label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--nelov-text-subtle);
    text-align: left;
}

.drawer-footer-pricing .footer-price-row strong,
.drawer-footer-pricing .footer-price-row .value {
    font-family: var(--nelov-font-serif);
    font-size: 26px;
    color: var(--nelov-text-main);
    font-weight: 400 !important;
    letter-spacing: -0.4px;
    line-height: 1.1;
    text-align: left;
}

.drawer-footer-pricing .footer-extra-row {
    font-size: 11.5px;
    color: var(--nelov-text-muted);
    font-weight: 500;
    letter-spacing: 0.4px;
    text-align: left;
}

.drawer-footer-pricing .footer-extra-row .value {
    color: var(--nelov-gold);
    font-weight: 600;
}

.nelov-btn-drawer-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--nelov-black);
    color: #ffffff;
    border: 1px solid var(--nelov-black);
    border-radius: var(--nelov-radius-xs);
    padding: 14px 28px;
    font-family: var(--nelov-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nelov-btn-drawer-confirm:hover {
    background: var(--nelov-black-hover);
    border-color: var(--nelov-black-hover);
}

/* Walidacja Notice */
.nelov-validation-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 3px solid #b91c1c;
    border-radius: var(--nelov-radius-xs);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #991b1b;
    text-align: left;
}

.nelov-validation-notice svg {
    color: #b91c1c;
    flex-shrink: 0;
}

/* Podsumowanie bledow walidacji: zawsze widoczne na gorze przewijanej tresci szuflady */
.nelov-validation-summary {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-left: 3px solid #b91c1c;
    border-radius: var(--nelov-radius-xs);
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.4;
    color: #991b1b;
    text-align: left;
}

.nelov-drawer-body .nelov-validation-summary {
    position: sticky;
    top: 0;
    z-index: 5;
    max-height: 40vh;
    overflow-y: auto;
}

.nelov-validation-summary:focus {
    outline: none;
}

.nelov-validation-summary:focus-visible {
    outline: 2px solid #111;
    outline-offset: 2px;
}

.validation-summary-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.validation-summary-head svg {
    color: #b91c1c;
    flex-shrink: 0;
}

.validation-summary-list {
    margin: 8px 0 0 28px;
    padding: 0;
}

.validation-summary-list li {
    margin: 0 0 4px;
}

.nelov-validation-link {
    -webkit-appearance: none;
    appearance: none;
    background: none;
    border: 0;
    padding: 4px 0;
    margin: 0;
    min-height: 24px;
    font: inherit;
    color: #991b1b;
    text-align: left;
    text-decoration: underline;
    cursor: pointer;
}

.nelov-validation-link:hover {
    color: #7f1d1d;
    background: none;
}

.nelov-match-error {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.4;
    color: #991b1b;
    text-align: left;
}

/* Natywne selecty w szufladzie: cel dotyku min. 44 px */
.nelov-drawer-panel select,
.nelov-inline-panel select {
    min-height: 44px;
}

/* Responsywność */
@media (max-width: 640px) {
    .nelov-loader {
        min-height: 420px;
    }

    .nelov-configurator {
        padding-left: 12px;
        padding-right: 12px;
    }

    .nelov-summary-card {
        padding: 18px 14px;
    }

    .nelov-accordion-header {
        padding: 12px;
        min-height: 44px;
    }

    /* dluzsze podsumowanie w kafelku: do 2 linii zamiast ucinania */
    .nelov-summary-chip .chip-value {
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        overflow-wrap: anywhere;
    }

    .nelov-accordion-content {
        padding: 14px 12px 18px;
    }

    .nelov-drawer-body {
        overflow-x: hidden;
    }

    .nelov-accordion-header .header-right {
        max-width: 48%;
    }

    .nelov-section-summary-pill .pill-action {
        display: none;
    }

    .nelov-drawer-panel {
        width: 100vw;
        max-width: 100vw;
    }

    .nelov-drawer-header {
        padding: 14px 16px;
    }

    .drawer-title {
        font-size: 24px;
    }

    .nelov-drawer-body {
        padding: 16px;
    }

    /* Kompaktowa stopka: max ok. 30% wysokosci ekranu */
    .nelov-drawer-footer {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        gap: 8px;
        max-height: 34vh;
        overflow-y: auto;
    }

    .drawer-footer-pricing {
        text-align: left;
        align-items: flex-start;
    }

    .drawer-footer-pricing .footer-price-row {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
    }

    .drawer-footer-pricing .footer-price-row .label {
        display: none;
    }

    .drawer-footer-pricing .footer-price-row strong,
    .drawer-footer-pricing .footer-price-row .value {
        font-size: 20px;
    }

    .nelov-qty-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .nelov-chips-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nelov-section-summary-pill {
        max-width: 110px;
    }
}

.nelov-radio-tile.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Lak: stan niekompletny (kolor bez wzoru lub odwrotnie) */
.nelov-wax-incomplete-notice {
    border-left-color: #b45309;
    margin-bottom: 12px;
}

.nelov-wax-incomplete-notice.is-hint {
    border-left-color: var(--nelov-box-border);
}

.nelov-wax-incomplete-notice.is-attention {
    border-color: #b45309;
}

.nelov-summary-chip.is-incomplete .chip-value,
.nelov-section-summary-pill.is-incomplete .pill-value {
    color: #b45309;
    font-weight: 600;
}

.nelov-summary-chip.is-incomplete {
    border-color: #b45309;
}

/* Oplaty stale (jednorazowe) */
.nelov-fees-list {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f5f3f3;
    font-size: 12px;
    line-height: 1.4;
}
.nelov-fees-note {
    color: #777;
    font-size: 11px;
    margin-bottom: 4px;
}
.nelov-fees-row {
    display: flex;
    gap: 8px;
    padding: 2px 0;
}
.nelov-fees-amount {
    flex: 0 0 auto;
    min-width: 72px;
    font-weight: 600;
    white-space: nowrap;
}
.nelov-fees-label {
    flex: 1 1 auto;
}
.nelov-fees-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #e3dfdf;
    font-size: 13px;
}
.nelov-fees-total small {
    color: #777;
    font-size: 11px;
}

/* Opcje pol niestandardowych niedostepne dla wybranej koperty */
.nelov-cf-option.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.nelov-cf-option.is-disabled input {
    cursor: not-allowed;
}

.nelov-cf-disabled-reason {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--nelov-text-main);
}

.nelov-cf-option .nelov-cf-disabled-reason {
    flex-basis: 100%;
}

.nelov-cf-env-banner {
    margin-top: 8px;
    margin-bottom: 0;
}

.nelov-cf-env-banner { overflow-wrap: anywhere; }
.nelov-cf-env-banner .nelov-cf-reason-group + .nelov-cf-reason-group { margin-top: 8px; }
.nelov-cf-env-banner .nelov-cf-reason-lead,
.nelov-cf-env-banner .nelov-cf-reason-hint { margin: 0; }
.nelov-cf-env-banner .nelov-cf-reason-list { margin: 4px 0 0; padding-left: 18px; list-style: disc; }
.nelov-cf-env-banner .nelov-cf-reason-hint { margin-top: 4px; }

.nelov-cf-env-notice {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--nelov-text-main);
}

/* =========================================================
   KOPERTY: zwijana lista, filtry kolorow, gesta siatka
   ========================================================= */
.nelov-accordion-item { scroll-margin-top: 70px; }
.nelov-env-wrap { min-width: 0; }
.nelov-env-photo { font-size: 12px; color: #6b6b6b; margin: -6px 0 10px; }
.nelov-env-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 6px; }
.nelov-env-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.nelov-env-filters .nelov-env-swatches { flex-basis: 100%; } /* kolory zawsze w gornej linii, faktury i "Wyczysc" nizej */
.nelov-env-swatch {
    position: relative; width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 4px;
    border: 1px solid #e5e2e2; cursor: pointer; box-sizing: border-box;
}
.nelov-env-swatch.is-active { border: 1.5px solid #111; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #111; }
.nelov-env-swatch.is-active::after { content: "\2713"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; line-height: 1; }
.nelov-env-swatch:focus-visible, .nelov-env-clear:focus-visible, .nelov-env-toggle:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.nelov-env-textures { display: flex; flex-wrap: wrap; gap: 6px; }
.nelov-env-texture {
    min-height: 32px; padding: 4px 12px; background: #fff; border: 1px solid #e5e2e2; border-radius: 16px;
    font-size: 12px; cursor: pointer; color: #111; box-sizing: border-box;
}
.nelov-env-texture.is-active { border: 1.5px solid #111; background: #111; color: #fff; }
.nelov-env-texture:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.nelov-tl-search { margin: 0 0 8px; }
.nelov-env-clear { background: none; border: 0; padding: 4px 2px; font-size: 12px; text-decoration: underline; cursor: pointer; color: var(--nelov-text-main); }
.nelov-env-count { font-size: 12px; color: #6b6b6b; margin: 0 0 10px; }
.nelov-env-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 10px; }
.nelov-grid-envelopes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.nelov-grid-envelopes .nelov-tile { min-width: 0; padding: 6px 6px 8px; }
.nelov-grid-envelopes .nelov-tile-img { aspect-ratio: 1 / 1; }
.nelov-grid-envelopes .nelov-tile-img img { aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.nelov-env-name {
    min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow-wrap: break-word; word-break: normal; hyphens: auto; font-size: 12px;
}
.nelov-env-badge { font-size: 10.5px; font-weight: 600; color: var(--nelov-gold-text); width: 100%; }
.nelov-env-toggle {
    display: block; margin: 12px auto 0; padding: 9px 18px; background: #fff; border: 1px solid #111;
    border-radius: 4px; font-size: 13px; cursor: pointer; color: #111;
}
@media (max-width: 900px) { .nelov-grid-envelopes { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 480px) {
    .nelov-grid-envelopes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .nelov-env-swatch { width: 34px; height: 34px; min-width: 34px; }
}
@media (max-width: 340px) { .nelov-grid-envelopes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Przelacznik "Bez koperty" i blok wybranej koperty */
.nelov-env-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 12px; padding: 0 0 10px; border-bottom: 1px solid #e5e2e2; }
.nelov-env-bar .nelov-env-selected { margin: 0; flex: 1 1 220px; min-width: 0; }
.nelov-env-none { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; margin: 0 0 0 auto; padding: 4px 0; background: none; border: 0; cursor: pointer; text-align: left; color: var(--nelov-text-main); font: inherit; }
.nelov-env-none-label { font-size: 13px; font-weight: 600; color: #111; }
.nelov-env-none-discount { font-size: 12px; color: #6b6660; white-space: nowrap; }
.nelov-env-none-track { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 11px; background: #cfcac4; transition: background .2s; }
.nelov-env-none-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nelov-env-none[aria-checked="true"] .nelov-env-none-track { background: #111; }
.nelov-env-none[aria-checked="true"] .nelov-env-none-track::after { transform: translateX(18px); }
.nelov-env-none:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
.nelov-env-selected { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 12px; font-size: 13px; }
.nelov-env-selected-title { color: #6b6b6b; }
.nelov-env-selected img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e2e2; display: block; }
.nelov-env-selected-name { font-weight: 600; color: #111; }
.nelov-env-selected-price { font-size: 12px; color: var(--nelov-gold-text); }
.nelov-env-list.is-disabled { opacity: .45; pointer-events: none; }
.nelov-env-disabled-note { font-size: 12.5px; color: #6b6b6b; margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .nelov-env-none-track, .nelov-env-none-track::after { transition: none; } }


/* =========================================================
   6. STOPKA SZUFLADY: ilosc, Dodaj do koszyka, Gotowe
   ========================================================= */
.nelov-footer-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.nelov-qty-stepper {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.nelov-qty-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: var(--nelov-text-subtle);
}

.nelov-qty-controls {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--nelov-box-border);
    border-radius: var(--nelov-radius-xs);
    background: #ffffff;
}

.nelov-qty-btn {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nelov-text-main);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.nelov-qty-btn:hover {
    background: var(--nelov-box-bg);
}

.nelov-qty-input {
    -moz-appearance: textfield;
    appearance: textfield;
    box-sizing: border-box;
    width: 52px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-left: 1px solid var(--nelov-box-border);
    border-right: 1px solid var(--nelov-box-border);
    border-radius: 0;
    background: #ffffff;
    color: var(--nelov-text-main);
    text-align: center;
    font-size: 16px; /* 16px: iOS nie przybliza strony przy fokusie */
}

.nelov-qty-input::-webkit-outer-spin-button,
.nelov-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.nelov-btn-drawer-addtocart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 150px;
    min-height: 48px;
    box-sizing: border-box;
    padding: 12px 18px;
    background: var(--nelov-black);
    color: #ffffff;
    border: 1px solid var(--nelov-black);
    border-radius: var(--nelov-radius-xs);
    font-family: var(--nelov-font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
}

.nelov-btn-drawer-addtocart:hover:not(:disabled) {
    background: var(--nelov-black-hover);
    border-color: var(--nelov-black-hover);
}

.nelov-btn-drawer-addtocart:disabled,
.nelov-sticky-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Gotowe: przycisk drugorzedny */
.nelov-footer-actions .nelov-btn-drawer-confirm {
    flex: 0 0 auto;
    min-height: 48px;
    padding: 12px 18px;
    background: #ffffff;
    color: var(--nelov-text-main);
    border: 1px solid var(--nelov-text-main);
}

.nelov-footer-actions .nelov-btn-drawer-confirm:hover {
    background: var(--nelov-box-bg);
    border-color: var(--nelov-text-main);
}

/* Oplaty jednorazowe zwijane w stopce */
.nelov-fees-compact {
    margin-top: 4px;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
}

.nelov-fees-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--nelov-text-main);
    font: inherit;
    font-size: 12px;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.nelov-fees-compact > div[id="nelov-fees-details"] {
    max-height: 20vh;
    overflow-y: auto;
}

.nelov-drawer-footer .drawer-footer-pricing > .nelov-fees-total {
    margin-top: 2px;
    padding-top: 4px;
}

.nelov-qty-min {
    flex-basis: 100%;
    font-size: 11px;
    color: #777;
    line-height: 1.2;
}

/* =========================================================
   7. PODPOWIEDZ POD PRZYCISKIEM STRONY + PASEK NA TELEFONIE
   ========================================================= */
.nelov-cart-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #777;
}

.nelov-cart-hint[hidden] {
    display: none;
}

.nelov-sticky-bar {
    display: none;
}

@media (max-width: 768px) {
    .nelov-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9990; /* ponizej szuflady (999999) */
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        box-sizing: border-box;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border-top: 1px solid var(--nelov-border-light);
    }

    .nelov-sticky-bar[style*="display: none"] {
        display: none !important;
    }

    body.nelov-drawer-active .nelov-sticky-bar {
        display: none !important;
    }

    .nelov-sticky-price {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.2;
    }

    .nelov-sticky-price strong {
        font-family: var(--nelov-font-serif);
        font-size: 18px;
        font-weight: 400;
        color: var(--nelov-text-main);
        white-space: nowrap;
    }

    .nelov-sticky-price small {
        font-size: 14px;
        color: var(--nelov-text-muted);
    }

    .nelov-sticky-btn {
        flex: 0 0 auto;
        min-width: 48px;
        min-height: 48px;
        padding: 10px 20px;
        background: var(--nelov-black);
        color: #ffffff;
        border: 1px solid var(--nelov-black);
        border-radius: var(--nelov-radius-xs);
        font-family: var(--nelov-font-sans);
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.2px;
        text-transform: uppercase;
        cursor: pointer;
        box-shadow: none !important;
    }

    /* Pasek nie zaslania tresci strony */
    body.nelov-has-sticky-bar {
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    }
}

/* =========================================================
   LUPA: powiekszanie zdjec na kafelkach
   ========================================================= */
.nelov-tile-wrap {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
}
.nelov-tile-wrap > .nelov-tile-reason {
    flex-basis: 100%;
}
.nelov-tile-wrap > .nelov-tile {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}
/* wykrzyknik na wybranym papierze (lewy gorny rog; lupa jest po prawej), obszar dotyku 44x44 */
.nelov-paper-warn {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #f59e0b;
    color: #111;
    font: 700 14px/22px sans-serif;
    text-align: center;
    cursor: pointer;
}
.nelov-paper-warn::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.nelov-paper-warn:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
/* puls przez 5 s po pojawieniu sie (nowy przycisk przy kazdym wyborze papieru), zeby bylo widac, ze mozna kliknac */
.nelov-paper-warn { animation: nelov-paper-warn-pulse 1s ease-out 5; }
@keyframes nelov-paper-warn-pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(245, 158, 11, .75); }
    40% { transform: scale(1.2); }
    100% { transform: scale(1); box-shadow: 0 0 0 12px rgba(245, 158, 11, 0); }
}
@media (prefers-reduced-motion: reduce) { .nelov-paper-warn { animation: none; } }
.nelov-paper-project-notice { margin-bottom: 10px; border-left-color: #f59e0b; }
.nelov-paper-project-notice.is-flash { background: #fffbeb; border-color: #f59e0b; }

.nelov-zoom-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e5e2e2;
    border-radius: 50%;
    color: #111111;
    cursor: zoom-in;
    line-height: 1;
}
/* obszar dotyku 40x40 przesuniety w rog kafelka (nie nachodzi na reszte kafelka) */
.nelov-zoom-btn::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 40px;
    height: 40px;
}
.nelov-zoom-btn:hover { background: #ffffff; border-color: #111111; }
.nelov-zoom-btn:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
@media (max-width: 640px) {
    .nelov-zoom-btn { width: 26px; height: 26px; }
}
/* dotyk: obszar 44x44 wokol ikony, wyglad bez zmian */
@media (pointer: coarse), (max-width: 640px) {
    .nelov-zoom-btn::after { top: 50%; left: 50%; right: auto; width: 44px; height: 44px; transform: translate(-50%, -50%); }
}

.nelov-zoom {
    position: fixed;
    inset: 0;
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}
.nelov-zoom[style*="display: none"] { display: none !important; }
body.nelov-zoom-active { overflow: hidden !important; }
.nelov-zoom-figure {
    margin: 0;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 12px;
    border-radius: 2px;
}
.nelov-zoom-img {
    display: block;
    max-width: 90vw;
    max-height: 80vh;
    max-height: 80dvh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.nelov-zoom-caption {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #111111;
    text-align: center;
}
.nelov-zoom-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #e5e2e2;
    border-radius: 50%;
    color: #111111;
    cursor: pointer;
}
.nelov-zoom-pick {
    margin-top: 12px;
    min-height: 44px;
    padding: 0 24px;
    background: #111111;
    border: 1px solid #111111;
    border-radius: 2px;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
}
.nelov-zoom-pick:disabled { background: #f3f1f1; border-color: #e5e2e2; color: #6b6b6b; cursor: default; }
.nelov-zoom-pick:focus-visible { outline: 2px solid #111111; outline-offset: 2px; }
.nelov-zoom-close:hover { border-color: #111111; }
.nelov-zoom-close:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; box-shadow: 0 0 0 4px #111111; }
@media (prefers-reduced-motion: no-preference) {
    .nelov-zoom { animation: nelov-zoom-fade 0.18s ease-out; }
    .nelov-zoom-figure { animation: nelov-zoom-pop 0.2s ease-out; }
}
@keyframes nelov-zoom-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes nelov-zoom-pop { from { transform: scale(0.97); } to { transform: scale(1); } }

/* =========================================================
   8. LOADER, PODSUMOWANIE KOSZTOW, KOMPAKTOWA SZUFLADA
   ========================================================= */
.nelov-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
}
.nelov-loader-spinner {
    display: block;
    width: 30px;
    height: 30px;
    box-sizing: border-box;
    border: 3px solid #e5e2e2;
    border-top-color: #111111;
    border-radius: 50%;
}
.nelov-loader-text {
    color: var(--nelov-text-muted);
}
.nelov-loader-skeleton {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
}
.nelov-skel-bar {
    display: block;
    width: 100%;
    min-height: 56px;
    background: #efecec;
}
@media (prefers-reduced-motion: no-preference) {
    .nelov-loader-spinner { animation: nelov-spin 0.8s linear infinite; }
    .nelov-skel-bar { animation: nelov-skel-pulse 1.4s ease-in-out infinite; }
}
@keyframes nelov-spin { to { transform: rotate(360deg); } }
@keyframes nelov-skel-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.nelov-cost-summary {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #e5e2e2;
    font-size: 14px;
    color: var(--nelov-text-main);
}
.nelov-cost-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 3px 0;
}
.nelov-cost-row > span:last-child,
.nelov-cost-row > strong { white-space: nowrap; text-align: right; }
.nelov-cost-total {
    margin-top: 4px;
    padding-top: 6px;
    font-weight: 700;
}
.nelov-cost-total strong { font-weight: 700; }
.nelov-cost-compact {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 12px;
}
.nelov-cost-compact .nelov-cost-row { padding: 1px 0; }

/* Szuflada: nizsze naglowki akordeonow */
.nelov-drawer-root .nelov-accordion-header {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 44px;
}

/* Szuflada: przyciski w jednym rzedzie */
.nelov-footer-actions { flex-wrap: nowrap; }
.nelov-footer-actions .nelov-btn-drawer-addtocart {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.6px;
    white-space: nowrap;
}
.nelov-footer-actions .nelov-btn-drawer-confirm {
    min-height: 44px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .nelov-footer-actions { gap: 6px; }
    .nelov-footer-actions .nelov-btn-drawer-addtocart,
    .nelov-footer-actions .nelov-btn-drawer-confirm { padding: 0 10px; font-size: 12.5px; letter-spacing: 0.2px; }
    .nelov-footer-actions .nelov-qty-btn { min-width: 44px; }
    .nelov-footer-actions .nelov-qty-input { width: 40px; }
}

/* Stopka szuflady na wąskich ekranach: ilość w pierwszym rzędzie, przyciski w drugim */
@media (max-width: 640px) {
    .nelov-footer-actions { flex-wrap: wrap; align-items: center; row-gap: 8px; }
    .nelov-footer-actions .nelov-qty-stepper { flex: 1 1 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .nelov-footer-actions .nelov-btn-drawer-addtocart { flex: 1 1 0; min-width: 0; }
    .nelov-footer-actions .nelov-btn-drawer-confirm { flex: 0 0 auto; }
}

/* Blok kosztów: pozycje opłat jednorazowych */
.nelov-cost-sub { padding-left: 14px; font-size: 13px; color: #555; }
.nelov-cost-sub span:last-child { white-space: nowrap; }
.nelov-cost-toggle { margin-left: 8px; padding: 0; background: none; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-size: 12px; color: #555; cursor: pointer; }

/* Motyw graficzny: wyszukiwarka */
.nelov-theme-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 8px; }
.nelov-theme-search { position: relative; flex: 1 1 240px; min-width: 0; }
.nelov-theme-search-input { width: 100%; box-sizing: border-box; padding: 9px 34px 9px 12px; border: 1px solid #cfcac4; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #111; }
.nelov-theme-search-input:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.nelov-theme-search-clear { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: #6b6b6b; }
.nelov-theme-search-clear:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.nelov-theme-cat { flex: 0 1 200px; max-width: 100%; padding: 9px 10px; border: 1px solid #cfcac4; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; }

/* Tekst informacyjny nad polami niestandardowymi: mniejszy, spokojniejszy */
.nelov-wax-info { font-size: 13px; line-height: 1.5; color: #444; padding: 10px 14px; }

/* F7: cena z serwera - przyciemnienie podczas liczenia (bez zmiany ukladu), znacznik przy bledzie sieci */
.drawer-footer-pricing.is-price-loading,
.nelov-sticky-price.is-price-loading { opacity: .6; transition: opacity .15s; }
.drawer-footer-pricing.is-price-stale strong::after,
.nelov-sticky-price.is-price-stale strong::after { content: " *"; color: #b45309; }

/* Rabat WDR: przekreslona cena przed rabatem i etykieta */
.nelov-price-before { color: #777; font-weight: 400; margin-right: 6px; }
.nelov-price-discount-label { display: block; color: #777; font-size: 12px; }

/* Probki (sample_slots): wiersze slotow i wspolny panel wyboru wzoru */
.nelov-sample { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nelov-sample select, .nelov-sample .nelov-sample-input { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 10px; border: 1px solid #cfcac4; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #111; }
.nelov-sample-count, .nelov-sample-env { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.nelov-sample-slot { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid #e5e2e2; border-radius: 6px; background: #faf9f9; min-width: 0; }
.nelov-sample-slot-title { font-size: 13px; font-weight: 600; }
.nelov-sample-pick { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nelov-sample-pick-btn { flex: 1 1 auto; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid #cfcac4; border-radius: 6px; background: #fff; color: #111; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.nelov-sample-pick-btn.is-empty { padding-left: 12px; color: #555; border-style: dashed; }
.nelov-sample-pick-btn:focus-visible, .nelov-sample-link:focus-visible, .nelov-sample-panel-close:focus-visible, .nelov-sample-tile:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.nelov-sample-thumb { flex: 0 0 44px; width: 44px; height: 44px; overflow: hidden; border-radius: 4px; background: #fff; }
.nelov-sample-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nelov-sample-pick-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nelov-sample-link { align-self: flex-start; min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-size: 13px; color: #111; text-decoration: underline; cursor: pointer; }
.nelov-sample-pick .nelov-sample-link { align-self: auto; flex: 0 0 auto; }
.nelov-sample-panel { position: fixed; inset: 0; z-index: 1000002; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: #fff; box-sizing: border-box; }
.nelov-sample-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nelov-sample-panel-close { width: 44px; height: 44px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: #111; }
.nelov-sample-search { flex: 0 0 auto; }
.nelov-sample-search .nelov-theme-search-input { min-height: 44px; }
.nelov-sample-search .nelov-theme-search-clear { width: 44px; height: 44px; right: 0; }
.nelov-sample-panel-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; min-width: 0; }
.nelov-sample-group { margin-bottom: 16px; }
.nelov-sample-group-title { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.nelov-sample-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nelov-sample-tile { min-width: 0; font: inherit; }
.nelov-sample-tile:disabled { cursor: not-allowed; }
.nelov-sample-empty { font-size: 14px; color: #555; }
@media (min-width: 641px) {
    .nelov-sample-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .nelov-sample-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .nelov-sample-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Tryb „Prosty formularz” (display_mode=flat): sekcje zawsze otwarte, nagłówek bez przełącznika */
.nelov-inline-root.is-flat .nelov-accordion-item { background: #ffffff !important; overflow: visible; }
.nelov-inline-root.is-flat .nelov-flat-heading {
    margin: 0;
    padding: 16px 20px 0;
    font-size: 16px;
    /* Playfair Display jest ladowany tylko w wagach 400/500; 600 wymuszalo sztuczne pogrubienie (wyglada jak cien tekstu) */
    font-weight: 500;
    font-synthesis-weight: none;
    text-shadow: none;
    line-height: 1.3;
}
.nelov-inline-root .nelov-section-title { text-shadow: none; }
.nelov-inline-root.is-flat .nelov-accordion-content { padding-top: 10px; }
@media (max-width: 600px) {
    .nelov-inline-root.is-flat .nelov-flat-heading { padding: 14px 12px 0; }
    .nelov-inline-root.is-flat .nelov-accordion-content { padding-top: 8px; }
}

/* Znaczek "opcjonalne" w naglowku sekcji (flat i akordeon) */
.nelov-section-optional { margin-left: 8px; font-family: inherit; font-size: 12px; font-weight: 400; color: #6b7280; text-transform: lowercase; letter-spacing: 0; white-space: nowrap; }

/* Flat + "Domyslnie zwinieta": naglowek jest przyciskiem (min. 44 px, fokus widoczny) */
.nelov-inline-root.is-flat .nelov-flat-heading-collapsible { padding: 0; }
.nelov-inline-root.is-flat .nelov-flat-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 12px 20px; margin: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; box-sizing: border-box; }
.nelov-inline-root.is-flat .nelov-flat-toggle:focus-visible { outline: 2px solid #111; outline-offset: -2px; }
.nelov-inline-root.is-flat .nelov-flat-toggle-title { min-width: 0; overflow-wrap: anywhere; }
.nelov-inline-root.is-flat .nelov-flat-chevron { flex: 0 0 auto; transition: transform .2s ease; }
.nelov-inline-root.is-flat .nelov-flat-toggle[aria-expanded="true"] .nelov-flat-chevron { transform: rotate(180deg); }
@media (max-width: 600px) {
    .nelov-inline-root.is-flat .nelov-flat-toggle { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .nelov-inline-root.is-flat .nelov-flat-chevron { transition: none; }
}

/* Probki: kafelki kopert (grupa radio) */
.nelov-sample-env-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.nelov-sample-env-swatch { display: flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; max-width: 100%; padding: 4px 10px 4px 4px; border: 1px solid #cfcac4; border-radius: 6px; background: #fff; color: #111; font: inherit; font-size: 13px; line-height: 1.2; text-align: left; cursor: pointer; box-sizing: border-box; }
.nelov-sample-env-swatch.is-selected { border-color: #111; box-shadow: 0 0 0 1px #111; }
.nelov-sample-env-swatch:focus-visible { outline: 2px solid #111; outline-offset: 1px; }
.nelov-sample-env-img { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 4px; overflow: hidden; background: #f1efee; display: block; }
.nelov-sample-env-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nelov-sample-env-name { min-width: 0; overflow-wrap: anywhere; }

/* Data (date_parts): dzien, miesiac, rok w jednej linii (takze przy 375 px) */
.nelov-date-parts { display: flex; flex-wrap: nowrap; gap: 6px; min-width: 0; }
.nelov-date-parts select { flex: 1 1 0; min-width: 0; box-sizing: border-box; min-height: 44px; padding: 8px 4px; border: 1px solid #cfcac4; border-radius: 6px; font: inherit; font-size: 14px; background: #fff; color: #111; text-overflow: ellipsis; }
.nelov-date-parts .nelov-date-parts-m { flex: 1.8 1 0; }
.nelov-date-parts .nelov-date-parts-d { flex: 0.9 1 0; }

/* Probki: wybor koperty na wiersz (tryb + filtr koloru + kafelki; zwiniety = jedna wybrana koperta) */
.nelov-sample-env-custom { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nelov-sample-env-chosen { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.nelov-sample-env-chosen-info { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; font-size: 13px; }
.nelov-sample-env-chosen .nelov-sample-input { flex: 1 1 160px; width: auto; }
.nelov-sample-env-picker { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nelov-sample-env-picker .nelov-env-swatch { width: 44px; height: 44px; min-width: 44px; }
.nelov-sample-env-picker .nelov-env-clear { min-height: 44px; padding: 0 6px; }
.nelov-sample-env-picker .nelov-env-toggle { min-height: 44px; margin-top: 4px; }
.nelov-sample-env-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; min-width: 0; }
.nelov-sample-env-grid .nelov-tile { min-width: 0; padding: 6px 6px 8px; font: inherit; }
.nelov-sample-env-grid .nelov-tile-img { aspect-ratio: 1 / 1; }
.nelov-sample-env-grid .nelov-tile-img img { aspect-ratio: 1 / 1; object-fit: cover; display: block; }
@media (max-width: 480px) {
    .nelov-sample-env-picker .nelov-env-swatch { width: 44px; height: 44px; min-width: 44px; }
    .nelov-sample-env-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
}

.nelov-sample-env-picker .nelov-env-filter-label { font-size: 14px; font-weight: 600; color: inherit; margin-right: 2px; }

/* Rodzaj koperty: kafelki rodzajow (envelope-type.js) i papiery koperty kieszonkowej */
.nelov-grid-envtypes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.nelov-grid-envtypes .nelov-tile { min-width: 0; padding: 6px 6px 8px; }
.nelov-grid-envtypes .nelov-tile-img { aspect-ratio: 1 / 1; }
.nelov-grid-envtypes .nelov-tile-img img { aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.nelov-envtype-desc { display: block; width: 100%; margin: 0 0 4px; font-size: 11px; line-height: 1.35; color: #6b6660; text-align: left; overflow-wrap: break-word; }
@media (max-width: 700px) { .nelov-grid-envtypes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Lak jako produkt samoistny: ilosc odbic w formularzu (pole WooCommerce ukryte, wartosc synchronizuje setQty) */
body.nelov-wax-standalone .wrap-quantity-add-to-cart .quantity { display: none !important; }
.nelov-wax-qty { margin: 14px 0 6px; }
.nelov-wax-qty .nelov-qty-controls { display: inline-flex; align-items: center; gap: 6px; }
.nelov-wax-qty .nelov-qty-min { display: block; margin-top: 4px; opacity: .7; }

/* Sekcja z "Ukryj naglowek sekcji": sam blok (np. komunikat), bez ramki karty i dodatkowych odstepow (flat i akordeon) */
.nelov-accordion-item.is-untitled,
.nelov-accordion-item.is-untitled:hover,
.nelov-inline-root.is-flat .nelov-accordion-item.is-untitled {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    overflow: visible;
}
.nelov-accordion-item.is-untitled .nelov-accordion-content,
.nelov-inline-root.is-flat .nelov-accordion-item.is-untitled .nelov-accordion-content {
    background: transparent;
    padding: 0;
}
.nelov-accordion-item.is-untitled .nelov-restriction-banner { margin-bottom: 0; }
