/*  Кнопка вызова фильтра   */
.smart-filter-btn {
    font-size: 16px;
    clear: both;
    height: 40px;
    background: rgb(255 255 255 / 75%);
    border: 1px solid var(--color-rose);
    border-radius: 10px;
    padding: 8px 14px;
    margin-top: 10px;
    margin-bottom: 30px;
    cursor: pointer;
}

.smart-filter-btn .smart-filter-selected {
    gap: 4px;
}

.smart-filter-btn .count {
    display: flex;
    font-size: 11px;
    width: 16px;
    height: 16px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--color-rose);
    color: var(--color-white);
}

.smart-filter-btn .rt {
    color: var(--color-rose);
}

.rt-modal {
    display: none;
    position: fixed;
    max-width: 1320px;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}


.rt-modal.open {
    display: block;
}

.rt-modal-content {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    min-height: 580px;
    max-height: 644px;
    overflow: hidden;
}

.docs .rt-modal-content {
    padding: 20px 0 40px 45px;
}


.docs .rt-modal-body {
    overflow-y: auto;
    max-height: 100%;
    padding-right: 20px;
    margin-right: 25px;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
}

#smart-filter-modal .rt-modal-content--inner {
    padding: 20px 55px;
    position: relative;
    background-color: #fff; /* или ваш фон */
    background-image: url('/img/svg/angle-left.svg'), url('/img/svg/angle-right.svg');
    background-repeat: no-repeat, no-repeat;
    background-position: left bottom, right top;
    background-size: auto, auto; /* при необходимости можно указать размеры */
}

.rt-modal .modal-title {
    font-size: 20px;
    letter-spacing: -0.5px;
    font-weight: 700;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.rt-modal.docs .modal-title {
    margin-bottom: 40px;
    padding-right: 20px;
    margin-right: 25px;
}

.rt-modal.docs .modal-title > * {
    margin-left: auto;
}

.rt-modal.docs .modal-title .rt {
    color: var(--color-black);
}

#smart-filter-modal .rt-modal-content--inner .modal-title {
    margin-left: -3em;
    gap: 20px;
}

.rt-modal-content--summary {
    max-width: 371px;
    width: 100%;
    border: 2px solid #FECF75;
    border-radius: 15px;
    margin-left: -3.25em;
    z-index: 1;
    background: #ffffff;
    padding: 20px 15px 25px;
}

.rt-modal-content--summary .btn {
    color: #ffffff;
    font-size: 16px;
}

.counter {
    display: inline-block;
    font-family: sans-serif;
}

.counter-input-wrapper {
    display: flex;
    align-items: center;
}

.counter-input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #C2C2C2;
    height: 36px;
    border-radius: 10px;
}

.counter-input:focus-visible {
    outline: none;
    border: 2px solid #FF4E00;
}

.counter-buttons {
    display: flex;
    flex-direction: column;
    margin-left: 5px;
}

.counter-buttons .rt {
    cursor: pointer;
    user-select: none;
    line-height: 1;
    padding: 4px;
    font-size: 12px;
    border: none;
    background: none;
}

.param-list {
    margin-top: 15px;
    gap: 15px;
}

.param-list--item {
    row-gap: 14px;
}

.param-list--item .select-wrapper {
    max-width: 145px;
}

.param-list--item.counter {
    gap: 20px;
}

.param {
    height: 36px;
    display: inline-flex;
    padding: 0 20px;
    border: 2px solid #FF4E00;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    font-weight: 400;
}

.param.active {
    color: #fff;
    background-color: #F06F57;

}

.checked-params {
    padding: 23px 35px;
    gap: 10px 4px;
}

.param-name {
    font-weight: 700;
    font-size: 20px;
    display: inline-block;
}

.select-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #fff;
    padding: 0;
    width: 100%;
    max-width: 300px;
}

.select-wrapper i.rt {
    position: absolute;
    left: 10px;
    font-size: 20px;
    color: #FF4E00;
    pointer-events: none;
    margin-top: -4px;
    z-index: 1;
}

.select-wrapper select {
    appearance: none; /* стандартно */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none; /* Firefox */
    border: none;
    background: transparent;
    font-size: 14px;
    padding: 0;
    width: 100%;
    cursor: pointer;
    outline: none;
    color: #333;
}

/* Убираем стрелку в IE и Edge */
.select-wrapper select::-ms-expand {
    display: none;
}

.rt-modal .close {
    margin-left: auto;
}

.rt-modal-head .modal-title {
    margin-top: 0;
    font-size: 32px;
}

