/* Widget CSS Stylesheet */
.product-filter-widget-container-03a91fdc {
    position: relative;
    font-family: inherit;
}

/* Sidebar Wrapper */
.product-filter-sidebar-03a91fdc {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header & Close (Drawer layout defaults) */
.sidebar-header-03a91fdc {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.filter-title-03a91fdc {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.sidebar-close-btn-03a91fdc {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 5px;
    line-height: 1;
}

/* Section Header styling */
.filter-section-header-03a91fdc {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-section-title-03a91fdc {
    font-weight: 600;
    color: #374151;
}

.reset-filter-btn-03a91fdc {
    background: none;
    border: none;
    color: #0073aa;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
    text-decoration: underline;
    transition: opacity 0.2s;
}

.reset-filter-btn-03a91fdc:hover {
    opacity: 0.8;
}

/* Lists styling */
.parent-category-list-03a91fdc, .subcategory-list-03a91fdc {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subcategory-list-03a91fdc {
    padding-left: 20px;
    margin-top: 5px;
    border-left: 1px dashed #e5e7eb;
}

.category-item-wrap-03a91fdc {
    margin-bottom: 8px;
}

.filter-item-row-03a91fdc {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Checkbox alignment & label styling */
.checkbox-label-wrap-03a91fdc {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    user-select: none;
    flex-grow: 1;
}

.checkbox-label-wrap-03a91fdc input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-check-box-03a91fdc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #fff;
    margin-right: 10px;
    transition: all 0.2s ease-in-out;
}

.custom-check-box-03a91fdc svg {
    width: 12px;
    height: 12px;
    display: none;
}

.checkbox-label-wrap-03a91fdc input:checked ~ .custom-check-box-03a91fdc {
    background-color: #000;
    border-color: #000;
}

.checkbox-label-wrap-03a91fdc input:checked ~ .custom-check-box-03a91fdc svg {
    display: block;
}

.checkbox-label-text-03a91fdc {
    font-size: 0.95rem;
    color: #4b5563;
    transition: color 0.2s;
}

/* Nested Subcategory Arrow button */
.subcategory-toggle-btn-03a91fdc {
    background: none;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.subcategory-toggle-btn-03a91fdc.rotated-03a91fdc {
    transform: rotate(180deg);
}

.subcategory-toggle-btn-03a91fdc svg {
    width: 14px;
    height: 14px;
}

/* Mobile Trigger Elements */
.mobile-toggle-header-03a91fdc {
    display: none;
    margin-bottom: 20px;
}

.mobile-filter-trigger-03a91fdc {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-sidebar-footer-03a91fdc {
    display: none;
    padding: 15px 0 0;
    margin-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.mobile-apply-filters-btn-03a91fdc {
    width: 100%;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
}

.sidebar-overlay-03a91fdc {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    z-index: 9998;
    transition: all 0.3s ease;
}

/* Responsive Styles for Mobile drawer view */
@media (max-width: 767px) {
    .mobile-toggle-header-03a91fdc {
        display: block;
    }

    .product-filter-sidebar-03a91fdc {
        position: fixed;
        top: 0;
        right: -320px; /* Hidden offscreen by default */
        width: 300px;
        height: 100vh;
        z-index: 9999;
        overflow-y: auto;
        border-radius: 0;
        border: none;
        box-shadow: -2px 0 12px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .sidebar-header-03a91fdc {
        display: flex;
    }

    .mobile-sidebar-footer-03a91fdc {
        display: block;
    }

    .product-filter-sidebar-03a91fdc.open-03a91fdc {
        right: 0;
    }

    .sidebar-overlay-03a91fdc.active-03a91fdc {
        opacity: 1;
        visibility: visible;
    }
}
