.er-smart-filters {
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.er-filters-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #333;
}

.er-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f5f5f5;
    border-radius: 4px;
}

.er-active-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    width: 100%;
    margin-bottom: 4px;
}

.er-active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #f0f0f0;
    color: #333;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #ccc;
    text-decoration: none;
}

.er-active-filter:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

.er-remove {
    font-weight: bold;
    font-size: 14px;
}

.er-clear-all {
    font-size: 12px;
    color: #666;
    text-decoration: underline;
    margin-left: auto;
}

.er-filter-section {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 0;
}

.er-filter-section:last-child {
    border-bottom: none;
}

.er-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.er-filter-label {
    font-weight: 600;
    font-size: 14px;
}

.er-filter-toggle {
    font-size: 18px;
    font-weight: 300;
    color: #999;
    width: 20px;
    text-align: center;
}

.er-filter-content {
    padding: 0 0 15px 0;
    display: none;
}

.er-filter-section.expanded .er-filter-content {
    display: block;
}

.er-filter-section .er-filter-toggle::after {
    font-size: 18px;
}

.er-filter-section.collapsed .er-filter-toggle::after {
    content: '+';
}

.er-filter-section.expanded .er-filter-toggle::after {
    content: '-';
}

.er-filter-search {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
    margin-bottom: 10px;
}

.er-filter-search:focus {
    outline: none;
    border-color: #999;
}

.er-filter-options {
    max-height: 250px;
    overflow-y: auto;
}

.er-filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
}

.er-filter-option.hidden {
    display: none;
}

.er-filter-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
    accent-color: #333;
}

.er-option-name {
    flex: 1;
}

.er-option-count {
    color: #999;
    font-size: 12px;
}

.er-stock-toggle {
    background: #f8f8f8;
    padding: 0 12px;
    margin: 0 0 15px 0;
    border-radius: 4px;
    border: none;
}

.er-stock-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
    font-weight: 600;
}

.er-stock-label input[type="checkbox"] {
    position: relative;
    width: 44px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    background: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.er-stock-label input[type="checkbox"]:checked {
    background: #2ecc71;
}

.er-stock-label input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.er-stock-label input[type="checkbox"]:checked::after {
    left: 22px;
}

.er-stock-label .er-option-count {
    margin-left: auto;
}

.er-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.er-price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.er-price-input:focus {
    outline: none;
    border-color: #999;
}

.er-price-sep {
    color: #999;
}

.er-price-go {
    padding: 0 15px !important;
    height: 34px !important;
    background: #333 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 3px !important;
    cursor: pointer;
    font-size: 13px !important;
    line-height: 34px !important;
    text-align: center;
    box-sizing: border-box;
    vertical-align: middle;
}

.er-filter-submit {
    width: 100%;
    padding: 12px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}

.er-filter-options::-webkit-scrollbar {
    width: 6px;
}

.er-filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.er-filter-options::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.er-smart-filters.loading {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 768px) {
    .er-smart-filters {
        padding: 15px;
        background: #fff;
    }
    
    .er-price-inputs {
        flex-wrap: wrap;
    }
    
    .er-price-input {
        flex: 1;
        min-width: 70px;
    }
    
    .er-price-go {
        width: 100%;
        margin-top: 8px;
    }
}