.custom-select {
    font-family: Arial, sans-serif; /* Шрифт */
    font-size: 16px; /* Размер шрифта */
    padding: 8px 12px; /* Внутренние отступы */
    border: 1px solid #ccc; /* Бордер */
    border-radius: 4px; /* Скруглённые углы */
    background-color: #fff; /* Фон */
    color: #333; /* Цвет текста */
    appearance: none; /* Убираем системный стиль */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer; /* Курсор */
    min-width: 160px; /* Минимальная ширина */
    box-sizing: border-box;
}

.custom-select-wrapper {
    position: relative;
    display: inline-block;
}

.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-top: 10px;
}

.custom-select {
    font-size: 13px;
    padding: 6px 40px 6px 12px;
    border: 1px solid #F06F57;
    border-radius: 10px;
    background-color: #fff;
    color: #AAAAAA;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}

.select-container .rt {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* чтобы иконка не мешала клику по select */
    font-size: 24px;
    color: #AAAAAA;
}

.modal-title .rt {
    font-size: 25px;
    color: var(--color-rose);
}

.rt-modal .select2-container--default .select2-selection--single .select2-selection__arrow b {
    display: none;
}

.rt-modal .select2-selection {
    font-size: 13px;
    padding: 6px 40px 6px 12px;
    border: 1px solid #F06F57;
    border-radius: 10px;
    background-color: #fff;
    color: #AAAAAA;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
}

.rt-modal [type="date"],
.rt-modal [type="time"] {
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid #F06F57;
    border-radius: 10px;
    background-color: #fff;
    color: #AAAAAA;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
    text-align: center;
    height: 36px;
    outline: none;
}

#smart-filter-modal .select2-container .select2-selection--single {
    padding-left: 30px;
    padding-right: 15px;
}

.rt-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 1.6;
}

/* Вставляем нашу иконку */
.rt-modal .select2-container--default .select2-selection--single .select2-selection__arrow::after {
    content: "\e90c"; /* Замените на нужный символ, если используется rt */
    font-family: 'rt'; /* Указание на шрифт, откуда брать иконку */
    font-size: 16px;
    color: #666;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    text-align: center;
    transform: translateY(-50%);
}

.rt-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}


/*  Добавление в корзину  */
#addBasketButtonClick.rt-modal {
    max-width: 420px;
}

#addBasketButtonClick .rt-modal-content {
    min-height: 700px;
}

#addBasketButtonClick .rt-modal-content {
    padding: 6px 16px 16px;
}

.modal-params {

}

.modal-param--item {
    height: 60px;
}

.modal-param--item > * {
    flex: 1 1 50%;
}

#addBasketButtonClick .btn.btn-rose.fill {
    color: var(--color-white);
}

#addBasketButtonClick .btn.btn-rose.fill:hover {
    color: var(--color-rose);
}

.rt-modal-footer {
    margin-top: 45px;
}

#addBasketButtonClick.rt-modal .modal-title {
    align-items: self-start;
    text-align: left;
    line-height: 1.4;
    font-size: 26px;
    margin-bottom: 6px;
}

#addBasketButtonClick .close .rt {
    font-size: 32px;
    padding: 6px 0 6px 6px;
}

#addBasketButtonClick .rt-modal-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rt-modal--location {
    text-align: center;

    gap: 10px;
}

.rt-modal--location-label {
    font-size: 22px;
    line-height: 1.6;
}

.rt-modal--location-point {

}

.location-point--inner {
    border: 1px solid #F06F57;
    padding: 0 14px;
    font-size: 20px;
    line-height: 36px;
    border-radius: 10px;
}

.modal-param--item label {
    font-size: 16px;
}


#addBasketButtonClick .select2-container .select2-selection--single {
    height: 36px;
}

#addBasketButtonClick .rt-modal-footer {
    margin-top: 10px;
}

#addBasketButtonClick .btn {
    line-height: 30px;
    font-size: 18px;
}

#addBasketButtonClick .select-wrapper,
#addBasketButtonClick .product-prices {
    padding: 0 0 0 10px;
}

.popular-places {
    top: 0;
    left: calc(100% + 16px);
    backdrop-filter: blur(44px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.69);
    border-radius: 15px;
    padding: 16px 20px 20px;
    max-width: 300px;
}

.popular-places .section-list--item {
    height: 148px;
}

.popular-places .popular-places--title {
    padding: 0;
    background: #fff;
    border: 3px solid #F48665;
    border-radius: 10px;
    font-family: var(--font-accent);
    font-size: 15px;
    font-weight: 400;
    color: #F48665;
    margin-bottom: 30px;
    line-height: 40px;
    box-shadow: 0 2px 6px 1px #00000040;
}

