/* Фильтр «Вид ремонта» + попап выбора работ СТО */
.sto-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.sto-filter-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 28px 0 10px;
    min-height: 32px;
    border-radius: 3px;
    background: #EDEDED;
    border: 1px solid #f8f8f8;
    font-size: 13px;
    line-height: 32px;
    color: #313235;
    position: relative;
}

.sto-filter-tag__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sto-filter-tag__remove {
    position: absolute;
    right: 0;
    top: 0;
    width: 28px;
    height: 100%;
    background: url(src/img/close.svg) no-repeat center / 8px 8px;
    text-decoration: none;
    border: 0;
    padding: 0;
    min-width: 0;
    cursor: pointer;
}

.sto-filter-select-btn {
    display: inline-block;
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    height: 42px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #F93F20;
    border-radius: 8px;
    background: #fff;
    color: #F93F20;
    font-size: 14px;
    font-weight: normal;
    line-height: 40px;
    text-align: center;
    text-transform: none;
    cursor: pointer;
}

.sto-filter-select-btn:hover,
.sto-filter-select-btn:active {
    border-color: #F93F20;
    color: #F93F20;
    background: #fff;
    transform: none;
}

/* Время работы: колонки и Choices-выпадашка строго под полем */
#filter_container .filters_section-column {
    position: relative;
    min-width: 0;
}

#filter_container .filters_section-column .choices {
    position: relative;
    z-index: 1;
    width: 100%;
    margin-bottom: 0;
}

#filter_container .filters_section-column .choices.is-open {
    z-index: 50;
}

#filter_container .filters_section-column .choices__list--dropdown {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1123px) {
    #filter_container .filters_section-columns {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #filter_container .filters_section-column {
        width: 100%;
    }

    /* Не клипать выпадающий список внутри мобильной панели фильтров */
    #filter_container.filters.opened:has(.choices.is-open) {
        overflow: visible;
    }

    #filter_container.filters.opened:has(.choices.is-open) .filters_body {
        overflow-x: hidden;
        overflow-y: visible;
    }
}

.sto-repair-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10050;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.sto-repair-modal.is-open {
    display: flex;
}

.sto-repair-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.sto-repair-modal__panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px;
    max-height: min(80vh, 640px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.sto-repair-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-shrink: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.sto-repair-modal__title {
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #222;
}

.sto-repair-modal__close {
    width: 32px;
    height: 32px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: url(src/img/close.svg) no-repeat center / 12px 12px;
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
}

.sto-repair-modal__close:hover,
.sto-repair-modal__close:active {
    opacity: 0.7;
    transform: none;
    background-color: transparent;
}

.sto-repair-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
}

.sto-repair-group {
    border-bottom: 1px solid #f5f5f5;
}

.sto-repair-group:last-child {
    border-bottom: 0;
}

.sto-repair-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 14px 20px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    line-height: 20px;
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.sto-repair-group__toggle:hover,
.sto-repair-group__toggle:active {
    background: #fafafa;
    color: #222;
    transform: none;
}

.sto-repair-group__arrow {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: url(src/img/chevron-right.svg) no-repeat center / contain;
    transition: transform 0.2s ease;
}

.sto-repair-group.is-open .sto-repair-group__arrow {
    transform: rotate(90deg);
}

.sto-repair-group__services {
    display: none;
    padding: 0 20px 12px;
}

.sto-repair-group.is-open .sto-repair-group__services {
    display: block;
}

.sto-repair-group__services .filters_item {
    margin-bottom: 10px;
}

.sto-repair-modal__footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
}

.sto-repair-modal__apply {
    display: inline-block;
    width: auto;
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: #F93F20;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    text-transform: none;
    cursor: pointer;
}

.sto-repair-modal__apply:hover,
.sto-repair-modal__apply:active {
    color: #fff;
    opacity: 0.92;
    transform: none;
}

body.sto-repair-modal-open {
    overflow: hidden;
}
