.dlrfp-wrap {
    --dlrfp-panel-bg: #f3f3f3;
    --dlrfp-card-bg: #ffffff;
    --dlrfp-header-bg: #ededed;
    --dlrfp-border: #d8d8d8;
    --dlrfp-accent: #cf2f92;
    --dlrfp-button-bg: #cf2f92;
    --dlrfp-button-text: #ffffff;
    --dlrfp-text: #333333;
    --dlrfp-count-bg: #b9b9b9;
    --dlrfp-count-text: #ffffff;
    --dlrfp-reset-active-bg: #dc2626;
    --dlrfp-reset-active-text: #ffffff;
    --dlrfp-radius: 10px;

    width: 100%;
    margin: 0 0 24px;
    padding: 14px;
    background: var(--dlrfp-panel-bg);
    border: 1px solid var(--dlrfp-border);
    border-radius: calc(var(--dlrfp-radius) + 2px);
    color: var(--dlrfp-text);
    box-sizing: border-box;
}
.dlrfp-form { margin: 0; }
.dlrfp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.dlrfp-header h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    color: var(--dlrfp-text);
}
.dlrfp-toggle {
    border: 1px solid var(--dlrfp-border);
    border-radius: var(--dlrfp-radius);
    padding: 8px 12px;
    background: var(--dlrfp-card-bg);
    color: var(--dlrfp-text);
    font-weight: 700;
    cursor: pointer;
}
.dlrfp-active {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}
.dlrfp-active-title {
    width: 100%;
    font-weight: 700;
    margin-bottom: 2px;
}
.dlrfp-chip,
.dlrfp-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid var(--dlrfp-border);
}
.dlrfp-chip {
    background: #fff;
    color: var(--dlrfp-text);
}
.dlrfp-reset {
    background: #fff;
    color: var(--dlrfp-text);
}
.dlrfp-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.dlrfp-group {
    border: 1px solid var(--dlrfp-border);
    border-radius: var(--dlrfp-radius);
    background: var(--dlrfp-card-bg);
    overflow: hidden;
}
.dlrfp-group-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: var(--dlrfp-header-bg);
    color: var(--dlrfp-text);
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.dlrfp-arrow {
    font-size: 20px;
    line-height: 1;
}
.dlrfp-options {
    display: grid;
    gap: 0;
    max-height: 320px;
    overflow: auto;
}
.dlrfp-option {
    position: relative;
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-top: 1px solid var(--dlrfp-border);
    cursor: pointer;
    background: var(--dlrfp-card-bg);
    transition: background .15s ease;
}
.dlrfp-option:hover {
    background: rgba(0,0,0,.02);
}
.dlrfp-option.is-active {
    background: color-mix(in srgb, var(--dlrfp-accent) 8%, white);
}
.dlrfp-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dlrfp-box {
    width: 16px;
    height: 16px;
    border: 1px solid var(--dlrfp-border);
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
}
.dlrfp-option.is-active .dlrfp-box {
    border-color: var(--dlrfp-accent);
    background: var(--dlrfp-accent);
}
.dlrfp-option.is-active .dlrfp-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.dlrfp-name {
    font-size: 14px;
    line-height: 1.3;
    color: var(--dlrfp-text);
}
.dlrfp-count {
    min-width: 24px;
    text-align: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--dlrfp-count-bg);
    color: var(--dlrfp-count-text);
    font-size: 12px;
    font-weight: 700;
}
.dlrfp-show-more {
    width: calc(100% - 24px);
    margin: 10px 12px 12px;
    padding: 9px 12px;
    border: 1px solid var(--dlrfp-border);
    border-radius: calc(var(--dlrfp-radius) - 2px);
    background: #fff;
    color: var(--dlrfp-text);
    font-weight: 700;
    cursor: pointer;
}
.dlrfp-show-more:hover { background: rgba(0,0,0,.02); }
.dlrfp-option.is-extra { display: none; }
.dlrfp-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
}
.dlrfp-apply {
    width: 100%;
    border: 0;
    border-radius: var(--dlrfp-radius);
    padding: 12px 14px;
    background: var(--dlrfp-button-bg);
    color: var(--dlrfp-button-text);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.dlrfp-reset-button {
    justify-content: center;
}
.dlrfp-wrap.is-collapsed .dlrfp-body,
.dlrfp-wrap.is-collapsed .dlrfp-active,
.dlrfp-wrap.is-collapsed .dlrfp-actions {
    display: none;
}
@media (max-width: 768px) {
    .dlrfp-wrap {
        padding: 12px;
    }
}

/* v1.5.0 - stiluri per atribut */
.dlrfp-style-compact .dlrfp-options {
    max-height: 260px;
}
.dlrfp-style-compact .dlrfp-option {
    padding: 7px 10px;
    grid-template-columns: 18px 1fr auto;
}
.dlrfp-style-compact .dlrfp-name {
    font-size: 13px;
}
.dlrfp-style-pills .dlrfp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    max-height: none;
}
.dlrfp-style-pills .dlrfp-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--dlrfp-border);
    border-radius: 999px;
    padding: 8px 10px;
    flex: 0 0 auto;
}
.dlrfp-style-pills .dlrfp-box {
    display: none;
}
.dlrfp-style-pills .dlrfp-option.is-active {
    border-color: var(--dlrfp-accent);
    background: var(--dlrfp-accent);
}
.dlrfp-style-pills .dlrfp-option.is-active .dlrfp-name {
    color: #fff;
}
.dlrfp-style-pills .dlrfp-option.is-active .dlrfp-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}
.dlrfp-style-swatches .dlrfp-options {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    padding: 10px;
    max-height: none;
}
.dlrfp-style-swatches .dlrfp-option {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
}
.dlrfp-style-swatches .dlrfp-name,
.dlrfp-style-swatches .dlrfp-count {
    display: none;
}
.dlrfp-style-swatches .dlrfp-box {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: var(--dlrfp-swatch, #d8d8d8);
    border: 1px solid var(--dlrfp-border);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.dlrfp-style-swatches .dlrfp-option.is-active .dlrfp-box {
    outline: 2px solid var(--dlrfp-accent);
    outline-offset: 2px;
    background: var(--dlrfp-swatch, #d8d8d8);
}
.dlrfp-style-swatches .dlrfp-option.is-active .dlrfp-box::after {
    left: 10px;
    top: 5px;
}


/* v1.6.0 - AJAX loader */
.dlrfp-products-loading {
    opacity: .45;
    pointer-events: none;
    transition: opacity .15s ease;
}
.dlrfp-loader-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 48px;
    z-index: 20;
    pointer-events: none;
}
.dlrfp-loader-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dlrfp-border, #d8d8d8);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    color: var(--dlrfp-text, #333);
    font-size: 13px;
    font-weight: 700;
}
.dlrfp-loader-overlay span::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0,0,0,.15);
    border-top-color: var(--dlrfp-accent, #cf2f92);
    border-radius: 50%;
    animation: dlrfp-spin .7s linear infinite;
}
@keyframes dlrfp-spin {
    to { transform: rotate(360deg); }
}


