.ubxMobileFilter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: opacity 0.3s;
}

.ubxMobileFilter-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 2001;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
    max-height: 80vh;
    height: 80vh;
    transition: transform 0.3s, opacity 0.3s;
}

.ubxMobileFilter-hide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.ubxMobileFilter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #eee;
    background: #fff;
    flex: 0 0 auto;
}

.ubxMobileFilter-title {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.ubxMobileFilter-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.2rem 1rem 1.2rem;
    background: #fff;
}

.ubxMobileFilter-section {
    margin-bottom: 1.5rem;
}

.ubxMobileFilter-sectionTitle {
    font-weight: 600;
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.ubxMobileFilter-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    height: 100%;
    overflow-y: auto;
    padding-right: 5px;
}

.ubxMobileFilter-list::-webkit-scrollbar {
    width: 4px;
}

.ubxMobileFilter-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ubxMobileFilter-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.ubxMobileFilter-list::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.ubxMobileFilter-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.7rem 1.2rem;
    border-top: 1px solid #eee;
    background: #fff;
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.ubxMobileFilter-footerBtn {
    flex: 1 1 0;
    margin: 0 0.3rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.ubxMobileFilter-main {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

.ubxMobileFilter-tabs {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
    background: #f5f5f6;
    border-right: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow-y: auto;
    height: 100%;
}

.ubxMobileFilter-tab {
    padding: 1rem 1.2rem;
    cursor: pointer;
    font-weight: 600;
    color: #222;
    border-left: 3px solid transparent;
    background: none;
    transition: background 0.2s, border-color 0.2s;
}

.ubxMobileFilter-tab-active {
    background: #fff;
    border-left: 3px solid var(--primary);
    color: var(--primary);
}

.ubxMobileFilter-tabContent {
    flex: 1 1 auto;
    padding: 1.2rem 1rem 1.2rem 1rem;
    overflow-y: auto;
    background: #fff;
    height: 100%;
    box-sizing: border-box;
}

.ubxMobileFilter-tabPanel {
    display: none;
}

.ubxMobileFilter-tabPanel-active {
    display: block;
}

.ubxMobileFilter-priceSliderWrap {
    margin: 1.5rem 0 0.5rem 0;
}

.ubxMobileFilter-priceSliderLabel {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

#ubxMobileFilter-priceSlider {
    margin: 0 0.5rem 1.2rem 0.5rem;
}

.ubxMobileFilter-priceValues {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.7rem;
}

@media (max-width: 400px) {
    .ubxMobileFilter-tabs {
        min-width: 80px;
    }
}

@media (min-width: 1024px) {
    .ubxMobileFilter-dialog,
    .ubxMobileFilter-overlay {
        display: none !important;
    }
}

.ubxMobileFilter-clearBtn {
    background: none;
    border: none;
    color: var(--primary, #ff2d55);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.3rem 0.7rem;
    transition: color 0.2s;
}

.ubxMobileFilter-clearBtn:hover {
    text-decoration: underline;
    color: #d81b4e;
}

.single-category-mode .category-selection-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
 
.single-category-mode .custom-control-label::before,
.single-category-mode .custom-control-label::after {
    display: none !important;
}

.single-category-mode .custom-control-label {
    padding-left: 0 !important;
    color: #212529;
    font-weight: 400;
}

.single-category-mode .category-selection-input:checked + .custom-control-label {
    color: var(--primary) !important;
    font-weight: 700;
}