.wc-af-filter-container {
    margin-bottom: 20px;
}

.wc-af-filter-group {
    border: 1px solid #e2e2e2;
    margin-bottom: 10px;
}

.wc-af-filter-title {
    background-color: #f7f7f7;
    padding: 8px 15px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0px;
    font-size: 16px;
}

.wc-af-toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.wc-af-filter-group.active .wc-af-toggle-icon {
    transform: rotate(0deg);
}

.wc-af-toggle-icon.mobile {
    display: none;
}

.wc-af-filter-options {
    display: none;
    padding: 10px 15px;
}

.wc-af-filter-group.active .wc-af-filter-options {
    display: block;
}

.wc-af-filter-option {
    cursor: pointer;
    display: block;
    margin-bottom: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 400 !important;
    font-size: 15px;
}

.wc-af-filter-option:last-child {
    margin: 0px !important;
}

.wc-af-filter-option input {
    margin: 0px 8px 0px 0px;
}

.wc-af-filter-option .count {
    margin-bottom: 5px;
    color: #333;
    text-decoration: none;
}

.wc-af-filter-children {
    margin-left: 15px;
}

.wc-af-back-button {
    display: none;
    background-color: #f7f7f7;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-weight: bold;
    margin: 0px;
    padding: 0px 15px;
    align-items: center;
    gap: 3px;
}

@media (max-width: 768px) {
    .wc-af-filter-container {
        position: relative;
    }

    .wc-af-filter-group {
        width: 100%;
        transition: transform 0.3s ease;
        left: 0;
        top: 0;
    }

    .wc-af-filter-group.slide-in {
        transform: translateX(-100%);
    }

    .wc-af-filter-group.slide-in>.wc-af-filter-options {
        display: block;
    }

    .wc-af-filter-group.slide-in>.wc-af-filter-title {
        display: none;
    }

    .wc-af-filter-group.slide-in .wc-af-back-button {
        display: block;
    }

    .wc-af-filter-children {
        margin-left: 0;
    }
}

/* Add these styles at the end of the file */

body.wc-af-loading {
    overflow: hidden;
}

.wc-af-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wc-af-loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.wc-af-close {
    display: none !important;
}

@media (max-width: 1024px) {
    .wc-af-filter-container {
        position: relative;
    }

    .wc-af-filter-group {
        margin-bottom: 10px;
    }

    .wc-af-filter-title {
        display: flex;
        padding: 10px 15px;
        background-color: #f7f7f7;
        cursor: pointer;
    }

    .wc-af-filter-options {
        display: none;
    }

    .wc-af-filter-group.active .wc-af-filter-options {
        display: block;
    }

    .wc-af-back-button i {
        margin-right: 5px;
    }

    .wc-af-filter-container.child-visible .wc-af-filter-group:not(.active) {
        display: none;
    }

    .wc-af-filter-container.child-visible .wc-af-filter-group.active .wc-af-back-button {
        display: flex;
    }

    .wc-af-filter-container.child-visible .wc-af-filter-group.active .wc-af-filter-title {
        display: none;
    }

    .wc-af-toggle-icon.desktop {
        display: none;
    }

    .wc-af-toggle-icon.mobile {
        display: inline-block;
    }

    .wc-af-close {
        display: block;
        width: 100%;
        margin: 0px;
    }
}