/* v1.6.1 - aliniere stanga/dreapta si reset vizual */
.dlrfp-group:not(.dlrfp-style-pills):not(.dlrfp-style-swatches) .dlrfp-option {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: 20px minmax(0, 1fr) max-content;
}
.dlrfp-group:not(.dlrfp-style-pills):not(.dlrfp-style-swatches) .dlrfp-name {
    justify-self: start;
    text-align: left;
    min-width: 0;
    overflow-wrap: anywhere;
}
.dlrfp-group:not(.dlrfp-style-pills):not(.dlrfp-style-swatches) .dlrfp-count {
    justify-self: end;
    margin-left: auto;
}
.dlrfp-style-compact .dlrfp-option {
    grid-template-columns: 18px minmax(0, 1fr) max-content;
}
.dlrfp-reset-button {
    width: 100%;
    box-sizing: border-box;
}


/* v1.6.4 - fix aliniere stil pastile, fara SEO */
.dlrfp-style-pills .dlrfp-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
    max-height: none;
}
.dlrfp-style-pills .dlrfp-option {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--dlrfp-border);
    border-radius: 999px;
    padding: 8px 12px;
    flex: none;
}
.dlrfp-style-pills .dlrfp-box {
    display: none !important;
}
.dlrfp-style-pills .dlrfp-name {
    justify-self: start;
    text-align: left;
    min-width: 0;
    overflow-wrap: anywhere;
}
.dlrfp-style-pills .dlrfp-count {
    justify-self: end;
    margin-left: auto;
}
.dlrfp-style-pills .dlrfp-option.is-extra {
    display: none;
}
.dlrfp-style-pills .dlrfp-option.is-extra[style*="grid"] {
    display: grid !important;
}


/* v1.6.5 Auto Apply: filtrarea se face instant la selectare, butonul Aplica nu mai este necesar. */
.dlrfp-apply {
    display: none !important;
}
.dlrfp-actions {
    margin-top: 12px;
}


/* v1.6.6 - culoare configurabila pentru reset activ */
.dlrfp-reset-button.is-inactive {
    background: #fff;
    color: var(--dlrfp-text);
    border-color: var(--dlrfp-border);
    opacity: .78;
}
.dlrfp-reset-button.is-active {
    background: var(--dlrfp-reset-active-bg);
    color: var(--dlrfp-reset-active-text);
    border-color: var(--dlrfp-reset-active-bg);
    opacity: 1;
}
.dlrfp-reset-button.is-active:hover {
    filter: brightness(.96);
}

/* v1.6.7 - stabilizare AJAX + auto apply */
.dlrfp-wrap.is-loading {
    opacity: .72;
    pointer-events: none;
}
.dlrfp-wrap.is-loading .dlrfp-form {
    cursor: wait;
}
.dlrfp-reset-button.is-disabled,
.dlrfp-chip.is-disabled {
    pointer-events: none;
    opacity: .55;
}
.dlrfp-products-loading {
    opacity: .55;
    transition: opacity .15s ease;
}
.dlrfp-loader-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    background: rgba(255, 255, 255, .55);
    backdrop-filter: blur(1px);
}
.dlrfp-loader-overlay span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--dlrfp-border, #d8d8d8);
    color: var(--dlrfp-text, #333);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}
.dlrfp-loader-overlay span::before {
    content: '';
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid var(--dlrfp-border, #d8d8d8);
    border-top-color: var(--dlrfp-accent, #cf2f92);
    animation: dlrfp-spin .7s linear infinite;
}
@keyframes dlrfp-spin {
    to { transform: rotate(360deg); }
}
