.jb-suite-filter-panel {
    position: absolute;
    top: calc(100% + 20px);
    left: 0;
    background: #fff;
    border: 1px solid #e5e1d9;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    width: 280px;
    padding: 16px;
    display: none;
    z-index: 50;
}

.jb-suite-filter-panel[data-panel="all-filters"] {
    position: fixed;
    left: auto;
    right: 0;
    top: 50px;
    bottom: 0;
    width: 420px;
    max-width: calc(100% - 32px);
    overflow: auto;
    z-index: 1000;
    border-radius: 0;
}

.jb-suite-filter-panel[data-panel="all-filters"] .jb-suite-filter-panel-footer {
    position: sticky;
    bottom: -20px;
    background: #fff;
    padding: 0;
    border-top: 1px solid #e5e1d9;
    z-index: 2;
    width: 100%;
    left: 0;
}

.jb-suite-filter-panel-footer .jb-suite-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.jb-suite-filter.is-open .jb-suite-filter-panel {
    display: block;
}

.jb-suite-filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    border-bottom: 1px solid #e5e1d9;
    padding-bottom: 10px;
}

.jb-suite-filter-panel-header h3 {
    margin: 0;
    font-size: 15px;
}

.jb-suite-filter-close {
    border: 0;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
}

.jb-suite-filter-options {
    display: grid;
    gap: 10px;
    font-size: 14px;
    color: #374151;
}

.jb-suite-filter-group {
    padding: 12px 0;
    border-bottom: 1px solid #eef0f4;
}

.jb-suite-filter-group h4 {
    margin: 0 0 8px;
    font-size: 14px;
}

.jb-suite-filter-options label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jb-suite-filter-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 20px;
}

.jb-suite-filter-cancel {
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: #374151;
}

.jb-suite-filter-apply {
    border: 0;
    background: #2563eb;
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.jb-suite-filter-reset {
    border: 0;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: #111827;
}

@media (max-width: 991px) {
    body.jb-suite-filters-open {
        overflow: hidden;
    }

    body.jb-suite-filters-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1;
        pointer-events: auto;
    }

    body.jb-suite-filters-open .jb-suite-search-grid {
        pointer-events: none;
    }

    .jb-suite-filter-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        width: 100%;
        z-index: 10000;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
        overflow: auto;
        background: #fff;
        pointer-events: auto;
    }

    .jb-suite-filter-panel[data-panel="all-filters"] {
        left: auto;
        right: 0;
        top: 0;
        bottom: 0;
        border-radius: 0;
        max-height: none;
        width: 100%;
    }

    .jb-suite-filter-panel[data-panel="all-filters"] .jb-suite-filter-options {
        padding-bottom: 80px;
    }

    .jb-suite-filter-panel-header {
        position: sticky;
        top: 0;
        background: #fff;
        z-index: 2;
        padding-top: 16px;
    }

    .jb-suite-filter-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding-bottom: 16px;
    }

    .jb-suite-filter-apply {
        width: auto;
        justify-content: center;
    }
}
