.lm-filter-sidebar {
    width: 100%;
    box-sizing: border-box;
    color: #222;
    font-size: 14px;
}

/* Header */

.lm-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e5e5;
}

.lm-filter-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.lm-filter-clear {
    padding: 6px 12px;
    background: #ed1c24 !important;
    color: #ffffff;
    font: inherit;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
}

.lm-filter-clear:hover {
    color: #111;
}

/* Filter sections */

.lm-filter-section {
    margin: 0 0 24px;
    padding: 0 0 20px;
    border-bottom: 1px solid #e5e5e5;
}

.lm-filter-section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

/* Options */

.lm-filter-options {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.lm-filter-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}

.lm-filter-option input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin: 3px 0 0;
    accent-color: #222;
    cursor: pointer;
}

.lm-filter-option span {
    flex: 1;
    min-width: 0;
}

/* Category hierarchy */

.lm-filter-category-option {
    position: relative;
}

.lm-filter-category-depth-0 {
    padding-left: 0;
    font-weight: 600;
}

.lm-filter-category-depth-1 {
    padding-left: 20px;
}

.lm-filter-category-depth-2 {
    padding-left: 40px;
}

.lm-filter-category-depth-3 {
    padding-left: 60px;
}

.lm-filter-category-depth-4 {
    padding-left: 80px;
}

.lm-filter-category-depth-5 {
    padding-left: 100px;
}

.lm-filter-option:hover {
    color: #111;
}

/* Empty state */

.lm-filter-empty {
    margin: 0;
    color: #777;
    font-size: 13px;
    line-height: 1.6;
}

/* Status message */

.lm-filter-status {
    min-height: 18px;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}

/* Loading state */

.lm-filter-sidebar.lm-filter-loading {
    opacity: 0.65;
    pointer-events: none;
}

#lm-product-loop .e-loop-container[aria-busy="true"] {
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

#lm-product-loop .e-loop-container > .e-loop-item {
    min-width: 0;
}

/* Error and no-results messages */

.lm-filter-render-error,
.lm-filter-no-products {
    width: 100%;
    padding: 20px;
    color: #666;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
}

/* Responsive */

@media (max-width: 767px) {
    .lm-filter-header {
        margin-bottom: 18px;
    }

    .lm-filter-title {
        font-size: 17px;
    }

    .lm-filter-section {
        margin-bottom: 18px;
        padding-bottom: 16px;
    }

    .lm-filter-options {
        gap: 12px;
    }
}