.popular-places .section-list--item-title {
    font-size: 15px;
    height: 1em;
    line-height: 1;
    margin-bottom: 0;
}

.popular-places .image img {
    max-width: 90px;
    max-height: 90px;
}

#addBasketButtonClick .btn.btn-round {
    padding: 0;
    font-size: 10px;
    line-height: 24px;
    width: 105px;
}

#smart-filter-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 1;
}

/*  Start:basketItemInfo  */
#basketItemInfo.rt-modal {
    max-width: 360px;
}


#basketItemInfo .rt-modal-content {
    min-height: 690px;
    /*max-height: 100%;*/
    padding: 12px;
}

#basketItemInfo .btn.btn-rose.fill {
    color: var(--color-white);
}

#basketItemInfo .btn.btn-rose.fill:hover {
    color: var(--color-rose);
}

#basketItemInfo.rt-modal .modal-title {
    align-items: self-start;
    text-align: left;
    font-size: 26px;
    letter-spacing: -2px;
    line-height: 1.3;
    margin-bottom: 12px;
}

#basketItemInfo .param-item--title {
    font-size: 17px;
    line-height: 1.8;
}

#basketItemInfo .param-item--value {
    font-size: 17px;
}

#basketItemInfo .rt-modal-body {
    display: flex;
    overflow-y: auto;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

#basketItemInfo  .image {
    flex: 1;
}

#basketItemInfo .rt-modal--params {
    gap: 0;
}

#basketItemInfo .modal-param--item {
    height: auto;
    line-height: 1.9;
}

#basketItemInfo .image img {
    width: 100%;
    height: auto;
}

#basketItemInfo .rt-modal-footer {
    margin-top: 10px;
}

#basketItemInfo .btn {
    line-height: 1.15;
    font-size: 16px;
}

#basketItemInfo .product-prices {
    padding: 0;
}


#basketItemQr.rt-modal {
    max-width: 316px;
}

#basketItemQr .rt-modal-content {
    min-height: auto;
}

#basketItemQr .order-basket-item-qr {
    /*position: absolute;*/
    /*top: 50%;*/
    /*transform: translateY(-50%);*/
    /*left: calc(100% + 60px);*/
    backdrop-filter: blur(44px);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #fff;
    border-radius: 15px;
    padding: 24px 27px 20px 27px;
    max-width: 316px;
    width: 100%;
}

#basketItemQr .order-basket-item-qr img {
    width: 100%;
    height: auto;
}

#basketItemQr .popup-qr-note {
    margin-top: 20px;
    padding: 16px 12px;
    gap: 8px;
    font-weight: 400;
}

#basketItemQr .popup-qr-note .rt {
    font-size: 24px;
    color: var(--color-rose);
}

#basketItemQr .popup-qr-note a {
    color: var(--color-rose);
}
/*  END:basketItemInfo  */

