.searchbar-wrapper {
    position: relative;
}

.searchbar-filter-scroll {
    overflow-y: auto;
    max-height: 300px;
    padding: 16px;
}

.searchbar-footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    justify-content: flex-end;
}

.searchbar-footer .btn {
    min-width: 100px;
}

.filter-icon-inactive path {
    stroke: #58315A;
}

.filter-icon-active path {
    stroke: #F8183E;
}

.filter-icon-active rect {
    fill: #FFC107;
}

@media (max-width: 768px) {
    .searchbar-filter-scroll {
        max-height: 60vh;
    }

    .searchbar-footer {
        flex-direction: column;
    }

    .searchbar-footer .btn {
        width: 100%;
    }
}

.searchbar-dirty-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.searchbar-dirty-dialog {
    width: max-content;
    min-width: 400px;
    max-width: 90vw;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.searchbar-dirty-dialog-title {
    padding: 16px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid #e8e8e8;
}

.searchbar-dirty-dialog-content {
    padding: 16px;
}

.searchbar-dirty-dialog-buttons {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 12px 16px 16px;
    justify-content: flex-end;
}

.searchbar-dirty-dialog-buttons .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .searchbar-dirty-dialog-buttons {
        flex-direction: column;
    }

    .searchbar-dirty-dialog-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .searchbar-dirty-dialog {
        width: 90%;
    }
}