@media screen and (max-width: 1199px) {
    .smart-filter-btn {
        background: rgba(240, 111, 87, 0.5);
        margin-top: 0;
    }

    .smart-filter-btn .rt {
        color: #EB5649;
    }

    .rt-modal-content--inner {
        background: url("/img/svg/angle-left-m.svg") no-repeat;
        padding: 50px 10px 0;
    }

    .rt-modal .modal-title {
        margin-top: 0;
        text-align: left;
    }

    .param-name {
        font-weight: 400;
        font-size: 16px;
        color: #535658;
    }

    .counter {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .counter-input {
        width: 30px;
        height: 28px;
        font-size: 14px;
    }

    .counter-buttons {
        display: none;
    }

    .param {
        height: 29px;
        padding: 0 5px;
    }

    .select-wrapper {
        width: auto;
        padding: 4px 12px;
    }

    .mobile-action {
        position: absolute;
        top: 10px;
        left: 0;
        display: flex;
        justify-content: space-between;
        width: 100%;
        padding: 0 15px;
    }

    .mobile-action .rt-angle-left,
    .mobile-action .rt-filter-list {
        font-size: 28px;
    }

    .mobile-action .rt-angle-left {
        color: #fff;
    }

    .mobile-action .rt-filter-list {
        color: #F06F57;
    }

    .custom-select-wrapper > label {
        width: 60%;
    }

    .custom-select-wrapper {
        display: flex;
        align-items: center;
    }

    .custom-select-wrapper .select-container {
        width: 90px;
    }


    .rt-modal-body {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .rt-modal-body > * {
        border: none;
    }

    .rt-modal-content {
        border-radius: 10px;
    }

    .rt-modal-footer {
        margin-top: 45px;
        text-align: center;
    }

    .rt-modal-footer .btn.btn-round {
        background: #F06F57;
        border-radius: 10px;
        padding: 19px 38px;
        width: 100%;
        font-size: 14px;
    }

    .rt-modal-footer .btn.btn-round.clear-filter {
        background: #ffffff;
        color: #F06F57;
        border: 1px solid #F06F57;
    }

    #smart-filter-modal .rt-modal-footer {
        display: flex;
        flex-direction: column;
        margin-bottom: 10px;
        gap: 10px;
    }

    .result-row > *:not(.result) {
        width: 60%;
    }

    .offer-summary .result-row {
        margin-bottom: 25px;
    }

    .rt-modal-content {
        min-height: auto;
    }

    #addBasketButtonClick .rt-modal-body {
        gap: 10px;
    }


    #addBasketButtonClick .rt-modal-footer {
        margin-top: 45px;
    }

    #addBasketButtonClick .rt-modal-content {
        min-height: unset;
        margin: 0 12px;
        padding: 6px 12px 16px;
    }

    #addBasketButtonClick.rt-modal .modal-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    #addBasketButtonClick .close .rt {
        font-size: 28px;
    }

    .rt-modal--location-label {
        font-size: 16px;
    }

    .location-point--inner {
        font-size: 14px;
        line-height: 24px;
    }

    #addBasketButtonClick.rt-modal .modal-title {
        align-items: center;
    }

    .modal-param--item label {
        font-size: 14px;
    }


    .select2-container .select2-selection--single {
        height: 28px;
    }

    .modal-param--item {
        height: 45px;
    }

    #addBasketButtonClick .product-prices {
        padding-left: 10px;
    }

    .rt-modal--params {
        margin-top: 5px;
    }

    #addBasketButtonClick .btn {
        line-height: 36px;
        font-size: 14px;
    }


    #smart-filter-modal .rt-modal-content--inner {
        background: url("../img/svg/angle-left-m.svg") no-repeat;
        background-position: left top;

        padding: 0 10px;
        height: 530px;
    }

    .mobile-action {
        top: 5px;
        padding: 0 8px;
    }

    #smart-filter-modal .rt-modal-content--inner .modal-title {
        margin-left: 0;
        gap: 20px;
        font-size: 19px;
        letter-spacing: -0.3px;
        margin-top: 2.6em;
        line-height: 1.6;
    }

    .param-list--item.counter {
        gap: 25px;
    }

    #smart-filter-modal .param-list {
        gap: 0;
        margin-top: 8px;
    }

    #smart-filter-modal .param-list--item {
        row-gap: 0;
    }

    #smart-filter-modal .param-name {
        line-height: 1.5;
        padding: 10px 0;
    }

    #smart-filter-modal .param-list--item .select-wrapper {
        padding: 0;
    }

    #smart-filter-modal .rt-modal-footer {
        margin-top: 32px;
    }


    #smart-filter-modal .rt-modal-footer .btn.btn-round {
        padding: 16px 38px;
    }

    /*  Start:basketItemInfo  */
    #basketItemInfo .rt-modal-body {
        gap: 10px;
    }

    #basketItemInfo .rt-modal-footer {
        margin-top: 45px;
    }

    #basketItemInfo .rt-modal-content {
        min-height: unset;
        margin: 0 12px;
        padding: 6px 12px 16px;
    }

    #basketItemInfo.rt-modal .modal-title {
        font-size: 18px;
        margin-bottom: 12px;
        align-items: center;
        letter-spacing: 0;
    }

    #basketItemInfo .product-prices {
        padding-left: 0;
    }

    .rt-modal--params {
        margin-top: 5px;
    }

    #basketItemInfo .rt-modal-footer {
        margin-top: 15px;
    }

    #basketItemInfo .btn {
        line-height: 36px;
        font-size: 10px;
        flex: 1;
    }

    #basketItemInfo .image {
        text-align: center;
    }

    #basketItemInfo .image img {
    }

    #basketItemInfo.rt-modal {
    }

    #basketItemQr .order-basket-item-qr {
        position: unset;
        transform: unset;
        max-width: 230px;
        margin: 0 auto 10px;
    }

    #basketItemQr .order-basket-item-qr img {
    }

    #basketItemInfo.rt-modal.open {
        display: flex;
        flex-direction: column-reverse;
    }

    #basketItemInfo.rt-modal .modal-title {
        font-size: 14px;
    }

    #basketItemInfo .param-item--title {
        font-size: 10px;
    }

    #basketItemInfo .param-item--value {
        font-size: 10px;
    }

    /*  END:basketItemInfo  */
}

