/* layout.css подключается отдельной ссылкой в head.blade.php — с меткой версии. */

.banner_container {
    margin-top: 25px;
}

.products_container {
    margin-top: 40px;
    margin-bottom: 30px;
}

.products_container h2 {
    padding-left: 45px;
    background-position: left center;
    background-size: 30px;
    background-repeat: no-repeat;
}

.products_container.hits h2 {
    background-image: url('../img/category_icons/icon_category_hit.svg');
}

.products_container.cat_id_1 h2 {
    background-image: url('../img/category_icons/icon_category_sets.svg');
}

.products_container.cat_id_2 h2 {
    background-image: url('../img/category_icons/icon_category_combo.svg');
}

.products_container.cat_id_3 h2 {
    background-image: url('../img/category_icons/icon_category_rolls.svg');
}

.products_container.cat_id_4 h2 {
    background-image: url('../img/category_icons/icon_category_grilled-rolls.svg');
}

.products_container.cat_id_5 h2 {
    background-image: url('../img/category_icons/icon_category_hoso.svg');
}

.products_container.cat_id_6 h2 {
    background-image: url('../img/category_icons/icon_category_nigiri.svg');
}

.products_container.cat_id_7 h2 {
    background-image: url('../img/category_icons/icon_category_temaki.svg');
}

.products_container.cat_id_8 h2 {
    background-image: url('../img/category_icons/icon_category_pizza.svg');
}

.products_container.cat_id_9 h2 {
    background-image: url('../img/category_icons/icon_category_fastfood.svg');
}

.products_container.cat_id_10 h2 {
    background-image: url('../img/category_icons/icon_category_salads.svg');
}

.products_container.cat_id_11 h2 {
    background-image: url('../img/category_icons/icon_category_wok.svg');
}

.products_container.cat_id_12 h2 {
    background-image: url('../img/category_icons/icon_category_backed-rolls.svg');
}

/* Новые категории — по адресу (slug), а не по номеру: номер у каждой
   базы свой. «Напитки» → /category/napitki. */
.products_container.cat_napitki h2 {
    background-image: url('../img/category_icons/icon_category_drinks.svg');
}

/*.cat_id_1*/
.banner_container .carousel-item,
.carousel-item_promo {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 400px;
    border-radius: 40px;
    overflow: hidden;
}

.carousel-item_promo {
    margin-top: 30px;
    margin-bottom: 30px;
}

.banner_container .carousel-item .container-fluid,
.banner_container .carousel-item .container-fluid .row {
    height: 100%;
}

.banner_container,
.carousel-item_promo {
    border-radius: 40px;

}

.banner_container .carousel-item .row {
    align-items: center;
}

.banner_container .carousel-item .row .col-md-6 {
    height: 100%;
}

.carousel-item_promo .carousel_image_wrapper,
.banner_container .carousel-item .carousel_image_wrapper {
    display: flex;
    height: 100%;
    justify-content: flex-end;
    align-items: center;
    margin-right: -12px;
}

.banner_container .carousel-item .carousel_image_wrapper img,
.carousel-item_promo .carousel_image_wrapper img {
    max-width: 100%;
    width: auto;
}

.banner_container .carousel-control-next,
.banner_container .carousel-control-prev {
    width: 105px;
}

.banner_container .carousel-control-next-icon,
.banner_container .carousel-control-prev-icon {
    width: 45px;
    height: 45px;
    background-image: url('../img/car_arrow.jpg');
    border-radius: 10px;
}

.banner_container .carousel-control-next-icon {
    transform: rotate(180deg);
}

.banner_container .carousel-control-next,
.banner_container .carousel-control-prev {
    opacity: 1;
}

.banner_container .carousel_text,
.carousel-item_promo .carousel_text {
    max-width: 380px;
    padding-top: 58px;
    padding-bottom: 58px;
    display: flex;
    flex-direction: column;
    margin-left: 147px;
    align-items: flex-start;
    height: 100%;
}

.banner_container .carousel_text .title,
.carousel-item_promo .carousel_text .title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1;
}

.banner_container .carousel_text .desc,
.carousel-item_promo .carousel_text .desc {
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 15px;
}

.banner_container .carousel_text a,
.carousel-item_promo .carousel_text a {
    padding: 17px 42px;
    border-radius: 500px;
    border: 2px solid #20211C;
    color: #fff;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    /* margin-top: auto; */
    background-color: #20211C;
    transition: all 0.5s;
}

.banner_container .carousel_text a:hover,
.carousel-item_promo .carousel_text a:hover {
    color: #20211C;
    background-color: #fff;
}

.banner_container .carousel-indicators [data-bs-target] {

    width: 4px;
    height: 4px;
    transition: 0.5s;
    border-radius: 2px;
}

.banner_container .carousel-indicators .active {
    width: 36px;
    transition: 0.5s;
}

.product_item .price_block .prices {
    align-items: flex-start;
}

ul.menu_food a.active {
    color: #fff;
    background-color: #FF0A0A;
}

.mobile_cart {
    padding: 21px;
    background: #FF0A0A;
    color: #fff;
    border-radius: 24px;
    font-weight: bold;
    font-size: 18px;
    /* display: flex; */
    display: none;
    align-items: center;
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 6;
}

.mobile_cart img {
    margin-right: 7px;
}

@media (max-width: 1200px) {

    .banner_container .carousel_text,
    .carousel-item_promo .carousel_text {
        margin-left: 85px;
    }
}

@media (max-width: 1200px) and (min-width: 991px) {
    .header_desktop ul.menu_food {
        display: flex;
        flex-direction: column;
        max-height: 58px;
        flex-wrap: wrap;
    }
}

@media (max-width: 991px) {

    /* Лента не появляется рывком, а выезжает из-под шапки. */
    .mobile_food_menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-100%);
        transition: transform .22s ease, opacity .22s ease, visibility 0s .22s;
    }

    .mobile_food_menu.visible {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: transform .22s ease, opacity .22s ease;
    }

    .banner_container .carousel_text,
    .carousel-item_promo .carousel_text {
        margin-left: 32px;
    }

    .mobile_catalog ul {
        padding-left: 50px;
    }

    .banner_container .carousel_text .title,
    .carousel-item_promo.carousel_text .title {
        font-size: 32px;
    }

    .carousel-item_promo .carousel_text .desc,
    .banner_container .carousel_text .desc {
        font-size: 16px;
    }

    .banner_container .carousel_text a {
        font-size: 16px;
        padding: 20px 34px;
    }
}

.mobile_promo_link {
    display: none;
}

@media (max-width: 768px) {

    .banner_container .carousel-item,
    .carousel-item_promo {
        height: auto;
    }

    .carousel_text {
        margin-left: 30px;
        margin-right: 30px;
        max-width: 100%;
    }

    .mobile_promo_link {}

    .carousel_text a {
        display: none;
    }

    .banner_container .col-md-6>a {}

    .carousel-item .col-md-6>a,
    .carousel-item_promo .col-md-6>a {
        padding-top: 20px;
        padding-bottom: 20px;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 500px;
        border: 2px solid #20211C;
        color: #fff;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        background-color: #20211C;
        transition: all 0.5s;
        margin-top: 36px;
        margin-bottom: 55px;
        margin-left: 30px;
        margin-right: 30px;
    }

    .banner_container .col-md-6>a:hover {
        color: #20211C;
        background-color: #fff;
    }

    .banner_container .carousel-item .carousel_image_wrapper img,
    .carousel-item_promo .carousel_image_wrapper img {
        margin-right: -100px;
    }

    .carousel-item_promo .carousel_image_wrapper {
        height: auto;
    }

    .carousel-item_promo .carousel_text {
        margin-left: 25px;
    }

    .carousel-item_promo .carousel_text {
        max-width: 100%;
    }
}

.cart_icon_m {
    display: none;
}


.product_item .open_modal {
    cursor: pointer;
}

.product_item .open_modal>img {
    border-radius: 30px;
    margin-bottom: 26px;
    width: 100%;
}

.product_modal {
    background-color: rgba(0, 0, 0, 0.5);
    /* Полупрозрачный черный цвет */
}

.modal.product_modal .modal-dialog {
    max-width: 1000px;
    border-radius: 40px;
    margin-top: 180px;
}

.modal.login_modal .modal-dialog {
    margin-top: 180px;
}

.modal.product_modal .product_info {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal.product_modal .modal-dialog .modal-content {
    border-radius: 40px;
}

.modal.product_modal .modal-dialog .btn-close,
.modal.login_modal .modal-dialog .btn-close {
    position: absolute;
    right: 0;
    top: -40px;
    --bs-btn-close-color: #fff;
    color: #fff;
    background-image: url('../img/icon_x.svg');
    transform: scale(2.5);
}

.modal.product_modal .modal-dialog .col-md-6>img {
    width: 100%;
    border-radius: 30px;
}

.modal.product_modal .modal-content {
    padding: 20px;
}

.modal.product_modal .product_title {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    align-items: center;
}

.modal.product_modal .product_title .title {
    font-size: 42px;
    margin-bottom: 0;
}

.modal.product_modal .product_title .count {
    color: #fff;
    padding: 8px 12px;
    border-radius: 40px;
    background-color: #20211C;
    margin-left: 15px;
    margin-bottom: 0;
    white-space: nowrap;
}

.modal.product_modal .product_desc {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal.product_modal .product_inner {
    margin-top: auto;
}

.modal.product_modal .product_inner .in_order {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 0;
}

.modal.product_modal .product_inner .in_product_items {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 16px;

}

.modal.product_modal .product_inner .in_product_items .item {
    display: flex;
    align-items: center;
    width: 50%;
    margin-bottom: 10px;
}

.modal.product_modal .product_inner .in_product_items .item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    margin-right: 10px;
}

.modal.product_modal .product_inner .in_product_items .item p {
    font-size: 16px;
    margin-bottom: 0;
}

.modal.product_modal .product_inner .in_product_items .item p span {
    font-size: 14px;
}

.modal.product_modal .price_block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    margin-top: auto;
}

.modal.product_modal .price_block .prices {
    display: flex;
    flex-direction: column;

}

.modal.product_modal .price_block .prices .old_price,
.modal.product_modal .price_block .prices .new_price {
    margin-bottom: 0;
    line-height: 1;
}

.modal.product_modal .price_block .prices .old_price {
    font-size: 26px;
    position: relative;
}

.modal.product_modal .price_block .add_to_cart {
    background-color: #FF0A0A;
    padding: 18px 29px;
    width: auto;
    height: auto;
    border-radius: 32px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}

.modal.product_modal .price_block .add_to_cart img {
    margin-right: 9px;
}

.modal.product_modal .price_block .prices .old_price::before {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    /*top: 13px;*/
    /*left: -5px;*/
    /*right: 5px;*/
    background-image: url("../img/red_line.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}

.modal.product_modal .price_block .prices .new_price {
    font-size: 30px;
    font-weight: 600;
    position: relative;
}

@media (max-width: 768px) {
    .modal.product_modal .product_info {
        margin-top: 40px;
    }

    .modal.product_modal .modal-dialog {
        margin-top: 30px;
    }

    .modal.login_modal .modal-dialog {
        margin-top: 30px;
    }

    .modal.product_modal .modal-dialog .btn-close,
    .modal.login_modal .modal-dialog .btn-close {
        position: absolute;
        right: 0;
        top: -25px;
        --bs-btn-close-color: #fff;
        color: #fff;
        transform: scale(2.5);
    }

    .modal.product_modal .price_block {
        margin-bottom: 40px;
    }
}

@media (max-width: 450px) {
    .modal.product_modal .product_inner .in_product_items .item p {
        flex-direction: column;
        display: flex;
    }

    .modal.product_modal .product_title .title {
        font-size: 30px;
    }

    .modal.product_modal .modal-dialog {
        margin-top: 40px;
    }

    .modal.product_modal .product_title {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .modal.product_modal .product_title .count {
        margin-left: 0;
        margin-bottom: 15px;
    }

    .modal.product_modal .price_block .add_to_cart {
        font-size: 15px;
        padding: 15px 10px;
    }

    .checkout_form {
        padding: 0 15px;
    }

    .foot_links.foot_right_links {
        max-width: 100%;
    }
}

.modal.login_modal {
    border-radius: 30px;

}

.modal.login_modal .modal-dialog {
    border-radius: 30px;
}

.modal.login_modal .modal_login_content {
    display: flex;
    min-height: 450px;
    border-radius: 30px;

    flex-direction: column;
    padding: 40px;
    padding-top: 50px;
}

.modal.login_modal .modal-content {
    border-radius: 30px;

}


.modal.login_modal .modal_login_button {
    width: 100%;
    padding-top: 25px;
    padding-bottom: 25px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    background-color: #FF0A0A;
    border-radius: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    border: none;
}

.modal.login_modal .modal_login_content .modal_login_header {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 15px;
}

.modal.login_modal .modal_login_content .modal_login_desc {
    font-size: 16px;
    margin-bottom: 33px;
}

.modal_login_forms {
    display: flex;
    flex-direction: column;
}

/* Подарок бонусами (modals.bonus_gift). */
.modal.login_modal.bonus_gift_modal .modal_login_content {
    min-height: 0;
}

.bonus_gift_amount {
    align-self: flex-start;
    margin-bottom: 28px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #FFECEA;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #FF0A0A;
}

.bonus_gift_link {
    margin-bottom: 20px;
    font-weight: 600;
    color: #FF0A0A;
    text-decoration: underline;
}

.modal_login_forms .input_phone label,
.modal_login_forms .name_form label {
    display: flex;
    align-items: center;
    background-color: #F8F8FA;
    border-radius: 14px;
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    padding-left: 19px;
    padding-right: 19px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.modal_login_forms .input_phone label img {
    margin-right: 10px;
}

.modal_login_forms .input_phone label input,
.modal_login_forms .name_form label input {
    width: 100%;
    padding-top: 15px;
    padding-bottom: 15px;
    margin-left: 10px;
    font-size: 16px;
    border: none;
    outline: none;
    background-color: #F8F8FA;

}

.modal_login_forms .name_form_label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
}

.modal_login_forms .name_form_hint {
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.4;
    color: #8A8A99;
}

/* В окне имени флажка перед полем нет. */
.modal_login_forms .name_form label input {
    margin-left: 0;
}

.modal_login_forms .account_info input {
    margin-bottom: 10px;
    background-color: #F8F8FA;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
    padding: 20px;
    border: none;
}

.modal_login_forms {
    margin-bottom: 34px;
}

.confirmation_form {
    display: none;
}

.confirmation_code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*margin-left: -5px;*/
    /*margin-right: -5px;*/
    max-width: 100%;
}

.confirmation_code input {
    padding: 12px 20px;
    font-size: 31px;
    font-weight: 500;
    border: none;
    /*margin-left: 5px;*/
    /*margin-right: 5px;*/
    display: flex;
    flex-shrink: 1;
    max-width: 65px;
    background-color: #F8F8FA;
    border-radius: 16px;
    text-align: center;
    justify-content: center;
    align-items: center;
}


#accordionLegal .accordion-item {
    border-radius: 20px;
    background-color: #F8F8FA;
    margin-bottom: 12px;
    border: none;
}

#accordionLegal .accordion-item .accordion-header .accordion-button {
    border-radius: 20px;
    box-shadow: none;
    border: none;
    background-color: #F8F8FA;
    padding: 28px 40px;
    font-size: 20px;
    font-weight: 600;
    outline: none;
}

#accordionLegal .accordion-item .accordion-button:not(.collapsed) {
    color: #20211C;
}

#accordionLegal .accordion-item .accordion-collapse .accordion-body {
    padding: 20px 40px;
    font-size: 16px;
    line-height: 1.1;
    padding-bottom: 40px;
}

#accordionLegal {
    margin-top: 55px;
    margin-bottom: 80px;
}

#accordionLegal .accordion-item .accordion-collapse {}

.back_to_main {
    font-size: 14px;
    color: #FF0A0A;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-top: 20px;
    margin-bottom: 64px;
    font-weight: 500;
}

.back_to_main img {
    margin-right: 9px;
}

.simple_page h1 {
    font-size: 45px;
    font-weight: 500;
    max-width: 770px;
    margin-bottom: 25px;
}

.legal_container p {
    font-size: 16px;
    line-height: 1.1;
}

#accordionLegal .accordion-button::after {
    background-image: url('../img/accordion_white.svg');
    width: 40px;
    height: 40px;
    background-size: 40px;

}

#accordionLegal .accordion-button:not(.collapsed)::after {
    background-image: url('../img/accodion_red.svg')
}

@media (max-width: 991px) {
    .legal_container h1 {
        font-size: 28px;
    }

    #accordionLegal .accordion-item .accordion-collapse .accordion-body {
        padding: 25px;
    }

    #accordionLegal .accordion-item .accordion-header .accordion-button {
        padding: 25px;
    }
}

.contacts_wrapper {
    margin-top: 20px;
    display: flex;

}

.contacts_wrapper .adresses {
    width: 100%;
    height: 100%;
    display: flex;
    margin-left: -8px;
    margin-right: -8px;
}

.contacts_wrapper .adresses .item {
    border-radius: 15px;
    margin-right: 8px;
    margin-left: 8px;
    background-color: #F8F8FA;
    padding: 20px 30px;
    height: 100%;
    width: calc(25% - 16px)
}

.contacts_wrapper {
    display: flex;
}

.contacts_wrapper .phones {
    min-width: 340px;
    margin-left: 15px;
}

.contacts_wrapper .phones .phone_item:first-of-type {
    margin-bottom: 15px;

}

.contacts_wrapper .phones .phone_item {
    border-radius: 15px;
    padding: 20px 35px;
    background-color: #F8F8FA;
}

.contacts_wrapper .phones .phone_item a {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #20211C;
}

.contacts_wrapper .phones .phone_item a img {
    margin-right: 10px;
}

.contacts_wrapper .phones .phone_item p {
    font-size: 14px;
    font-weight: 300;
}

.contacts_wrapper .adresses .row {
    margin-left: -8px;
    margin-right: -8px;
}

.contacts_wrapper .adresses .col-md-3 {
    padding-left: 8px;
    padding-right: 8px;
}

.contacts_wrapper .adresses .item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 270px;
}

.contacts_wrapper .adresses .item .title {
    padding: 6px 11px;
    background-color: #fff;
    font-size: 12px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 60px;
}

.contacts_wrapper .adresses .item .adress {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 14px;
}

.contacts_wrapper .adresses .item .worktime {
    color: #20211C;
    opacity: 0.6;
    margin-top: auto;
}

.contacts_wrapper .adresses .item .title img {
    margin-right: 7px;
}

.map_contacts {
    margin-top: 50px;
    border-radius: 20px;
    margin-bottom: 90px;
}

@media (max-width: 1400px) {
    .contacts_wrapper .adresses .item .adress {
        font-size: 16px;
    }

    .fixed_header_wrapper ul li a {
        font-size: 11px;
    }

    .contacts_wrapper .adresses .item .worktime {
        font-size: 13px;
    }
}

@media (max-width: 1200px) {
    .contacts_wrapper {
        display: flex;
        flex-direction: column;
    }

    .fixed_header_wrapper .menu_food {
        display: flex;
        flex-direction: column;
        max-height: 58px;
        flex-wrap: wrap;
    }

    .product_item .product_title h3 {
        font-size: 20px;
    }

    .contacts_wrapper .phones {
        margin-left: 0;
    }

    .contacts_wrapper .adresses .item {
        margin-bottom: 16px;
    }
}

@media (max-width: 991px) {
    .contacts_wrapper .adresses .item {
        width: calc(50% - 16px);
        margin-bottom: 16px;
    }

    .contacts_wrapper .adresses {
        flex-wrap: wrap;
    }

    .contacts_wrapper .adresses .item .title {
        background-color: rgba(255, 10, 10, .08)
    }

    .contacts_wrapper .adresses {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .contacts_wrapper .phones {
        min-width: 100%;
    }

    .contacts_wrapper .adresses .item {
        padding: 15px 22px;
    }

    .contacts_wrapper .phones .phone_item a {
        font-size: 22px;
    }
}

.reviews_wrapper {
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

.reviews_wrapper .title_block {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
}

.reviews_wrapper .title_block h1 {
    margin-top: 0;
    margin-bottom: 0;
    font-size: 32px;
    font-weight: 500;
}

.reviews_wrapper .title_block p {
    font-size: 16px;
    color: rgba(32, 33, 28, 0.6);
    display: flex;
    align-items: center;
    margin-bottom: 0;
}

.reviews_wrapper .title_block p img {
    margin-right: 6px;
}

.reviews_wrapper .title_block p span {
    font-size: 32px;
    font-weight: 500;
    color: rgba(32, 33, 28, 1);
}

.reviews_page {
    background-color: #F8F8FA;
    margin-bottom: 80px;
}

.reviews_wrapper .reviews .item {
    border-radius: 20px;
    background-color: #fff;
    margin-bottom: 10px;
    padding: 20px;
}

.reviews_wrapper .reviews .item .item_profile {
    display: flex;
    align-items: center;
}

.reviews_wrapper .reviews .item .item_profile img {
    margin-right: 10px;
    border-radius: 50%;
}

.reviews_wrapper .reviews .item .item_profile .text p {
    margin-bottom: 0;
}

.reviews_wrapper .reviews .item .item_profile .text .title {
    font-size: 16px;
    font-weight: 500;
}

.reviews_wrapper .reviews .item .item_profile .text .pubdate {
    color: rgba(32, 33, 28, 0.6);
    font-size: 12px;
    font-weight: 400;
}

.reviews_wrapper .reviews .item .item_stars {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.reviews_wrapper .reviews .item .item_stars img {
    margin-right: 5px;
}

.reviews_wrapper .reviews .item .item_content {
    margin-bottom: 25px;
}

.reviews_wrapper .reviews .item .item_content .text {
    margin-bottom: 15px;
    font-size: 12px;
    font-weight: 500;
}

.reviews_wrapper .accordion-button {
    padding: 0;
    font-size: 15px;
    font-weight: 600;
    background-color: #fff;
    box-shadow: none;
}

.reviews_wrapper .accordion-button::after {
    margin-left: 7px;
    transform: rotate(0deg);
    width: 6px;
    height: 6px;
    background-position: center;
    background-size: 7px;
    background-image: url('../img/mini_arrow.svg');
    transition: 0.2s ease-in-out all;
}

.reviews_wrapper .accordion-button.collapsed::after {
    transform: rotate(180deg);
    transition: 0.2s ease-in-out all;

}

.reviews_wrapper .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: #20211C
}

.reviews_wrapper .accordion-body {
    padding-left: 50px;
}

.reviews_wrapper .accordion-body .text {
    font-size: 12px;
    margin-top: 10px;
}

@media (max-width: 576px) {
    .reviews_wrapper .title_block {
        flex-direction: column;
        align-items: flex-start;
    }
}

/*.show {*/
/*    display: none;*/
/*!important*/
/*}*/

.cart_item .product_text {
    margin-right: auto;
}

.order_info {
    padding: 30px;
    border-radius: 25px;
    background-color: #fff;
    border: 1px solid #eeeeed;
    margin-bottom: 32px;
}

.bonus_payment_switch {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 28px;
    border-radius: 25px;
    background-color: #fff;
    border: 1px solid #eeeeed;
    margin-bottom: 28px;
    cursor: pointer;
}

.bonus_payment_switch.is-visible {
    display: flex;
}

.bonus_payment_switch.is-disabled {
    cursor: default;
    opacity: .6;
}

.bonus_payment_text {
    display: flex;
    flex-direction: column;
}

.bonus_payment_title {
    color: #20211C;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.15;
}

.bonus_payment_hint {
    color: rgba(32, 33, 28, .58);
    font-size: 16px;
    font-weight: 500;
    margin-top: 8px;
}

.bonus_payment_switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.bonus_payment_control {
    position: relative;
    flex: 0 0 auto;
    width: 58px;
    height: 36px;
    border-radius: 999px;
    background: #dedede;
    transition: background-color .2s ease;
}

.bonus_payment_control::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(32, 33, 28, .16);
    transition: transform .2s ease;
}

.bonus_payment_switch input:checked + .bonus_payment_control {
    background: #EF3A1F;
}

.bonus_payment_switch input:checked + .bonus_payment_control::after {
    transform: translateX(22px);
}

.gray_background {
    margin-top: 20px;
    padding-top: 30px;
    background-color: #f8f8fa;
    padding-bottom: 30px;
}

.top-border {
    border-top: 1px solid #eeeeed;
    margin-top: 20px;
    padding-top: 30px;
}

.order_item {
    display: flex;
    margin-top: 10px;
    margin-bottom: 10px;
}

.order_item .dashed {
    flex-shrink: 1;
    width: 100%;
    background-image: url('../img/dashed.svg');
    background-size: auto;
    background-position: center;
    background-repeat: repeat-x;
}

.order_item p {
    white-space: nowrap;
}

.order_item .title {
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 0;
}

.order_item .count {
    color: rgba(32, 33, 28, 0.5);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 0;
}

.product_order_price {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 0;
}

.form_radio {
    display: flex;
    align-items: center;
    border-radius: 14px;
    /*border: 1px solid red;*/
    background: #fff;
    padding: 17px;
    margin-bottom: 10px;
    font-weight: 400;
}

.order_minititle {
    margin-bottom: 30px;
    font-size: 30px;
    font-weight: 500;
}

.form_radio input[type=radio] {
    display: none;
}

.form_radio label {
    display: inline-block;
    cursor: pointer;
    position: relative;
    padding-left: 40px;
    margin-right: 0;
    /*line-height: 18px;*/
    user-select: none;
    font-weight: 400;
}

.form_radio label:before {
    content: "";
    display: inline-block;
    width: 26px;
    height: 26px;
    position: absolute;
    left: 0;
    bottom: 1px;
    background: url(../img/radio-1.svg) 0 0 no-repeat;
}

/* Checked */
.form_radio input[type=radio]:checked+label:before {
    background: url(../img/radio-2.svg) 0 0 no-repeat;
}

/* Hover */
.form_radio label:hover:before {
    filter: brightness(120%);
}

/* Disabled */
.form_radio input[type=radio]:disabled+label:before {
    filter: grayscale(100%);
}

.checkout_form input {
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 14px;
    width: 100%;
    background-color: #fdfdfd;
    outline: none;
}

.checkout_form input::placeholder {
    color: #878790
}

.checkout_form .order_width {
    max-width: 700px;
}

.input_cashback_from {
    background: #fff;
}

.checkout_form sup {
    color: #ff0000;
}

.checkout_form .input_wrapper label {
    font-size: 16px;
    font-weight: 500;
    color: #20211C;
    margin-bottom: 10px;
}

.checkout_form .input_wrapper.input_white input {
    padding: 21px;
    background-color: #fff;
    /*border: 1px solid blue;*/
}

.checkout_form .input_wrapper:not(.input_white) {
    border-bottom: 1px solid #878790
}

.checkout_form .input_wrapper:not(.input_white) label {
    margin-bottom: 2px;
}

.checkout_form .input_wrapper:not(.input_white) input {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: transparent;
    margin-bottom: 10px;
    /*border: 1px solid green;*/
}

.checkout_form .input_wrapper.input_white input.mask-phone {
    background-image: url("../img/flag_rk.jpg");
    padding-left: 70px;
    background-repeat: no-repeat;
    background-size: 38px;
    background-position: 20px center;
}

.checkout_info{
    position: sticky;
    top: 100px;
}

/* Стили для блока промокода */
.promocode_block .promo_code_wrapper {
    margin-top: 15px;
}

.promocode_block .promo_code_input {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.promocode_block .promo_code_input .input_wrapper {
    flex: 1;
}

.promocode_block .promo_code_input .input_wrapper input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;
}

.promocode_block .promo_code_input .btn {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 500;
    white-space: nowrap;
    width: 30%;
}

.promocode_block .promo_code_applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #28a745;
}

.promocode_block .promo_code_applied .applied_info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promocode_block .promo_code_applied .badge {
    font-size: 14px;
    padding: 8px 15px;
}

.promocode_block .promo_code_applied .discount_info {
    font-weight: 500;
}

.promocode_block .promo_code_error {
    font-size: 14px;
}

.checkout_form button.remove_promocode{
    width: 30%;
    background-color: #20211C;
    border: none;
}

.checkout_info .order_shipping,
.checkout_info .order_total,
.order_resume .count_products {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout_info .order_total {
    margin-top: 30px;
    margin-bottom: 25px;
}

.checkout_info .order_shipping p,
.order_resume .count_products p {
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 500;
}

.checkout_info .order_total p {
    font-weight: 500;
    font-size: 28px;
    margin-bottom: 0;
}

.checkout_info .discount_block .item{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 16px;
    font-weight: 500;
}

.checkout_info .discount_block p{
    margin-bottom: 0;
}

.checkout_form .col-md-8 {
    padding-right: 150px;
}

.checkout_form button {
    height: 56px;
    width: 100%;
    border-radius: 500px;
    background-color: #FF0A0A;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #FF0A0A;
}

.checkout_form button:hover {
    color: #FF0A0A;
    background-color: #FFf;
    border: 2px solid #FF0A0A;

}

.checkout_form .input_wrapper:not(.input_white) {
    display: flex;
    flex-direction: column;
}

.checkout_form .input_wrapper select {
    background: transparent;
    border: 0;
    appearance: none;
    /* remove arrow        */
    -webkit-appearance: none;
    /* remove arrow Chrome */
    -moz-appearance: none;
    outline: none;
    padding-top: 10px;
    padding-bottom: 10px;
    background-image: url('../img/select_arrow.svg');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.cashback_from_wrapper {
    display: none;
}

#cash_no_change{
    margin: 0;
}

.cash_no_change {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px 50px;
    color: #20211C;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.cash_no_change input {
    width: 18px;
    height: 18px;
    accent-color: #EF3A1F;
}

.checkout_form .input_wrapper.input_cashback_from {
    border: none;
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-top: -10px;
    padding-left: 50px;
    padding-top: 10px;
    margin-bottom: 5px;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}

.checkout_form .input_wrapper.input_cashback_from input {
    background: #F8F8FA;
    border-radius: 8px;
    padding-left: 15px;
}

.checkout_form .input_wrapper.input_cashback_from label {
    font-size: 14px;
    text-align: left;
    margin-left: 20px;
    margin-right: 50px;
    max-width: 150px;
    width: 100%;
    font-weight: 400;
}

.checkout_form h1 {
    font-size: 45px;
    margin-bottom: 50px;
    font-weight: 600;
}

.checkout_form h2 {
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 25px;
}

.checkout_form .recipient_title {
    font-weight: 500;
    font-size: 30px;
    margin-bottom: 20px;
}

@media(max-width: 500px) {
    .checkout_form .input_wrapper.input_cashback_from {
        flex-direction: column-reverse;
        justify-content: center;
        padding-left: 17px;
        padding-right: 17px;
        padding-bottom: 17px;
    }

    .checkout_form .input_wrapper.input_cashback_from label {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 10px;
        font-size: 14px;
    }

    .checkout_form .input_wrapper.input_cashback_from input {
        margin-bottom: 0;
    }

    .cash_no_change {
        margin-left: 17px;
    }
}

.order_done_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 62px;
    padding-bottom: 92px;
}

.order_done_info h1 {
    font-size: 45px;
    font-weight: 600;
    margin-bottom: 50px;
    text-align: center;
}

.order_done_info img {
    margin-bottom: 50px;
}

.order_done_info a {
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    border: 2px solid #FF0A0A;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 600;
    border-radius: 30px;
    background-color: #FF0A0A;
}

@media (max-width: 576px) {
    .product_item .product_title {
        flex-direction: column-reverse;
        margin-bottom: 10px;
    }

    .product_item .product_description {
        margin-bottom: 20px;
    }

    .product_item .price_block {
        display: block;
        margin-top: 0;
        margin-bottom: 10px;
    }

    .order_done_info img {
        order: -1;
    }

    .order_done_info h1 {
        font-size: 26px;
    }

    body {
        background-color: #f8f8fa;
    }

    .contacts_wrapper .adresses .item,
    .contacts_wrapper .phones .phone_item {
        background-color: #fff;
    }

    .banner_container .container {
        padding-left: 0;
        padding-right: 0;
    }

    .product_item {
        border-radius: 14px;
        background-color: #fff;
        padding: 7px;
        height: auto;
        margin-bottom: 10px;
    }

    .product_item .product_title .count {
        font-size: 12px;
        color: #fff;
        background-color: #20211C;
        margin-bottom: 15px;
    }

    .product_item .product_title h3 {
        font-size: 18px;
    }

    .product_item .product_title,
    .product_item .product_description,
    .product_item .price_block {
        padding-left: 7px;
        padding-right: 7px;
        font-size: 12px;
    }

    .product_item .price_block {
        padding-bottom: 10px;
        margin-bottom: 0;
    }

    .price_block .add_to_cart {
        font-size: 12px;
        color: #ff0000;
        cursor: pointer;
    }

    .price_block .add_to_cart img {
        margin-right: 10px;
    }

    .cart_icon_d {
        display: none;
    }

    .cart_icon_m {
        display: block;
    }

    .price_block .add_to_cart {
        padding: 0;
        justify-content: center;
        width: 100%;
        height: 43px;
        background-color: #FFDFDF;
    }

    .product_item .price_block .prices {
        margin-bottom: 10px;
    }

    .product_item .price_block .prices .new_price {
        font-size: 18px;
    }

    .product_item .price_block .prices .old_price {
        color: #797a77;
        font-size: 14px;
    }

    .cart_count.count {
        width: 100%;
    }

    .modal_cart .cart_count.count {
        width: 155px;
    }

    .modal_cart .cart_count_persons.count {
        background-color: #fff;
    }

    .footer_logo img {
        height: 110px;
    }

    .modal_cart .close_cart {
        position: absolute;
        right: 20px;
        top: 20px;
        color: #fff;
        font-size: 30px;
    }

    .modal_cart .close_cart {
        background-image: url('../img/remove_item.svg');
        background-size: 34px;
    }

    .cart_items .cart_item .product_info .image_fit {
        width: initial;
        max-width: 90px;
        height: 70px;
    }

    .cart_item .product_text {
        width: 270px;
    }

    .cart_item .remove_item {
        transform: scale(1.5);
    }

    .add_to_order {
        padding-bottom: 32px;
    }

    .count.cart_count.cart_count_persons img {
        height: 44px;
    }

    .modal_cart .total {
        padding-left: 20px;
        padding-right: 20px;
    }

    .modal_cart .button_block {
        padding-left: 20px;
        padding-right: 20px;
    }
}



.rank_wrapper {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 24px;
}

.rank_wrapper.active {
    background-color: #20211C;
    color: #fff
}

.rank_wrapper .rank-discount {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rank_wrapper .rank-discount .rank_img {
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.rank_wrapper .rank-discount .rank_img img {
    width: 16px;
}

.rank_wrapper .rank-discount p {
    border-radius: 60px;
    padding: 8px 17px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 500;

}

.rank_wrapper .pank_text {
    font-size: 17px;
    margin-bottom: 15px;
}

.rank_wrapper .rank_proceed {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 6px;
}

.rank_wrapper .rank_proceed img {
    width: 19px;
    position: absolute;
    top: -5px;
}

.rank_wrapper .rank_hint {
    font-size: 13px;
    margin-bottom: 12px;
    opacity: 0.75;
}

.owl-rank .owl-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.owl-rank .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #dedede;
}

.owl-rank .owl-dot.active span {
    background-color: #FF0A0A;
}

.owl-rank .rank_wrapper {
    opacity: 0.5;
    border: 1px solid #7b7b7b
}

.owl-rank .rank_wrapper.active {
    opacity: 1;
}

.profile_body .profile_header {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 56px;
}

.profile_body .profile_header .btn-question {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: 2px solid #FF0A0A;
    background-color: #fff;
}

.profile_body .profile_info {
    display: flex;
    align-items: center;
}

.profile_body .profile-info>img {
    margin-right: 30px;
}

.profile_body .profile-info p {
    margin-bottom: 0;
    font-size: 16px;
}

.profile_body .profile-info .title {
    font-weight: 600;
    font-size: 36px;
    margin-bottom: 20px;
}

.profile_body .discount_info {
    display: flex;
}

.profile_body .discount_info p {
    padding: 8px 14px;
    margin-right: 6px;
    border-radius: 50px;
    border: 1px solid #eeeeed;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 0;
}

.profile_body .discount_info p.coins_count {
    border-color: #FF0A0A;
    color: #fff;
    background-color: #FF0A0A;
}

.profile_body .discount_info p.coins_count img {
    width: 16px;
    margin-left: 10px;
}

.profile_body .profile-info {
    display: flex;
    align-items: center;
}

.profile_sidebar {
    padding-left: 10px;
    padding-right: 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.profile_sidebar .aside_profile_footer {
    margin-top: auto;
}

.profile_sidebar .profile_header {
    background-color: #FF0A0A;
    padding: 10px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.profile_sidebar .profile_header .points {
    display: inline-block;
    margin-left: auto;
    background: linear-gradient(#FF3115, #FF5F49);
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 20px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);

}

.profile_sidebar .profile_info {
    display: flex;
    padding-left: 10px;
    align-items: center;
    color: #fff;
}

.profile_sidebar .profile_info img {
    margin-right: 12px;
    width: 50px;
}

.profile_sidebar .profile_info .text .name {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0px;
}

.profile_sidebar .profile_info .text .rank {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.profile_sidebar .profile_links ul {
    padding-left: 0;
    list-style: none;
    margin-bottom: 30px;
}

.profile_sidebar .profile_links ul li {
    margin-bottom: 5px;
}

.profile_sidebar .profile_links ul li a {
    padding: 19px;
    color: #000;
    display: flex;
    align-items: center;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}

.profile_sidebar .profile_links ul li a img {
    margin-right: 15px;
}

.profile_sidebar .profile_links ul li a.active {
    border-left: 2px solid #FF0A0A;
    background-color: rgba(255, 10, 10, 0.1);
}

.aside_profile_footer {
    margin-bottom: 50px;
}

.aside_profile_footer .logout {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 40px;
    border-radius: 12px;
    background-color: #FFF;
    border: 2px solid #FF0A0A;
    margin-bottom: 20px;
}

.aside_profile_footer .delete_profile {
    color: #FF0A0A;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    margin: 0 auto;
    display: block;
}

.btn_save_changes {
    font-size: 17px;
    font-weight: 600;
    color: #fff;
    border-radius: 30px;
    background-color: #FF0A0A;
    padding: 25px 37px;
    border: none;
    margin-top: 30px;
}

.user_update input {
    outline: none;
    border: none;
    border-radius: 0;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 500;
    border-bottom: 2px solid rgba(32, 33, 28, 0.1);
    width: calc(100% - 30px);
}

.user_update{
    padding-bottom: 30px;
}

.user_update label {
    opacity: 0.7;
    margin-bottom: 10px;
}

.profile_body h1 {
    margin-top: 30px;
    margin-bottom: 50px;
}

.order_item_simple_info {
    display: flex;
    justify-content: space-between;
}

.order_item_simple_info p {
    margin-bottom: 0;
    font-size: 12px;
    font-weight: 500;
    color: rgba(32, 33, 28, 0.6);
}

.order_item_simple_info p.black {
    font-size: 14px;
    color: #20211C
}

.order_item_info {
    padding-left: 15px;
    padding-right: 15px;
}

.order_item_simple_info {
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 0 15px #E1E1E8;
    background-color: #fff;
    align-items: center;
    padding-right: 30px;
}

.order-item {
    margin-bottom: 15px;
    position: relative;
}

.btn_order_show {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 17px;
    top: 17px;
    background-color: #E8E8ED;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show_review,
.write_review {
    font-size: 16px;
    font-weight: 500;
}

.show_review {
    color: #00AE2C;

}

.write_review {
    color: #FF0A0A
}

#accordionOrders {
    margin-bottom: 70px;
}

.order_item_additional_info .delivery {
    display: flex;
    flex-direction: column;
}

.order_item_additional_info .delivery .red {
    font-size: 12px;
    color: #FF0A0A;
    margin-bottom: auto;
}

.order_item_additional_info {
    padding: 25px;

}

.profile_body .reviews {
    max-width: 700px;
    margin-left: 50px;
    margin-top: 50px;
    background-color: #fff;
    border-radius: 20px;
}

.profile_body .reviews .item {
    padding: 20px;
}

.profile_body .review_header {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
}

.profile_body .item_profile {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile_body .item_profile img {
    margin-right: 15px;
}

.profile_body .reviews .item_content .text {
    margin-bottom: 30px;
}

.profile_body .item_profile .text p {
    margin-bottom: 0;
}

.profile_body .item_profile .text .title {
    font-size: 16px;
    font-weight: 600;
}

.profile_body .item_profile .text .pubdate {
    font-size: 12px;
    color: rgba(32, 33, 28, 0.6);
}

.reviews_page .profile_body {
    padding-top: 60px;
}

.reviews_page .profile_body h1 {
    padding-left: 50px;
}

.profile_body .reviews .item_content {
    margin-bottom: 30px;
}

.profile_body .reviews .item {
    margin-bottom: 20px;
}

/* Переключатель языков (partials/language_switcher.blade.php) */
.lang_switch {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.lang_switch_item {
    display: inline-block;
    padding: 4px 7px;
    font-size: 14px;
    line-height: 1;
    color: #7c7c7c;
    text-decoration: none;
    border-radius: 6px;
    transition: color .15s, background-color .15s;
}

a.lang_switch_item:hover {
    color: #20211C;
    background: #f2f2f2;
}

.lang_switch_item.is-active {
    color: #20211C;
    font-weight: 800;
    background: #f2f2f2;
}

/* Переключатель языка в бургер-меню — сегментированный выключатель:
   три равные доли в одной «пилюле», активная — белая. Правила
   перебивают #mobile-menu a, поэтому селекторы тоже с id. */

.mobile_lang {
    margin-top: 30px;
    padding: 22px 18px 0;
    border-top: 1px solid #EFEFF2;
}

.mobile_lang_title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9AA5;
}

#mobile-menu .lang_switch.lang_switch_mobile {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 4px;
    background: #F4F4F6;
    border-radius: 14px;
}

#mobile-menu .lang_switch.lang_switch_mobile .lang_switch_item {
    padding: 10px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    color: #7C7C87;
    background: transparent;
    border: none;
    border-radius: 11px;
    transition: background-color .18s, color .18s, box-shadow .18s;
}

#mobile-menu .lang_switch.lang_switch_mobile a.lang_switch_item:hover {
    color: #20211C;
    background: rgba(255, 255, 255, .6);
}

#mobile-menu .lang_switch.lang_switch_mobile .lang_switch_item.is-active {
    color: #181C2E;
    background: #fff;
    box-shadow: 0 1px 3px rgba(24, 28, 46, .14);
}

/* ── Юридические страницы: политика и оферта ──────────────────────────── */

.legal_container .legal_version {
    font-size: 14px;
    color: #8a8a8a;
    margin-bottom: 20px;
}

.legal_container .legal_intro {
    font-size: 17px;
    line-height: 1.5;
    max-width: 800px;
    margin-bottom: 35px;
}

.legal_body {
    max-width: 800px;
}

.legal_section {
    margin-bottom: 32px;
}

.legal_section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 14px;
}

.legal_container .legal_items {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.legal_container .legal_items > li {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.5;
}

.legal_item_number {
    flex: 0 0 auto;
    color: #8a8a8a;
    font-variant-numeric: tabular-nums;
}

.legal_item_text {
    flex: 1 1 260px;
}

.legal_container .legal_sublist {
    flex: 1 1 100%;
    margin: 6px 0 0 34px;
    padding-left: 18px;
}

.legal_container .legal_sublist li {
    margin-bottom: 4px;
    line-height: 1.5;
}

.legal_crosslink {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

/* ── Реквизиты продавца ───────────────────────────────────────────────── */

.requisites {
    display: grid;
    grid-template-columns: minmax(160px, 260px) 1fr;
    gap: 8px 24px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.requisites dt {
    color: #8a8a8a;
    font-weight: 400;
}

.requisites dd {
    margin: 0;
}

.requisites_line {
    font-size: 13px;
    line-height: 1.5;
    opacity: .7;
    margin: 8px 0 0;
}

.contacts_requisites {
    margin: 40px 0;
}

.contacts_requisites h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 18px;
}

.legal_links a {
    margin-right: 20px;
    text-decoration: underline;
}

/* ── Согласия на обработку данных ─────────────────────────────────────── */

/* Две галочки — одним блоком: так это читается как один смысловой кусок,
   а не как два случайных поля перед кнопкой. */
.consents_block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 16px;
    background: #F8F8FA;
    border-radius: 14px;
}

.consent_row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #6F6F78;
    cursor: pointer;
}

.consent_row input[type="checkbox"] {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #FF0A0A;
    cursor: pointer;
}

.consent_row label,
.consent_row span {
    margin: 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
    cursor: pointer;
}

.consent_row a {
    color: #FF0A0A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* В модалке входа у любого label серая «пилюля» на всю ширину —
   для строк согласия её нужно снять. */
.modal_login_forms .input_phone .consents_block {
    margin-bottom: 18px;
}

.modal_login_forms .input_phone .consent_row,
.modal_login_forms .input_phone .consent_row label {
    display: flex;
    width: auto;
    padding: 0;
    font-size: 13px;
    font-weight: 400;
    background: none;
    border-radius: 0;
}

.modal_login_forms .input_phone .consent_row label {
    display: block;
}

.checkout_consents {
    margin-bottom: 16px;
}

.consent_offer_note {
    font-size: 13px;
    line-height: 1.4;
    color: #8a8a8a;
    margin-bottom: 0;
}

/* ── Сообщения об ошибках вместо alert() ──────────────────────────────── */

/* Ошибка живёт рядом с полем, к которому относится: видно, что исправить. */
.form_error {
    margin-top: 10px;
    padding: 9px 12px;
    font-size: 13px;
    line-height: 1.35;
    color: #C2261B;
    background: #FFECEA;
    border-radius: 10px;
}

.has_error {
    box-shadow: 0 0 0 2px rgba(255, 10, 10, .35);
    border-radius: 14px;
    transition: box-shadow .2s;
}

/* Всплывающая плашка для того, что не привязано к полю. */
.toast_stack {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    width: max-content;
    max-width: calc(100vw - 32px);
    transform: translateX(-50%);
    pointer-events: none;
}

.toast_message {
    max-width: 100%;
    padding: 13px 20px;
    font-size: 14px;
    line-height: 1.35;
    color: #fff;
    background: #20211C;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(24, 28, 46, .22);
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity .22s, transform .22s;
    pointer-events: auto;
    cursor: pointer;
}

.toast_message.is_visible {
    opacity: 1;
    transform: translateY(0);
}

.toast_message.is_leaving {
    opacity: 0;
    transform: translateY(-12px);
}

.toast_message.toast_error {
    background: #C2261B;
}

.toast_message.toast_success {
    background: #1E8A54;
}

@media (prefers-reduced-motion: reduce) {
    .toast_message {
        transition: none;
    }
}

@media (max-width: 767px) {
    .requisites {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .requisites dd {
        margin-bottom: 10px;
    }
}

/* ── Уведомление о cookie ─────────────────────────────────────────────── */

.cookie_notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 20px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(24, 28, 46, .18);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .25s, transform .25s;
}

.cookie_notice.is_visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie_notice_text {
    font-size: 13px;
    line-height: 1.45;
    color: #55555F;
}

.cookie_notice_text a {
    color: #FF0A0A;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie_notice_button {
    flex: 0 0 auto;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #FF0A0A;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color .18s;
}

.cookie_notice_button:hover {
    background: #E00909;
}

/* Со счётчиками две кнопки: «Только необходимые» и «Принять». */
.cookie_notice_buttons {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie_notice_button_secondary {
    color: #55555F;
    background: #F1F1F4;
}

.cookie_notice_button_secondary:hover {
    background: #E4E4E9;
}

@media (max-width: 575px) {
    .cookie_notice {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
    }

    .cookie_notice_buttons {
        flex-direction: column-reverse;
    }

    .cookie_notice_button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie_notice {
        transition: none;
    }
}

/* Город: переключатель в шапке и модалка выбора.
   Оформление то же, что у остального сайта: красный акцент #FF0A0A,
   крупные скругления, светло-серые подложки. На телефоне модалка
   превращается в шторку снизу — так до списка ближе большому пальцу. */

.city_switch {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 6px 12px;
    border-radius: 20px;
    background: #F8F8FA;
    cursor: pointer;
    color: #20211C;
    transition: background-color .15s, color .15s;
}

.city_switch:hover,
.city_switch:focus-visible {
    background: #FFECEA;
    color: #FF0A0A;
    outline: none;
}

.city_switch img {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.city_switch_name {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}

.city_switch_fixed {
    background: transparent;
}

/* Язык и город в шапке: две строки в одном блоке, язык сверху.
   Просвет между ними намеренно маленький — это одна настройка. */
.header_city_lang {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

.header_city_lang .city_switch {
    padding: 3px 10px;
    background: transparent;
}

.header_city_lang .city_switch:hover,
.header_city_lang .city_switch:focus-visible {
    background: #FFECEA;
}

.header_city_lang .city_switch_name {
    font-size: 13px;
}

.header_city_lang .city_switch img {
    width: 13px;
    height: 13px;
}

.city_switch_fixed .city_switch_name {
    font-size: 13px;
}

.mobile_city {
    margin-top: 22px;
    padding: 22px 18px 0;
    border-top: 1px solid #EFEFF2;
}

.mobile_city_title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9AA5;
}

#mobile-menu .city_switch.city_switch_mobile {
    justify-content: flex-start;
    padding: 14px 16px;
    background: #F4F4F6;
    border-radius: 16px;
}

#mobile-menu .city_switch.city_switch_mobile .city_switch_name {
    font-size: 16px;
}

/* --- модалка выбора города --- */

.city_modal .modal-dialog {
    max-width: 440px;
}

.city_modal .modal-content {
    border: none;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(32, 33, 28, .18);
    overflow: hidden;
}

.city_modal .modal-content .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background-color: #F4F4F6;
    background-size: 11px;
    opacity: .55;
    transition: opacity .15s, background-color .15s;
}

.city_modal .modal-content .btn-close:hover,
.city_modal .modal-content .btn-close:focus-visible {
    opacity: 1;
    background-color: #E8E8ED;
    box-shadow: none;
}

.city_modal_content {
    padding: 36px 32px 32px;
}

.city_modal_title {
    margin: 0 0 8px;
    padding-right: 40px;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    color: #20211C;
}

.city_modal_desc {
    margin: 0 0 24px;
    font-size: 15px;
    line-height: 1.45;
    color: #8A8A93;
}

.city_list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.city_list li {
    list-style: none;
}

.city_item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 44px 14px 14px;
    border: 2px solid transparent;
    border-radius: 20px;
    background: #F8F8FA;
    font-size: 17px;
    font-weight: 700;
    color: #20211C;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, transform .15s;
}

.city_item:hover,
.city_item:focus-visible {
    background: #FFECEA;
    color: #20211C;
    outline: none;
}

.city_item:active {
    transform: scale(.99);
}

.city_item.is-active {
    background: #fff;
    border-color: #FF0A0A;
}

.city_item_pin {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
}

.city_item.is-active .city_item_pin {
    background: #FFECEA;
}

.city_item_pin img {
    width: 18px;
    height: 18px;
}

.city_item_name {
    flex: 1 1 auto;
}

/* Стрелка справа, а у выбранного города — красная галочка. */
.city_item::after {
    content: "";
    position: absolute;
    right: 20px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border: solid #C7C7CF;
    border-width: 2px 2px 0 0;
    transform: rotate(45deg);
    transition: border-color .15s;
}

.city_item:hover::after {
    border-color: #FF0A0A;
}

.city_item.is-active::after {
    top: calc(50% - 7px);
    width: 14px;
    height: 8px;
    border: solid #FF0A0A;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

/* --- выбор филиала для WhatsApp: та же модалка, что у города --- */

.whatsapp_branch {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px 12px 14px;
    border-radius: 20px;
    background: #F8F8FA;
}

.whatsapp_branch_address {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #20211C;
}

/* Кнопка как «Применить» у промокода: тёмная, при наведении красная.
   Значок WhatsApp на ней — сразу видно, куда ведёт. */
.whatsapp_branch_button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 10px 16px 10px 14px;
    border-radius: 14px;
    background: #20211C;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: background-color .15s;
}

.whatsapp_branch_button img {
    width: 18px;
    height: 18px;
    /* Значок в файле тёмный, на тёмной кнопке он белый. */
    filter: brightness(0) invert(1);
}

.whatsapp_branch_button:hover,
.whatsapp_branch_button:focus-visible {
    background: #FF0A0A;
    color: #fff;
    outline: none;
}

/* Телефон и планшет: шторка снизу со скруглённым верхом, как «Вход»
   и «Ещё». До 575px то же самое уже делают правила .city_modal. */
@media (max-width: 991px) {
    .whatsapp_modal {
        overflow: hidden;
    }

    .whatsapp_modal .modal-dialog {
        display: flex;
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .whatsapp_modal .modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 40px rgba(24, 28, 46, .16);
    }

    .whatsapp_modal .city_modal_content {
        padding: 28px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp_modal .city_modal_content::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        margin: -12px auto 18px;
        border-radius: 2px;
        background: #E8E8ED;
    }

    .whatsapp_modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .3s ease;
    }

    .whatsapp_modal.show .modal-dialog {
        transform: none;
    }
}

@media (max-width: 575px) {
    .whatsapp_branch_address {
        font-size: 15px;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .whatsapp_modal.fade .modal-dialog {
        transform: none;
        transition: none;
    }
}

@media (max-width: 991px) {
    .top_header .city_switch {
        display: none;
    }
}

/* Телефон: шторка снизу во всю ширину. */
@media (max-width: 575px) {
    .city_modal .modal-dialog {
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .city_modal .modal-content {
        border-radius: 28px 28px 0 0;
    }

    .city_modal_content {
        padding: 28px 20px calc(24px + env(safe-area-inset-bottom));
    }

    /* Полоска-«ручка»: подсказывает, что это шторка. */
    .city_modal_content::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        margin: -12px auto 18px;
        border-radius: 2px;
        background: #E8E8ED;
    }

    .city_modal_title {
        font-size: 21px;
    }

    .city_modal_desc {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .city_item {
        padding: 16px 44px 16px 14px;
        font-size: 16px;
    }

    .city_modal.fade .modal-dialog {
        transform: translateY(40px);
    }

    .city_modal.show .modal-dialog {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .city_item,
    .city_switch,
    .city_modal .modal-dialog {
        transition: none;
    }
}

/* ── Мобильная версия как приложение ──────────────────────────────────────
   Сайт открывается в webview, поэтому на телефоне и планшете (≤ 991px)
   он выглядит как приложение: закреплённая шапка, нижнее меню вместо
   подвала и шторка «Ещё». Карточки товаров и остальные блоки не тронуты. */

.app_tabbar {
    display: none;
}

@media (max-width: 991px) {
    :root {
        --app-bar-height: 60px;
        --app-tabbar-height: 64px;
        --app-safe-top: env(safe-area-inset-top, 0px);
        --app-safe-bottom: env(safe-area-inset-bottom, 0px);
    }

    body {
        padding-bottom: calc(var(--app-tabbar-height) + var(--app-safe-bottom) + 28px);
        -webkit-tap-highlight-color: transparent;
    }

    /* Подвала на телефоне нет: его содержимое переехало в шторку «Ещё».
       Сам footer остаётся — внутри него лежит боковая корзина. */
    footer {
        padding: 0;
        background: none;
    }

    /* --- шапка --- */

    /* z-index выше нижнего меню: шторка «Ещё» лежит внутри шапки
       и должна его перекрывать. Только шапка сайта (body > header):
       под правило не должен попадать <header> внутри карточек. */
    body > header {
        position: sticky;
        top: 0;
        z-index: 30;
        padding-top: 0;
    }

    .header_mobile_items.app_bar {
        position: relative;
        z-index: 7;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        height: calc(var(--app-bar-height) + var(--app-safe-top));
        margin: 0;
        padding: var(--app-safe-top) 15px 0;
        background: rgba(248, 248, 250, .92);
        border-radius: 0;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    .app_bar .app_bar_logo {
        flex: 0 0 auto;
        display: block;
        line-height: 0;
    }

    .app_bar .app_bar_logo .logo_img {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .app_bar_info {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        min-width: 0;
    }

    .app_bar_brand,
    .city_switch.city_switch_app .city_switch_name {
        font-size: 17px;
        line-height: 1.1;
        font-weight: 800;
        color: #20211C;
    }

    .city_switch.city_switch_app {
        max-width: 100%;
        padding: 0;
        background: none;
        border-radius: 0;
    }

    /* Снимаем общий отступ картинок старой шапки. */
    .app_bar .city_switch.city_switch_app img {
        padding: 0;
    }

    .city_switch.city_switch_app .city_switch_name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Уголок вниз: город можно сменить. */
    .city_switch.city_switch_app::after {
        content: "";
        flex: 0 0 auto;
        width: 7px;
        height: 7px;
        margin: -3px 0 0 3px;
        border: solid #20211C;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

    .app_bar_schedule {
        max-width: 100%;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.1;
        font-weight: 500;
        color: #8A8A93;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .app_bar .app_bar_btn {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        padding: 0;
        color: #20211C;
        background: #fff;
        border: none;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(24, 28, 46, .06);
    }

    .app_bar .app_bar_btn img {
        width: 19px;
        height: 19px;
    }

    .app_bar .app_bar_btn:active {
        background: #FFECEA;
    }

    /* Язык в шапке: круглая кнопка с кодом и выпадающий список. */
    .app_bar_lang {
        flex: 0 0 auto;
    }

    .app_bar .app_bar_lang_button {
        font-size: 13px;
        line-height: 1;
        font-weight: 800;
        letter-spacing: .02em;
    }

    .app_bar .app_bar_lang_button[aria-expanded="true"] {
        color: #fff;
        background: #FF0A0A;
    }

    .app_bar_lang_menu {
        min-width: 172px;
        margin-top: 8px !important;
        padding: 6px;
        border: none;
        border-radius: 18px;
        box-shadow: 0 12px 32px rgba(24, 28, 46, .16);
    }

    .app_bar_lang_item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 12px;
        font-size: 15px;
        font-weight: 600;
        color: #20211C;
        text-decoration: none;
        border-radius: 13px;
    }

    .app_bar_lang_item b {
        width: 26px;
        font-size: 12px;
        font-weight: 800;
        color: #8A8A93;
    }

    a.app_bar_lang_item:active {
        background: #F4F4F6;
    }

    .app_bar_lang_item.is-active {
        background: #FFECEA;
    }

    .app_bar_lang_item.is-active b {
        color: #FF0A0A;
    }

    .app_bar .search_container.app_bar_search {
        position: static;
        flex: 0 0 auto;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
    }

    /* Поиск открыт: строка занимает всю шапку. */
    .app_bar.is_searching > *:not(.search_container) {
        display: none;
    }

    .app_bar.is_searching .search_container.app_bar_search {
        flex: 1 1 auto;
    }

    .app_bar.is_searching .show_search {
        display: none;
    }

    .app_bar .header_search.mobile_search {
        position: static;
        align-items: center;
        width: 100%;
        height: 42px;
        background: #fff;
        border-radius: 21px;
        box-shadow: 0 2px 8px rgba(24, 28, 46, .06);
    }

    .app_bar .header_search.mobile_search input {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        height: 100%;
        padding-left: 18px;
        font-size: 16px;
        background: transparent;
    }

    .app_bar .search_results {
        top: calc(100% + 4px);
        left: 15px;
        right: 15px;
        width: auto;
        max-height: 60vh;
        overflow-y: auto;
        border-radius: 22px;
    }

    .app_bar .search_results img {
        padding: 0;
    }

    /* Лента категорий — сразу под шапкой. */
    .mobile_food_menu {
        top: calc(var(--app-bar-height) + var(--app-safe-top));
        background: rgba(248, 248, 250, .96);
        box-shadow: 0 6px 14px rgba(24, 28, 46, .06);
        scrollbar-width: none;
    }

    .mobile_food_menu::-webkit-scrollbar {
        display: none;
    }

    .mobile_food_menu ul {
        gap: 6px;
        padding: 6px 15px 10px;
    }

    .mobile_food_menu a {
        padding: 8px 14px;
        font-size: 14px;
        font-weight: 600;
        background: #fff;
        border-radius: 20px;
    }

    /* --- нижнее меню --- */

    .app_tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 25;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        height: calc(var(--app-tabbar-height) + var(--app-safe-bottom));
        padding: 0 6px var(--app-safe-bottom);
        background: #fff;
        border-radius: 24px 24px 0 0;
        box-shadow: 0 -6px 24px rgba(24, 28, 46, .09);
    }

    .app_tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        min-width: 0;
        height: var(--app-tabbar-height);
        padding: 0 2px;
        font-family: inherit;
        color: #8A8A93;
        text-decoration: none;
        background: none;
        border: none;
        transition: color .15s;
    }

    .app_tab svg {
        flex: 0 0 auto;
    }

    .app_tab_label {
        max-width: 100%;
        overflow: hidden;
        font-size: 11px;
        line-height: 1.1;
        font-weight: 700;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .app_tab.is-active,
    .app_tab:active {
        color: #FF0A0A;
    }

    /* Корзина — главная кнопка: красный круг, приподнятый над меню. */
    .app_tab.app_tab_cart {
        justify-content: flex-end;
        padding-bottom: 9px;
        color: #20211C;
        overflow: visible;
    }

    .app_tab_cart_button {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        margin-top: -26px;
        color: #fff;
        background: #FF0A0A;
        border: 4px solid #fff;
        border-radius: 50%;
        box-shadow: 0 8px 18px rgba(255, 10, 10, .32);
        transition: transform .15s;
    }

    .app_tab_cart:active .app_tab_cart_button {
        transform: scale(.94);
    }

    .app_tab_badge {
        position: absolute;
        top: -6px;
        right: -8px;
        min-width: 21px;
        height: 21px;
        padding: 0 5px;
        font-size: 11px;
        line-height: 17px;
        font-weight: 800;
        text-align: center;
        color: #fff;
        background: #20211C;
        border: 2px solid #fff;
        border-radius: 11px;
    }

    .app_tab_badge[hidden] {
        display: none;
    }

    /* Плашка cookie — над нижним меню, а не поверх него. */
    .cookie_notice {
        bottom: calc(var(--app-tabbar-height) + var(--app-safe-bottom) + 12px);
    }

    /* --- шторка «Ещё» --- */

    #mobile-menu {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 88vh;
        max-height: 88dvh;
        padding: 12px 20px calc(24px + var(--app-safe-bottom));
        overflow-y: auto;
        color: #20211C;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 40px rgba(24, 28, 46, .16);
        transform: translateY(105%);
        transition: transform .3s ease;
    }

    #mobile-menu.active {
        left: 0;
        transform: none;
    }

    /* Полоска-«ручка», как у шторки выбора города. */
    #mobile-menu::before {
        content: "";
        display: block;
        width: 44px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 2px;
        background: #E8E8ED;
    }

    .more_sheet_head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    #mobile-menu a.more_sheet_phone {
        padding: 0;
        font-size: 22px;
        line-height: 1.2;
        font-weight: 800;
        white-space: nowrap;
        color: #20211C;
    }

    .more_sheet_schedule {
        margin: 4px 0 0;
        font-size: 13px;
        line-height: 1.3;
        color: #8A8A93;
    }

    .more_sheet_social {
        display: flex;
        flex: 0 0 auto;
        gap: 8px;
    }

    #mobile-menu .more_sheet_social a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        padding: 0;
        background: #20211C;
        border-radius: 50%;
    }

    #mobile-menu .more_sheet_social a img {
        width: 20px;
        height: 20px;
    }

    #mobile-menu .mobile_menu_list {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin: 20px 0 0;
        padding: 0;
    }

    #mobile-menu .mobile_menu_list > li,
    #mobile-menu .mobile_menu_list > li:hover {
        margin: 0;
        border: none;
    }

    #mobile-menu .mobile_menu_list > li > a {
        position: relative;
        display: flex;
        align-items: center;
        padding: 15px 44px 15px 16px;
        font-size: 16px;
        font-weight: 700;
        color: #20211C;
        background: #F8F8FA;
        border-radius: 18px;
    }

    #mobile-menu .mobile_menu_list > li > a:active {
        background: #FFECEA;
    }

    #mobile-menu .mobile_menu_list > li > a::after {
        content: "";
        position: absolute;
        top: calc(50% - 4px);
        right: 20px;
        width: 8px;
        height: 8px;
        border: solid #C7C7CF;
        border-width: 2px 2px 0 0;
        transform: rotate(45deg);
    }

    #mobile-menu .mobile_menu_list li img {
        width: 22px;
        height: 22px;
        margin-right: 12px;
    }

    #mobile-menu .mobile_city,
    #mobile-menu .mobile_lang {
        margin-top: 20px;
        padding: 0;
        border-top: none;
    }

    .more_sheet_legal {
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid #EFEFF2;
    }

    #mobile-menu .more_sheet_legal .legal_links {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 18px;
        margin: 0;
    }

    #mobile-menu .more_sheet_legal a {
        display: inline;
        padding: 0;
        font-size: 13px;
        color: #55555F;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    #mobile-menu .more_sheet_legal .legal_links a {
        margin: 0;
    }

    .more_sheet_legal .requisites_line,
    .more_sheet_copy {
        margin: 10px 0 0;
        font-size: 12px;
        line-height: 1.45;
        color: #8A8A93;
        opacity: 1;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    #mobile-menu,
    .app_tab,
    .app_tab_cart_button {
        transition: none;
    }
}

/* ── Каталог на телефоне: ровные карточки ─────────────────────────────── */

@media (max-width: 576px) {
    /* Карточки в ряду — одной высоты: колонка растягивает карточку,
       а цена с кнопкой прижаты к низу. */
    .products_container .row > [class*="col-"] {
        display: flex;
    }

    .products_container .product_item {
        width: 100%;
    }

    .products_container .product_item .open_modal {
        flex: 1 1 auto;
    }

    .products_container .product_item .price_block {
        margin-top: auto;
    }

    /* Длинный состав не раздувает карточку: не больше трёх строк,
       целиком он виден в окне товара. */
    .products_container .product_item .product_description span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        line-clamp: 3;
    }
}

/* Последняя карточка без пары (нечётное число товаров в категории)
   занимает всю ширину: фото слева, справа по порядку — название,
   состав, количество, цена с кнопкой. */
@media (max-width: 991px) {
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_item {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        grid-template-rows: auto auto 1fr auto;
        column-gap: 15px;
    }

    /* Обёртки растворяются, чтобы название, состав и количество
       можно было расставить по строкам сетки независимо. */
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .open_modal,
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_title {
        display: contents;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .image_container {
        grid-column: 1;
        grid-row: 1 / span 4;
        align-self: center;
        margin-bottom: 0;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_title h3,
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_title .count,
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_description,
    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .price_block {
        grid-column: 2;
        padding-left: 0;
        padding-right: 7px;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_title h3 {
        grid-row: 1;
        margin: 10px 0 8px;
        cursor: pointer;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_description {
        grid-row: 2;
        margin: 0 0 10px;
        cursor: pointer;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .product_title .count {
        grid-row: 3;
        align-self: start;
        justify-self: start;
        margin: 0 0 12px;
        padding: 8px;
    }

    .products_container .row > [class*="col-"]:last-child:nth-child(odd) .price_block {
        grid-row: 4;
    }
}

/* ── Баннер на телефоне: слайды одной высоты ──────────────────────────────
   Высота слайда здесь по содержимому, поэтому раньше каждый слайд был
   своей высоты и страница прыгала при перелистывании. Теперь все слайды
   лежат в одном flex-ряду и растягиваются по самому высокому, а неактивные
   просто невидимы (вместо display: none, как в Bootstrap). */
@media (max-width: 768px) {
    .banner_container .carousel-inner {
        display: flex;
    }

    .banner_container .carousel-item {
        display: block;
        flex: 0 0 100%;
        visibility: hidden;
    }

    .banner_container .carousel-item.active,
    .banner_container .carousel-item-next,
    .banner_container .carousel-item-prev {
        visibility: visible;
    }

    /* Новый слайд сначала ставится за край без анимации. В Bootstrap это
       получается само (слайд появляется из display: none), а здесь слайды
       отрисованы всегда — без этого правила новый слайд не выезжал, а сразу
       ложился поверх старого, и тот был виден в скруглённых углах. */
    .banner_container .carousel-item-next:not(.carousel-item-start),
    .banner_container .carousel-item-prev:not(.carousel-item-end) {
        transition: none;
    }

    /* Внутри слайда: текст сверху, картинка занимает остаток,
       кнопка всегда у нижнего края. */
    .banner_container .carousel-item .container-fluid .row {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .banner_container .carousel-item .row .col-md-6 {
        height: auto;
    }

    .banner_container .carousel-item .row .col-md-6:last-child {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
    }

    .banner_container .carousel-item .carousel_text {
        height: auto;
    }

    .banner_container .carousel-item .carousel_image_wrapper {
        flex: 1 1 auto;
        height: auto;
    }
}

/* ── Профиль: программа лояльности ────────────────────────────────────────
   Баланс бонусов, путь до следующего уровня, все уровни, правила и
   последние операции. Оформление общее с сайтом: тёмная карточка #20211C,
   красный акцент #FF0A0A, светлые подложки, крупные скругления. */

.loyalty {
    padding: 40px 0 60px;
}

.loyalty_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.profile_body h1.loyalty_name {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    color: #20211C;
}

.loyalty_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.loyalty_card {
    margin-bottom: 16px;
    padding: 24px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.loyalty_card p {
    margin: 0;
}

.loyalty_card .loyalty_card_title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
    color: #20211C;
}

/* --- баланс --- */

.loyalty_card.loyalty_balance {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    color: #fff;
    background: #20211C;
    border-color: #20211C;
}

.loyalty_balance .loyalty_label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, .6);
}

.loyalty_balance .loyalty_value {
    margin: 4px 0 12px;
    font-size: 44px;
    line-height: 1.05;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.loyalty_balance .loyalty_note {
    max-width: 280px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .6);
}

.loyalty_rate {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 104px;
    padding: 12px 14px;
    text-align: center;
    background: #FF0A0A;
    border-radius: 18px;
}

.loyalty_rate_value {
    font-size: 28px;
    line-height: 1.1;
    font-weight: 800;
}

.loyalty_rate_hint {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}

/* --- путь до следующего уровня --- */

.loyalty_progress {
    display: flex;
    flex-direction: column;
}

.loyalty_progress .loyalty_left {
    font-size: 14px;
    color: #6F6F78;
}

.loyalty_bar {
    height: 10px;
    margin-top: auto;
    overflow: hidden;
    background: #F0F0F3;
    border-radius: 5px;
}

.loyalty_progress .loyalty_left + .loyalty_bar {
    margin-top: 22px;
}

.loyalty_bar span {
    display: block;
    height: 100%;
    min-width: 10px;
    background: #FF0A0A;
    border-radius: 5px;
}

.loyalty_progress .loyalty_bar_caption {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #20211C;
    font-variant-numeric: tabular-nums;
}

/* --- уровни --- */

.loyalty_levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.loyalty_level {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    background: #F8F8FA;
    border: 2px solid transparent;
    border-radius: 18px;
}

/* Название уровня («Новичок», «Профессионал») — над процентом. */
.loyalty_level_name {
    font-size: 14px;
    font-weight: 700;
    color: #8A8A93;
}

.loyalty_level.is-done .loyalty_level_name,
.loyalty_level.is-current .loyalty_level_name {
    color: #20211C;
}

/* Имя покупателя и его статус под ним: уровень или VIP. */
.loyalty_who {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.loyalty_status_name {
    align-self: flex-start;
    margin: 0;
    padding: 4px 12px;
    border-radius: 500px;
    background: #FFECEA;
    color: #FF0A0A;
    font-size: 14px;
    font-weight: 700;
}

.loyalty_status_name.is_vip {
    background: #20211C;
    color: #FFD36E;
}

.loyalty_level_percent {
    font-size: 22px;
    line-height: 1.1;
    font-weight: 800;
    color: #9A9AA5;
}

.loyalty_level_from {
    font-size: 13px;
    color: #8A8A93;
}

.loyalty_level.is-done .loyalty_level_percent,
.loyalty_level.is-current .loyalty_level_percent {
    color: #20211C;
}

/* Пройденный уровень — красная галочка в углу. */
.loyalty_level.is-done::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 12px;
    height: 7px;
    border: solid #FF0A0A;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

.loyalty_level.is-current {
    background: #fff;
    border-color: #FF0A0A;
}

.loyalty_level.is-current .loyalty_level_percent {
    color: #FF0A0A;
}

.loyalty_level_mark {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #FF0A0A;
}

/* --- правила --- */

.loyalty_how {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: loyalty-step;
}

.loyalty_how li {
    position: relative;
    min-height: 28px;
    padding-left: 40px;
    font-size: 14px;
    line-height: 1.45;
    color: #55555F;
    counter-increment: loyalty-step;
}

.loyalty_how li::before {
    content: counter(loyalty-step);
    position: absolute;
    top: 0;
    left: 0;
    width: 28px;
    height: 28px;
    font-size: 13px;
    line-height: 28px;
    font-weight: 700;
    text-align: center;
    color: #20211C;
    background: #F4F4F6;
    border-radius: 50%;
}

.loyalty_how li.is-accent {
    font-weight: 600;
    color: #20211C;
}

.loyalty_how li.is-accent::before {
    color: #fff;
    background: #FF0A0A;
}

/* --- операции --- */

.loyalty_card .loyalty_empty {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: #8A8A93;
}

.loyalty_history {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.loyalty_history li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #EFEFF2;
}

.loyalty_history li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.loyalty_history_text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.loyalty_history_title {
    font-size: 14px;
    font-weight: 600;
    color: #20211C;
}

.loyalty_history_date {
    font-size: 12px;
    color: #8A8A93;
}

.loyalty_history_amount {
    flex: 0 0 auto;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.loyalty_history_amount.is-credit {
    color: #1E8A54;
}

.loyalty_history_amount.is-debit {
    color: #20211C;
}

@media (max-width: 991px) {
    .loyalty {
        padding: 20px 0 30px;
    }

    /* Имя уже есть в красной карточке над меню кабинета. */
    .loyalty_top {
        display: none;
    }

    .loyalty_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .loyalty_card {
        margin-bottom: 12px;
        padding: 20px;
        border-radius: 22px;
    }

    .loyalty_balance .loyalty_value {
        font-size: 38px;
    }

    .loyalty_levels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Меню кабинета на телефоне — лента кнопок, а не список на весь экран:
       содержимое страницы видно сразу. */
    .profile_sidebar {
        min-height: 0;
        padding: 0;
        background: none;
    }

    .profile_sidebar .profile_header {
        margin: 12px 0;
        padding: 12px;
    }

    .profile_sidebar .profile_info .text .name {
        font-size: 20px;
    }

    .profile_sidebar .profile_links ul {
        display: flex;
        gap: 8px;
        margin: 0 -15px 4px;
        padding: 0 15px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .profile_sidebar .profile_links ul::-webkit-scrollbar {
        display: none;
    }

    .profile_sidebar .profile_links ul li {
        flex: 0 0 auto;
        margin: 0;
    }

    .profile_sidebar .profile_links ul li a {
        padding: 10px 16px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        background: #fff;
        border-radius: 20px;
    }

    .profile_sidebar .profile_links ul li a.active {
        color: #fff;
        background: #FF0A0A;
        border-left: none;
    }

    .profile_sidebar .profile_links ul li a img {
        display: none;
    }

}

/* ── Личный кабинет: адреса, отзывы, заказы на телефоне ───────────────────
   Те же карточки, что в профиле: белая подложка, тонкая рамка, скругление
   22–24px, красный акцент. */

/* --- адреса --- */

.addr_list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin-bottom: 60px;
}

.addr_empty {
    margin: 0 0 4px;
    font-size: 15px;
    color: #8A8A93;
}

.addr_card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 22px;
}

.addr_pin {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFECEA;
    border-radius: 50%;
}

.addr_pin img {
    width: 18px;
    height: 18px;
}

.addr_text {
    flex: 1 1 auto;
    min-width: 0;
}

.addr_text p {
    margin: 0;
    overflow-wrap: anywhere;
}

.addr_title {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #20211C;
}

.addr_details {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.4;
    color: #8A8A93;
}

.addr_actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.addr_actions form {
    margin: 0;
}

.addr_action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #20211C;
    background: #F4F4F6;
    border: none;
    border-radius: 50%;
    transition: background-color .15s, color .15s;
}

.addr_action:hover,
.addr_action:focus-visible {
    color: #FF0A0A;
    background: #FFECEA;
    outline: none;
}

.addr_action.is-danger:hover,
.addr_action.is-danger:focus-visible {
    color: #fff;
    background: #FF0A0A;
}

/* «Добавить адрес» — пунктирная карточка в конце списка. */
.addr_add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    font-size: 16px;
    font-weight: 700;
    color: #FF0A0A;
    text-decoration: none;
    border: 2px dashed #FFC9C4;
    border-radius: 22px;
    transition: background-color .15s, border-color .15s;
}

.addr_add:hover {
    color: #FF0A0A;
    background: #FFECEA;
    border-color: #FF0A0A;
}

.addr_add_plus {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    font-size: 20px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
    background: #FF0A0A;
    border-radius: 50%;
}

/* --- форма адреса --- */

.addr_form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
    margin-bottom: 60px;
    padding: 24px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.addr_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.addr_field_wide,
.addr_form_actions {
    grid-column: 1 / -1;
}

.addr_field label {
    font-size: 13px;
    font-weight: 600;
    color: #6F6F78;
}

.addr_field input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #20211C;
    background: #F8F8FA;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    transition: border-color .15s, background-color .15s;
}

.addr_field input:focus {
    background: #fff;
    border-color: #FF0A0A;
}

.addr_field input.is-invalid {
    border-color: #C2261B;
}

.addr_error {
    font-size: 13px;
    color: #C2261B;
}

/* Подсказка «что можно вводить» под полем: лишний символ убран при вводе
   (js/modules/input-charset.js). */
.input_charset_hint {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.35;
    color: #C2261B;
}

.input_charset_hint[hidden] {
    display: none;
}

.addr_form_actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.addr_submit {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #FF0A0A;
    border: none;
    border-radius: 30px;
    transition: background-color .15s;
}

.addr_submit:hover {
    background: #E00909;
}

.addr_cancel {
    font-size: 15px;
    font-weight: 600;
    color: #6F6F78;
    text-decoration: none;
}

.addr_cancel:hover {
    color: #20211C;
}

/* --- мои отзывы --- */

.my_reviews {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin-bottom: 60px;
}

.my_review {
    padding: 22px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.my_review p {
    margin: 0;
}

.my_review_head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.my_review_order {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #20211C;
}

.my_review_date {
    font-size: 13px;
    color: #8A8A93;
}

/* Всегда пять звёзд в одну строку: непоставленные — бледные. */
.my_review_stars {
    display: flex;
    flex: 0 0 auto;
    gap: 3px;
    padding-top: 2px;
}

.my_review_stars img {
    width: 18px;
    height: 18px;
}

.my_review_stars img.is-off {
    filter: grayscale(1);
    opacity: .25;
}

.my_review .my_review_text {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #20211C;
    overflow-wrap: anywhere;
}

.my_review_photo {
    display: inline-block;
    margin-top: 14px;
}

.my_review_photo img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
}

.my_review_reply {
    margin-top: 16px;
    padding: 14px 16px;
    background: #F8F8FA;
    border-radius: 18px;
}

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

.my_review_reply_head img {
    width: 34px;
    height: 34px;
}

.my_review_reply_head > span {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.3;
    color: #8A8A93;
}

.my_review_reply_head b {
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
}

.my_review .my_review_reply_text {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #55555F;
}

.my_reviews_empty {
    padding: 28px 22px;
    text-align: center;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.my_reviews_empty p {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
    color: #6F6F78;
}

.my_reviews_empty a {
    display: inline-block;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    background: #FF0A0A;
    border-radius: 24px;
}

@media (max-width: 991px) {
    .profile_body h1 {
        margin: 18px 0 16px;
        font-size: 24px;
        font-weight: 700;
    }

    .addr_list,
    .my_reviews {
        margin-bottom: 20px;
    }

    .addr_card {
        padding: 14px;
        border-radius: 20px;
    }

    .addr_title {
        font-size: 16px;
    }

    .addr_form {
        grid-template-columns: minmax(0, 1fr);
        margin-bottom: 20px;
        padding: 18px;
        border-radius: 22px;
    }

    .addr_submit {
        flex: 1 1 auto;
    }

    .my_review {
        padding: 18px;
        border-radius: 22px;
    }

    .my_review_order {
        font-size: 16px;
    }

    .my_review_stars img {
        width: 16px;
        height: 16px;
    }
}

/* ── Мои заказы ───────────────────────────────────────────────────────────
   Карточка заказа: шапка (номер, дата, адрес, статус, сумма, отзыв) и
   раскрывающийся состав. На широком экране шапка — одна строка, на
   телефоне — три. */

#accordionOrders {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 980px;
}

.order-item {
    margin: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.order_head {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) auto auto auto auto;
    grid-template-areas: "main place status sum review toggle";
    align-items: center;
    gap: 8px 20px;
    padding: 18px 20px 18px 24px;
}

.order_head p {
    margin: 0;
}

.order_head_main {
    grid-area: main;
    min-width: 0;
}

.order_number {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
    color: #20211C;
    white-space: nowrap;
}

.order_date {
    font-size: 13px;
    color: #8A8A93;
}

.order_place {
    grid-area: place;
    font-size: 14px;
    line-height: 1.4;
    color: #55555F;
    overflow-wrap: anywhere;
}

.order_item_status {
    grid-area: status;
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    color: #55555F;
    background: #F4F4F6;
    border-radius: 12px;
}

.order_item_status.is-completed {
    color: #1E8A54;
    background: #E6F5EC;
}

.order_item_status.is-cancelled {
    color: #C2261B;
    background: #FFECEA;
}

.order_item_status.is-new,
.order_item_status.is-processing,
.order_item_status.is-produced,
.order_item_status.is-delivering {
    color: #9A5B00;
    background: #FFF3DC;
}

.order_sum {
    grid-area: sum;
    min-width: 92px;
    font-size: 17px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    color: #20211C;
    font-variant-numeric: tabular-nums;
}

.order_review {
    grid-area: review;
    display: inline-block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 18px;
    transition: filter .15s;
}

.order_review:hover {
    filter: brightness(.96);
}

.order_review.write_review {
    color: #FF0A0A;
    background: #FFECEA;
}

.order_review.show_review {
    color: #1E8A54;
    background: #E6F5EC;
}

.order_toggle {
    grid-area: toggle;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #F4F4F6;
    border: none;
    border-radius: 50%;
    transition: transform .2s, background-color .15s;
}

.order_toggle:hover {
    background: #E8E8ED;
}

.order_toggle:not(.collapsed) {
    background: #FFECEA;
    transform: rotate(180deg);
}

/* Узкий ноутбук: адрес не помещается в строку — уходит на вторую. */
@media (min-width: 992px) and (max-width: 1199px) {
    .order_head {
        grid-template-columns: minmax(0, 1fr) auto auto auto auto;
        grid-template-areas:
            "main status sum review toggle"
            "place place place place place";
    }
}

/* --- раскрытая часть --- */

.order_body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 20px 40px;
    padding: 20px 24px 24px;
    background: #FCFCFD;
    border-top: 1px solid #EFEFF2;
}

.order_body p {
    margin: 0;
}

.order_body .order_block_title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9AA5;
}

.order_block_text {
    font-size: 15px;
    line-height: 1.45;
    color: #20211C;
    overflow-wrap: anywhere;
}

.order_lines {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order_lines li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    font-size: 15px;
    line-height: 1.4;
    color: #20211C;
    border-bottom: 1px dashed #E3E3E8;
}

.order_lines li:first-child {
    padding-top: 0;
}

.order_lines li span:last-child {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.order_body .order_total {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    font-size: 17px;
    font-weight: 800;
    color: #20211C;
}

/* --- «Показать ещё» --- */

.orders_more {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 16px 0 70px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    color: #20211C;
    text-decoration: none;
    background: #F4F4F6;
    border: none;
    border-radius: 24px;
    transition: background-color .15s, color .15s;
}

.orders_more:hover {
    color: #FF0A0A;
    background: #FFECEA;
}

#accordionOrders:has(+ .orders_more) {
    margin-bottom: 0;
}

/* ── Ожидание на кнопках (data-loading + класс is_loading из loading.js) ── */

[data-loading] {
    position: relative;
}

[data-loading].is_loading {
    color: transparent !important;
    pointer-events: none;
}

[data-loading].is_loading > * {
    visibility: hidden;
}

[data-loading].is_loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    border: 2px solid var(--spinner-color, #20211C);
    border-right-color: transparent;
    border-radius: 50%;
    animation: button_spin .6s linear infinite;
}

.addr_submit,
.confirm_modal_danger,
.addr_action.is-danger.is_loading,
.checkout_button_submit,
.modal_login_button {
    --spinner-color: #fff;
}

/* Кнопка ждёт ответа — её не тускнеют как disabled, крутилки достаточно. */
.confirmation_form .otp_submit.is_loading:disabled {
    opacity: 1;
}

.addr_add,
.order_review.write_review {
    --spinner-color: #FF0A0A;
}

.order_review.show_review {
    --spinner-color: #1E8A54;
}

@keyframes button_spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-loading].is_loading::after {
        animation-duration: 1.6s;
    }
}

/* ── Окно подтверждения (удаление адреса) ─────────────────────────────── */

.confirm_modal .modal-dialog {
    max-width: 420px;
}

.confirm_modal .modal-content {
    padding: 30px;
    border: none;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(32, 33, 28, .18);
}

.confirm_modal p {
    margin: 0;
}

.confirm_modal .confirm_modal_title {
    margin-bottom: 8px;
    font-size: 23px;
    line-height: 1.2;
    font-weight: 800;
    color: #20211C;
}

.confirm_modal .confirm_modal_text {
    font-size: 15px;
    line-height: 1.45;
    color: #8A8A93;
}

.confirm_modal .confirm_modal_subject {
    margin-top: 14px;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    color: #20211C;
    background: #F8F8FA;
    border-radius: 16px;
    overflow-wrap: anywhere;
}

.confirm_modal_actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.confirm_modal_actions button {
    flex: 1 1 0;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 24px;
    transition: background-color .15s;
}

.confirm_modal_cancel {
    color: #20211C;
    background: #F4F4F6;
}

.confirm_modal_cancel:hover {
    background: #E8E8ED;
}

.confirm_modal_danger {
    color: #fff;
    background: #FF0A0A;
}

.confirm_modal_danger:hover {
    background: #E00909;
}

@media (max-width: 991px) {
    #accordionOrders {
        max-width: none;
    }

    .order-item {
        border-radius: 22px;
    }

    .order_head {
        grid-template-columns: minmax(0, 1fr) auto auto;
        grid-template-areas:
            "main status toggle"
            "place place place"
            "sum review review";
        gap: 8px 10px;
        padding: 16px;
    }

    .order_number {
        font-size: 18px;
        font-weight: 800;
    }

    .order_sum {
        min-width: 0;
        margin-top: 4px;
        font-size: 18px;
        text-align: left;
    }

    .order_review {
        justify-self: end;
        margin-top: 4px;
    }

    .order_body {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        padding: 16px;
    }

    .orders_more {
        max-width: none;
        margin-bottom: 20px;
    }

    /* Лента разделов кабинета не должна выходить за края страницы:
       отрицательные отступы давали горизонтальную прокрутку всей страницы
       вместе с нижним меню. */
    .profile_sidebar .profile_links ul {
        margin: 0 0 4px;
        padding: 0 0 4px;
    }
}

/* Телефон: окно подтверждения — шторка снизу, как выбор города. */
@media (max-width: 575px) {
    .confirm_modal .modal-dialog {
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .confirm_modal .modal-content {
        padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
        border-radius: 28px 28px 0 0;
    }

    .confirm_modal.fade .modal-dialog {
        transform: translateY(40px);
    }

    .confirm_modal.show .modal-dialog {
        transform: none;
    }
}

/* ── Форма отзыва о заказе ────────────────────────────────────────────── */

.review_form {
    display: flex;
    flex-direction: column;
    gap: 22px;
    max-width: 720px;
    margin-bottom: 60px;
    padding: 24px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.review_form p {
    margin: 0;
}

.review_form_order {
    padding: 14px 16px;
    background: #F8F8FA;
    border-radius: 18px;
}

.review_form_order_head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    color: #8A8A93;
}

.review_form_order_head b {
    font-weight: 800;
    color: #20211C;
    white-space: nowrap;
}

.review_form .review_form_order_items {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: #20211C;
    overflow-wrap: anywhere;
}

.review_form_field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
}

.review_form_field > label,
.review_form_field > legend,
.review_form_label {
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 600;
    color: #6F6F78;
}

/* Звёзды: в разметке от 5 к 1, на экране развёрнуты обратно. */
.review_stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.review_stars input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.review_stars label {
    font-size: 44px;
    line-height: 1;
    color: #E3E3E8;
    cursor: pointer;
    transition: color .12s, transform .12s;
}

.review_stars label:hover,
.review_stars label:hover ~ label,
.review_stars input:checked ~ label {
    color: #FFB800;
}

.review_stars label:active {
    transform: scale(.9);
}

.review_stars input:focus-visible + label {
    outline: 2px solid #FF0A0A;
    outline-offset: 2px;
    border-radius: 6px;
}

.review_form textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.45;
    color: #20211C;
    background: #F8F8FA;
    border: 2px solid transparent;
    border-radius: 14px;
    outline: none;
    resize: vertical;
    transition: border-color .15s, background-color .15s;
}

.review_form textarea:focus {
    background: #fff;
    border-color: #FF0A0A;
}

.review_form textarea.is-invalid {
    border-color: #C2261B;
}

/* Фото: пунктирная плашка, после выбора — миниатюра и имя файла. */
.review_photo_input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.review_photo {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    padding: 12px 16px;
    cursor: pointer;
    border: 2px dashed #DCDCE3;
    border-radius: 18px;
    transition: background-color .15s, border-color .15s;
}

.review_photo:hover,
.review_photo_input:focus-visible + .review_photo {
    background: #FFECEA;
    border-color: #FF0A0A;
}

.review_photo_plus {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 26px;
    line-height: 1;
    color: #FF0A0A;
    background: #FFECEA;
    border-radius: 14px;
}

.review_photo_preview {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
}

.review_photo.has_photo .review_photo_plus {
    display: none;
}

.review_photo_name {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #20211C;
    overflow-wrap: anywhere;
}

/* Заголовки разделов кабинета стоят чуть правее края карточек —
   на одной линии с текстом внутри них. */
.profile_body h1 {
    padding-left: 6px;
}

@media (max-width: 991px) {
    .review_form {
        gap: 18px;
        margin-bottom: 20px;
        padding: 18px;
        border-radius: 22px;
    }

    .review_stars {
        justify-content: space-between;
        max-width: 300px;
    }

    /* Поля кабинета на телефоне — как у шапки сайта (15px), а не 5px:
       карточки и заголовки стояли вплотную к краю экрана. */
    .user_profile .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }

    .profile_body h1 {
        padding-left: 4px;
    }
}

/* ── Баннер на телефоне: не выше половины экрана ──────────────────────────
   Высота слайда задана явно, поэтому картинка занимает то, что осталось
   после текста и кнопки, и сжимается, а не растягивает слайд. */
@media (max-width: 768px) {
    .banner_container .carousel-item {
        height: min(50vh, 460px);
        height: min(50svh, 460px);
    }

    .banner_container .carousel-item .container-fluid,
    .banner_container .carousel-item .container-fluid .row {
        height: 100%;
    }

    .banner_container .carousel-item .row .col-md-6:last-child {
        min-height: 0;
    }

    .banner_container .carousel-item .carousel_text {
        padding-top: 32px;
        padding-bottom: 8px;
    }

    .banner_container .carousel-item .carousel_text .title {
        font-size: 28px;
    }

    .banner_container .carousel-item .carousel_image_wrapper {
        flex: 1 1 0;
        min-height: 0;
    }

    .banner_container .carousel-item .carousel_image_wrapper img {
        max-height: 100%;
        object-fit: contain;
    }

    .banner_container .carousel-item .col-md-6 > a {
        flex: 0 0 auto;
        margin-top: 16px;
        margin-bottom: 40px;
        padding-top: 16px;
        padding-bottom: 16px;
    }
}

/* ── Кнопка «В корзину» и счётчик в карточке товара — одной высоты ────────
   Раньше кнопка была 43px, счётчик 44px: при добавлении товара карточка
   подпрыгивала на пиксель. */
.product_item .price_block .add_to_cart {
    box-sizing: border-box;
    height: 44px;
    padding-top: 0;
    padding-bottom: 0;
}

.product_item .price_block .quantity_control,
.product_item .price_block .quantity_control .cart_count.count {
    height: 44px;
}

/* ── Выход из профиля — только на странице профиля ────────────────────── */

.loyalty_logout_form {
    margin: 0;
}

.loyalty_logout {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #20211C;
    background: #F4F4F6;
    border: none;
    border-radius: 20px;
    transition: background-color .15s, color .15s;
}

.loyalty_logout:hover {
    color: #FF0A0A;
    background: #FFECEA;
}

/* На телефоне кнопка стоит внизу страницы, на широком экране — в шапке. */
.loyalty_logout_mobile {
    display: none;
}

@media (max-width: 991px) {
    .loyalty_logout_mobile {
        display: block;
        margin-top: 8px;
    }

    .loyalty_logout_mobile .loyalty_logout {
        width: 100%;
        height: 48px;
        font-size: 15px;
        font-weight: 700;
        color: #FF0A0A;
        background: #fff;
        border: 2px solid #FF0A0A;
        border-radius: 16px;
        --spinner-color: #FF0A0A;
    }
}

/* ── Корзина: компактная вёрстка ──────────────────────────────────────────
   Те же блоки и та же разметка (её рисует cart.js), но без гигантских
   отступов: товар — строка с фото, «включено в заказ» — ряд меток,
   итог и кнопка оформления — одна нижняя панель. */

.modal_cart {
    padding-top: 0;
    padding-bottom: 0;
    background-color: #F8F8FA;
}

.modal_cart p {
    margin-bottom: 0;
}

.modal_cart .cart_title {
    flex-direction: row;
    margin: 0;
    padding: 22px 24px 14px;
}

.modal_cart .cart_title p {
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
}

.modal_cart .cart_items,
.modal_cart .cart_include {
    padding-left: 24px;
    padding-right: 24px;
}

/* --- товар --- */

.modal_cart .cart_items .cart_item {
    position: relative;
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.modal_cart .cart_items .cart_item .product_info {
    align-items: flex-start;
    margin-bottom: 0;
    padding: 0 30px 0 0;
    border-bottom: none;
}

.modal_cart .cart_items .cart_item .product_info .image_fit {
    flex: 0 0 auto;
    width: 64px;
    max-width: none;
    height: 64px;
    margin-right: 12px;
    border-radius: 14px;
}

.modal_cart .cart_item .product_text {
    width: auto;
    min-width: 0;
}

.modal_cart .cart_items .cart_item .product_info .product_text .title {
    margin-bottom: 3px;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 700;
}

.modal_cart .cart_items .cart_item .product_info .product_text .desc {
    display: -webkit-box;
    max-width: none;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: #8A8A93;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.modal_cart .cart_item .remove_item {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    margin: 0;
    background-color: #F4F4F6;
    background-size: 10px;
    border-radius: 50%;
    transform: none;
    transition: background-color .15s;
}

.modal_cart .cart_item .remove_item:hover {
    background-color: #FFECEA;
}

/* Цена и счётчик — второй строкой под названием, цена слева. */
.modal_cart .cart_item .product_bottom {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
    padding-left: 76px;
}

.modal_cart .cart_item .product_bottom .product_price {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
}

.modal_cart .cart_item .product_price .current_price {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.modal_cart .cart_item .product_price .old_price {
    margin: 0;
    font-size: 13px;
    color: #8A8A93;
    white-space: nowrap;
}

/* --- счётчики внутри корзины --- */

.modal_cart .cart_count.count {
    flex: 0 0 auto;
    width: 108px;
    height: 36px;
}

.modal_cart .count span.minus,
.modal_cart .count span.plus {
    width: 36px;
    height: 36px;
    padding: 0;
    background-size: 10px;
}

.modal_cart .cart_count.count input {
    width: 36px;
    padding: 0;
    font-size: 15px;
}

/* --- включено в заказ: ряд меток --- */

.modal_cart .cart_include {
    padding-top: 10px;
    padding-bottom: 20px;
}

.modal_cart .cart_include > .title,
.modal_cart .add_to_order > .title {
    margin-bottom: 10px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9AA5;
}

.modal_cart .cart_include_items {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin: 0;
}

.modal_cart .cart_include_items .item {
    width: auto;
    margin: 0;
    padding: 4px 14px 4px 4px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.modal_cart .cart_include_items .item .image_fit {
    width: 28px;
    height: 28px;
}

.modal_cart .cart_include_items .item .text {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-left: 8px;
}

.modal_cart .cart_include_items .item .text p.title {
    order: 1;
    font-size: 13px;
    font-weight: 600;
    color: #20211C;
}

.modal_cart .cart_include_items .item .text p.count {
    order: 2;
    font-size: 13px;
    font-weight: 500;
    color: #8A8A93;
}

/* --- добавить к заказу --- */

.modal_cart .add_to_order {
    padding: 18px 24px 8px;
}

.modal_cart .add_to_order_item .item {
    margin-bottom: 8px;
    padding: 8px 10px;
    background-color: #F8F8FA;
    border-radius: 16px;
}

.modal_cart .add_to_order_item .item .image_fit {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-right: 12px;
}

.modal_cart .add_to_order_item .item .text {
    min-width: 0;
    margin-right: 10px;
}

.modal_cart .add_to_order_item .item .text p.title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
}

.modal_cart .add_to_order_item .item .text p.price {
    font-size: 13px;
    font-weight: 700;
}

.modal_cart .add_extra_to_order {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #FF0A0A;
    background: #fff;
    border: none;
    transition: background-color .15s;
}

.modal_cart .add_extra_to_order:hover {
    background: #FFECEA;
}

/* --- количество персон --- */

.modal_cart .persons {
    margin-bottom: 0;
    padding: 12px 24px 20px;
    border-bottom: none;
    border-radius: 0 0 24px 24px;
}

.modal_cart .persons p {
    font-size: 15px;
    font-weight: 700;
    color: #20211C;
}

.modal_cart .count.cart_count.cart_count_persons {
    width: 148px;
    background-color: #F4F4F6;
}

.modal_cart .count.cart_count.cart_count_persons img {
    width: 36px;
    height: 36px;
    padding: 9px;
}

/* Нижняя панель закреплена — оставляем под неё место в конце списка. */
.modal_cart .cart_with_items {
    padding-bottom: 100px;
}

/* --- итог и оформление: одна панель --- */

.modal_cart .fixed_total {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #EFEFF2;
    box-shadow: 0 -8px 24px rgba(24, 28, 46, .06);
}

.modal_cart .fixed_total .total {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    margin: 0;
    padding: 0;
}

.modal_cart .fixed_total .total p.title {
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    color: #8A8A93;
}

.modal_cart .fixed_total .total p.total_sum {
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.modal_cart .fixed_total .button_block {
    flex: 1 1 auto;
    padding: 0;
}

.modal_cart .fixed_total .button_block a {
    height: 52px;
    font-size: 16px;
}

/* --- пустая корзина --- */

.modal_cart .empty_cart {
    padding: 24px;
}

.modal_cart .empty_cart img {
    max-width: 220px;
    margin-bottom: 28px;
}

.modal_cart .empty_cart .title {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 800;
}

@media (max-width: 576px) {
    .modal_cart .cart_title {
        padding: 18px 60px 12px 16px;
    }

    .modal_cart .cart_title p {
        font-size: 22px;
    }

    .modal_cart .cart_items,
    .modal_cart .cart_include {
        padding-left: 12px;
        padding-right: 12px;
    }

    .modal_cart .add_to_order {
        padding: 16px 12px 6px;
    }

    .modal_cart .persons {
        padding: 10px 12px 18px;
    }

    .modal_cart .fixed_total {
        gap: 12px;
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Крестик закрытия — круглая кнопка в углу, как у товара. */
    .modal_cart .close_cart {
        top: 14px;
        right: 12px;
        width: 36px;
        height: 36px;
        background-color: #fff;
        background-size: 12px;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(24, 28, 46, .08);
    }
}

/* ── Корзина: удаление товара — урна, а не крестик ────────────────────────
   Крестик уже занят закрытием самой корзины. Иконка рисуется маской,
   чтобы её можно было перекрашивать при наведении. */
.modal_cart .cart_item .remove_item {
    background-image: none;
}

.modal_cart .cart_item .remove_item::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 16px;
    height: 16px;
    margin: auto;
    background-color: #8A8A93;
    -webkit-mask: url("../img/icon_trash.svg") center / contain no-repeat;
    mask: url("../img/icon_trash.svg") center / contain no-repeat;
    transition: background-color .15s;
}

.modal_cart .cart_item .remove_item:hover::before {
    background-color: #FF0A0A;
}

/* ── Оформление заказа: в том же стиле, что и корзина ─────────────────────
   Поля, имена и идентификаторы прежние (на них завязаны checkout.js,
   promocode.js и карта) — меняется только подача: разделы стали
   карточками, поля — компактными, итог собран в одну карточку. */

.gray_background {
    margin-top: 0;
    padding-top: 24px;
    padding-bottom: 40px;
    background-color: #F8F8FA;
}

.checkout_form .order_width {
    max-width: none;
}

.checkout_form h1 {
    margin-bottom: 18px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.checkout_form h2 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.checkout_card {
    margin-bottom: 12px;
    padding: 20px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.checkout_caption {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #8A8A93;
}

/* --- получатель --- */

.checkout_recipient {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
}

.checkout_recipient_name {
    font-size: 16px;
    font-weight: 700;
    color: #20211C;
}

.checkout_recipient_phone {
    font-size: 15px;
    font-weight: 500;
    color: #8A8A93;
}

/* --- поля --- */

.checkout_form .checkout_card .input_wrapper,
.checkout_form .checkout_card .input_wrapper:not(.input_white) {
    display: flex;
    flex-direction: column;
    border-bottom: none;
}

.checkout_form .checkout_card .input_wrapper label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #8A8A93;
}

.checkout_form .checkout_card .input_wrapper input:not([type="checkbox"]):not([type="radio"]),
.checkout_form .checkout_card .input_wrapper select {
    width: 100%;
    height: 48px;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-right: 14px;
    font-size: 15px;
    font-weight: 500;
    color: #20211C;
    background-color: #F4F4F6;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: background-color .15s, border-color .15s;
}

.checkout_form .checkout_card .input_wrapper input:not([type="checkbox"]):not([type="radio"]):not(.mask-phone),
.checkout_form .checkout_card .input_wrapper select {
    padding-left: 14px;
}

.checkout_form .checkout_card .input_wrapper select {
    padding-right: 38px;
    background-position: right 14px center;
}

.checkout_form .checkout_card .input_wrapper input:not([type="checkbox"]):not([type="radio"]):focus,
.checkout_form .checkout_card .input_wrapper select:focus {
    background-color: #fff;
    border-color: #20211C;
}

.checkout_form .checkout_card .input_wrapper.input_white input.mask-phone {
    padding-left: 58px;
    background-size: 28px;
    background-position: 16px center;
}

.checkout_form .checkout_card .row {
    --bs-gutter-x: 12px;
}

.checkout_form .checkout_card .alert {
    margin: 10px 0 0;
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    border-radius: 12px;
}

/* --- свёрнутые карточки: промокод, время и комментарий ---
   Заголовок карточки — кнопка на всю ширину со стрелкой справа.
   .checkout_form в селекторах кнопки — иначе её перебивают общие стили
   кнопок формы. */
.checkout_form .checkout_collapse_head {
    margin-bottom: 14px;
}

.checkout_collapsible.is_collapsed .checkout_collapse_head {
    margin-bottom: 0;
}

.checkout_collapsible.is_collapsed .checkout_collapse_body {
    display: none;
}

.checkout_form button.checkout_collapse_toggle {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    width: 100%;
    height: auto;
    padding: 0 32px 0 0;
    border: none;
    border-radius: 0;
    background: none;
    color: #20211C;
    font: inherit;
    text-align: left;
}

.checkout_form button.checkout_collapse_toggle:hover {
    border: none;
    background: none;
    color: #20211C;
}

.checkout_form button.checkout_collapse_toggle:focus-visible {
    outline: 2px solid #FFC9C4;
    outline-offset: 4px;
    border-radius: 8px;
}

/* Стрелка справа: вниз — свёрнуто, вверх — раскрыто. */
.checkout_collapse_toggle::after {
    content: "";
    position: absolute;
    right: 6px;
    top: calc(50% - 6px);
    width: 8px;
    height: 8px;
    border: solid #C7C7CF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s, border-color .15s;
}

.checkout_collapse_toggle:hover::after {
    border-color: #FF0A0A;
}

.checkout_collapsible:not(.is_collapsed) .checkout_collapse_toggle::after {
    top: calc(50% - 2px);
    transform: rotate(-135deg);
}

/* Сводка видна только у свёрнутой карточки. */
.checkout_collapse_summary {
    display: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #8A8A93;
}

.checkout_collapsible.is_collapsed .checkout_collapse_summary {
    display: block;
}

@media (prefers-reduced-motion: reduce) {
    .checkout_collapse_toggle::after {
        transition: none;
    }
}

/* Под плашкой о графике филиала сразу идут подписи полей времени. */
.checkout_form .checkout_card #ordering_notice {
    margin-bottom: 4px;
}

.checkout_form .checkout_card > .mb-3:last-child,
.checkout_form .checkout_card > .mb-4:last-child {
    margin-bottom: 0 !important;
}

/* --- варианты выбора (доставка, адрес, оплата) --- */

.checkout_form .form_radio {
    margin-bottom: 8px;
    padding: 0;
    background: #fff;
    border: 1px solid #E6E6EA;
    border-radius: 14px;
    transition: border-color .15s, background-color .15s;
}

.checkout_form .form_radio:hover {
    border-color: #CFCFD6;
}

.checkout_form .form_radio:has(input:checked) {
    background: #FFF7F6;
    border-color: #FF0A0A;
}

.checkout_form .form_radio label {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 14px 14px 50px;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 500;
}

.checkout_form .form_radio label:before {
    top: 50%;
    bottom: auto;
    left: 14px;
    transform: translateY(-50%);
}

@media (min-width: 576px) {
    .checkout_shipping_method {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .checkout_shipping_method > h2,
    .checkout_shipping_method > .alert,
    .checkout_shipping_method > .form_error {
        grid-column: 1 / -1;
    }

    .checkout_shipping_method > h2 {
        margin-bottom: 6px;
    }

    .checkout_shipping_method .form_radio {
        margin-bottom: 0;
    }
}

/* --- сохранённые адреса: лишние свёрнуты --- */

.checkout_addresses .form_radio.is_extra {
    display: none;
}

/* Выбранный адрес остаётся на виду и после сворачивания. */
.checkout_addresses.is_expanded .form_radio.is_extra,
.checkout_addresses .form_radio.is_extra:has(input:checked) {
    display: flex;
}

.checkout_form .checkout_addr_toggle {
    gap: 8px;
    width: 100%;
    height: 44px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
    background: #F4F4F6;
    border: none;
    border-radius: 14px;
    transition: background-color .15s;
}

.checkout_form .checkout_addr_toggle:hover {
    color: #20211C;
    background: #EBEBEF;
    border: none;
}

.checkout_addr_toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .2s;
}

.checkout_addr_toggle[aria-expanded="true"]::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.checkout_form #new_address_block {
    margin-top: 6px;
}

/* --- новый адрес: сначала точка на карте, потом уточнение --- */

.checkout_form .checkout_map_pick {
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    height: auto;
    min-height: 64px;
    padding: 12px 14px;
    font-size: 15px;
    text-align: left;
    color: #20211C;
    background: #FFF7F6;
    border: 1px dashed #FF9C92;
    border-radius: 14px;
    transition: background-color .15s, border-color .15s;
}

.checkout_form .checkout_map_pick:hover {
    color: #20211C;
    background: #FFECEA;
    border: 1px dashed #FF0A0A;
}

.checkout_form .checkout_map_pick.is_picked {
    background: #fff;
    border: 1px solid #E6E6EA;
}

.checkout_form .checkout_map_pick.is_picked:hover {
    background: #F8F8FA;
    border: 1px solid #CFCFD6;
}

.checkout_map_pick_icon {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    background: #FF0A0A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.800 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.500' r='2.500'/%3E%3C/svg%3E") center / 20px no-repeat;
    border-radius: 50%;
}

.checkout_map_pick_text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.checkout_map_pick_title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
}

.checkout_map_pick_hint {
    margin-top: 2px;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    color: #8A8A93;
}

.checkout_map_pick_arrow {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-top: 2px solid #8A8A93;
    border-right: 2px solid #8A8A93;
    transform: rotate(45deg);
}

/* «Ввести адрес вручную» — тихая ссылка под кнопкой карты. Селектор
   с .checkout_form — иначе её перебивают общие стили кнопок формы. */
.checkout_form button.checkout_manual_address {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    height: auto;
    margin-top: 10px;
    padding: 4px 2px;
    border: none;
    border-radius: 6px;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: #20211C;
    text-decoration: underline;
    text-decoration-color: #C7C7CF;
    text-underline-offset: 3px;
    transition: color .15s, text-decoration-color .15s;
}

.checkout_form button.checkout_manual_address svg {
    flex-shrink: 0;
    color: #8A8A93;
}

.checkout_form button.checkout_manual_address:hover,
.checkout_form button.checkout_manual_address:focus-visible {
    border: none;
    background: none;
    color: #FF0A0A;
    text-decoration-color: currentColor;
    outline: none;
}

.checkout_form button.checkout_manual_address:hover svg {
    color: currentColor;
}

.checkout_manual_status {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.4;
    color: #8A8A93;
}

.checkout_manual_status.is_error {
    color: #D90000;
}

.checkout_address_fields {
    margin-top: 14px;
}

.checkout_address_fields > .mb-3 {
    margin-bottom: 12px !important;
}

/* Сведения о зоне — одной строкой, а не столбиком. */
.checkout_form .delivery_zone_info .alert {
    margin-top: 2px;
}

.checkout_form .delivery_zone_details {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    margin-top: 4px !important;
    font-size: 13px;
}

/* ── Окно выбора адреса на карте ──────────────────────────────────────── */

.map_modal .modal-content {
    overflow: hidden;
    border: none;
    border-radius: 24px;
}

.map_modal_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px 12px;
}

.map_modal_head .modal-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.map_search {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0 20px 14px;
}

.map_search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 46px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #20211C;
    background: #F4F4F6;
    border: 1px solid transparent;
    border-radius: 12px;
    outline: none;
    transition: background-color .15s, border-color .15s;
}

.map_search input:focus {
    background: #fff;
    border-color: #20211C;
}

.map_search button {
    flex: 0 0 auto;
    height: 46px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #20211C;
    border: none;
    border-radius: 12px;
}

.map_modal_body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.map_modal #map {
    width: 100%;
    height: min(58vh, 560px);
}

.map_locate {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2320211C' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='1.500' fill='%2320211C'/%3E%3Cpath d='M12 2v4M12 18v4M2 12h4M18 12h4'/%3E%3C/svg%3E") center / 22px no-repeat;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(24, 28, 46, .18);
}

.map_locate.is_loading {
    opacity: .5;
    pointer-events: none;
}

.map_notice {
    position: absolute;
    left: 12px;
    right: 68px;
    bottom: 12px;
    margin: 0;
    padding: 10px 14px;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #C2261B;
    background: #FFECEA;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(24, 28, 46, .14);
}

.map_modal_foot {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
}

.map_picked {
    flex: 1 1 auto;
    min-width: 0;
}

.map_picked p {
    margin: 0;
}

.map_picked_address {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    color: #20211C;
}

.map_picked_zone {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    color: #8A8A93;
}

.map_picked_zone:empty {
    display: none;
}

.map_confirm {
    flex: 0 0 auto;
    height: 50px;
    padding: 0 24px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background: #FF0A0A;
    border: none;
    border-radius: 500px;
    transition: background-color .15s;
}

.map_confirm:disabled {
    color: #9A9AA5;
    background: #EBEBEF;
}

/* На телефоне и планшете карта занимает весь экран. */
@media (max-width: 991px) {
    .map_modal .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .map_modal_head {
        padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px;
    }

    .map_search {
        padding: 0 16px 12px;
    }

    .map_modal #map {
        height: 100%;
    }

    .map_modal_foot {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 575px) {
    .map_modal_foot {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

/* --- время и комментарий --- */

.checkout_when .row > .mb-3 {
    margin-bottom: 12px !important;
}

/* «Есть аллергия?» в карточке итога, над кнопкой заказа. Свёрнута
   в одну строку, по нажатию раскрываются пояснение и «Указать». Кнопка
   с .checkout_form в селекторе — иначе её перебивают общие стили
   кнопок формы (большая красная на всю ширину). */
.checkout_allergy {
    margin: 16px 0;
    border: 1px solid #FFD9D5;
    border-radius: 16px;
    background: #FFF6F5;
}

.checkout_allergy_summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 40px 10px 12px;
    position: relative;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.checkout_allergy_summary::-webkit-details-marker {
    display: none;
}

/* Стрелка справа: вниз — свёрнуто, вверх — раскрыто. */
.checkout_allergy_summary::after {
    content: "";
    position: absolute;
    right: 18px;
    top: calc(50% - 6px);
    width: 8px;
    height: 8px;
    border: solid #C7C7CF;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    transition: transform .2s, border-color .15s;
}

.checkout_allergy_summary:hover::after {
    border-color: #FF0A0A;
}

.checkout_allergy[open] .checkout_allergy_summary::after {
    top: calc(50% - 2px);
    transform: rotate(-135deg);
}

.checkout_allergy_summary:focus-visible {
    outline: 2px solid #FFC9C4;
    outline-offset: -2px;
    border-radius: 16px;
}

.checkout_allergy_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    color: #FF0A0A;
}

.checkout_allergy_title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
    color: #20211C;
}

/* Отступ слева — под текст заголовка: 12 + 28 + 10. */
.checkout_allergy_body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px 12px 50px;
}

.checkout_allergy_hint {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: #8A8A93;
}

.checkout_form button.checkout_allergy_button {
    flex-shrink: 0;
    width: auto;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #FFC9C4;
    border-radius: 12px;
    background-color: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #FF0A0A;
    transition: background-color .15s, color .15s, border-color .15s;
}

.checkout_form button.checkout_allergy_button:hover,
.checkout_form button.checkout_allergy_button:focus-visible {
    border: 1px solid #FF0A0A;
    background-color: #FF0A0A;
    color: #fff;
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .checkout_allergy_summary::after {
        transition: none;
    }
}

/* «День рождения» — одна строка под аллергией, в том же виде.
   Пояснения — в окне выбора даты. .checkout_form в селекторах кнопок —
   иначе их перебивают общие стили кнопок формы. */
.checkout_birthday {
    border-color: #FFE3B8;
    background: #FFF9EF;
}

.checkout_birthday [hidden] {
    display: none !important;
}

.checkout_birthday .checkout_allergy_icon {
    color: #E08A00;
}

.checkout_birthday_line,
.checkout_form button.checkout_birthday_line {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0;
    padding: 10px 40px 10px 12px;
    position: relative;
    border: 0;
    border-radius: 16px;
    background: none;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    text-align: left;
    justify-content: flex-start;
}

.checkout_form button.checkout_birthday_line:hover {
    border: 0;
    background: none;
    color: inherit;
}

/* Стрелка вправо — строка открывает окно или сразу даёт скидку. */
.checkout_form button.checkout_birthday_line::after {
    content: "";
    position: absolute;
    right: 20px;
    top: calc(50% - 4px);
    width: 8px;
    height: 8px;
    border: solid #C7C7CF;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    transition: border-color .15s;
}

.checkout_form button.checkout_birthday_line:hover::after {
    border-color: #FF0A0A;
}

.checkout_form button.checkout_birthday_line:focus-visible {
    outline: 2px solid #FFC9C4;
    outline-offset: -2px;
}

.checkout_birthday_line.is-applied,
.checkout_birthday_line.is-used {
    padding-right: 12px;
}

.checkout_birthday_line.is-used .checkout_allergy_title {
    font-size: 14px;
    font-weight: 600;
    color: #8A8A93;
}

.checkout_birthday_applied {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1F9D55;
}

.checkout_form button.checkout_birthday_cancel,
.checkout_form button.checkout_birthday_cancel:hover {
    flex-shrink: 0;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
    font-weight: 400;
    color: #8A8A93;
    text-decoration: underline;
}

/* Окно выбора дня рождения: 7 дней кнопками, год списком. */
.birthday_modal_label {
    display: block;
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
}

.birthday_days {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    margin-bottom: 20px;
}

.birthday_day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 8px;
    border: 1px solid #E8E8ED;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #20211C;
    transition: border-color .15s, background-color .15s, color .15s;
}

.birthday_day small {
    font-size: 11px;
    font-weight: 400;
    color: #8A8A93;
}

.birthday_day:hover,
.birthday_day:focus-visible {
    border-color: #FF0A0A;
    outline: none;
}

.birthday_day[aria-pressed="true"] {
    border-color: #FF0A0A;
    background: #FF0A0A;
    color: #fff;
}

.birthday_day[aria-pressed="true"] small {
    color: #fff;
}

.birthday_year {
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.birthday_modal_apply {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 16px;
    background: #FF0A0A;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.birthday_modal_apply:disabled {
    background: #F1F1F4;
    color: #A0A0A8;
    cursor: not-allowed;
}

.birthday_modal_note {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: #8A8A93;
}

/* --- промокод --- */

.promocode_block .promo_code_wrapper {
    margin-top: 0;
}

.promocode_block .promo_code_input {
    gap: 8px;
}

.checkout_form .promocode_block .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 124px;
    height: 48px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    background-color: #20211C;
    border: none;
    border-radius: 12px;
    transition: background-color .15s;
}

.checkout_form .promocode_block .btn:hover {
    color: #fff;
    background-color: #FF0A0A;
    border: none;
}

.promocode_block .promo_code_applied {
    gap: 10px;
    padding: 8px 8px 8px 14px;
    background: #F1FAF3;
    border-color: #BFE5C8;
    border-radius: 14px;
}

.promocode_block .promo_code_applied .applied_info {
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 14px;
}

.checkout_form .promocode_block .promo_code_applied .btn {
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

/* --- оплата наличными: сдача ---
   Выбор сдачи — внутри карточки «Наличными»: выбрали наличные —
   карточка раскрывается, под названием «Нужна сдача / Без сдачи» и
   сумма с ₸ в одну строку. Общие правила .form_radio label (отступ под
   кружок, сам кружок) внутрь не пускаем. */

.checkout_form .form_radio.form_radio_cash {
    flex-wrap: wrap;
}

/* Выбранность карточки — только по самой радиокнопке оплаты, а не по
   «Нужна сдача» внутри неё. */
.checkout_form .form_radio.form_radio_cash:not(:has(> input:checked)) {
    background: #fff;
    border-color: #E6E6EA;
}

.checkout_form .form_radio_cash .cashback_from_wrapper {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin: -4px 0 0;
    padding: 0 14px 14px 50px;
}

.checkout_form .form_radio_cash .cashback_from_wrapper label {
    display: block;
    flex: 0 0 auto;
    padding: 0;
    margin: 0;
}

.checkout_form .form_radio_cash .cashback_from_wrapper label::before {
    content: none;
    display: none;
}

.checkout_form .cash_change {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid #F3D9D6;
    border-radius: 12px;
    background: #fff;
}

.checkout_form .cash_change_option {
    cursor: pointer;
}

.checkout_form .cash_change_option span {
    display: block;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #5E5E66;
    white-space: nowrap;
    transition: background-color .15s, color .15s;
}

.checkout_form .cash_change_option:hover span {
    color: #20211C;
}

.checkout_form .cash_change_option input:checked + span {
    background: #FF0A0A;
    color: #fff;
}

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

.checkout_form .cash_change_amount[hidden] {
    display: none;
}

.checkout_form .form_radio_cash .cash_change_amount label {
    font-size: 14px;
    font-weight: 500;
    color: #5E5E66;
    white-space: nowrap;
}

.checkout_form .cash_change_input {
    position: relative;
    width: 130px;
}

.checkout_form .checkout_card .cash_change_input input#cashback_from {
    width: 100%;
    height: 40px;
    padding: 0 30px 0 12px;
    border: 1px solid #F3D9D6;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    font-weight: 600;
}

.checkout_form .checkout_card .cash_change_input input#cashback_from:focus {
    border-color: #FF0A0A;
    outline: none;
}

.checkout_form .cash_change_input span {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 600;
    color: #8A8A93;
    pointer-events: none;
}

@media (max-width: 575px) {
    .checkout_form .form_radio_cash .cashback_from_wrapper {
        padding-left: 14px;
    }

    .checkout_form .cash_change {
        display: flex;
        width: 100%;
    }

    .checkout_form .cash_change_option {
        flex: 1 1 50%;
        text-align: center;
    }

    .checkout_form .cash_change_amount {
        width: 100%;
    }

    .checkout_form .cash_change_input {
        flex: 1 1 auto;
        width: auto;
    }
}

/* --- правая колонка: состав заказа --- */

.checkout_info .order_info {
    margin-bottom: 12px;
    padding: 20px;
    border-color: #EFEFF2;
    border-radius: 20px;
}

.checkout_info .order_title {
    margin-bottom: 6px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.checkout_info .order_item {
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #F1F1F4;
}

.checkout_info .order_item:first-child {
    border-top: none;
}

.checkout_info .order_item:last-child {
    padding-bottom: 0;
}

.checkout_info .order_item .left_block {
    flex: 1 1 auto;
    min-width: 0;
}

.checkout_info .order_item .title {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    white-space: normal;
}

.checkout_info .order_item .count {
    margin-top: 2px;
    color: #8A8A93;
}

.checkout_info .order_item .dashed {
    display: none;
}

.checkout_info .product_order_price {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

/* --- бонусы --- */

.bonus_payment_switch,
.bonus_login {
    gap: 12px;
    margin-bottom: 12px;
    padding: 14px 16px;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.bonus_payment_switch {
    position: relative;
    justify-content: flex-start;
    transition: border-color .15s, background-color .15s;
}

/* Скрытая галочка переключателя: общее правило для полей формы растягивало
   её на всю ширину, и страница на телефоне ездила вбок. */
.checkout_form .bonus_payment_switch input {
    top: 0;
    left: 0;
    width: 1px;
}

.bonus_payment_switch.is-on {
    background: #FFF7F6;
    border-color: #FF0A0A;
}

.bonus_payment_icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #FF5A3C, #FF0A0A);
    border-radius: 50%;
}

.bonus_payment_text,
.bonus_login_text {
    flex: 1 1 auto;
    min-width: 0;
}

.bonus_payment_title,
.bonus_login_title {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
    color: #20211C;
}

.bonus_payment_hint,
.bonus_login_hint {
    margin: 3px 0 0;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
    color: #8A8A93;
}

.bonus_payment_control {
    width: 48px;
    height: 28px;
}

.bonus_payment_control::after {
    width: 24px;
    height: 24px;
}

.bonus_payment_switch input:checked + .bonus_payment_control {
    background: #FF0A0A;
}

.bonus_payment_switch input:checked + .bonus_payment_control::after {
    transform: translateX(20px);
}

.bonus_payment_note {
    margin-bottom: 12px;
    padding: 12px 16px;
    font-size: 13px;
    line-height: 1.35;
    color: #8A8A93;
    background: #fff;
    border: 1px dashed #DCDCE2;
    border-radius: 16px;
}

/* Гостю — предложение войти. */
.bonus_login {
    display: flex;
    align-items: center;
    background: #FFF7F6;
    border-color: #FFD9D4;
}

.checkout_form .bonus_login_button {
    flex: 0 0 auto;
    width: auto;
    height: 40px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
}

/* --- итог --- */

.checkout_total_card {
    padding: 20px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.checkout_info .order_shipping p,
.order_resume .count_products p {
    font-size: 15px;
    font-weight: 500;
    color: #5E5E66;
}

.checkout_info .order_shipping p.shipping_price,
.order_resume .count_products p.products_sum {
    font-weight: 700;
    color: #20211C;
    white-space: nowrap;
}

.checkout_info .order_shipping {
    margin-top: 8px;
}

.checkout_info .discount_block .item {
    gap: 12px;
    margin-top: 8px;
    font-size: 14px;
}

.checkout_info .discount_block .discount_amount {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.checkout_info .order_total {
    margin: 14px 0 16px;
    padding-top: 14px;
    border-top: 1px solid #F1F1F4;
}

.checkout_info .order_total p.title {
    font-size: 16px;
    font-weight: 700;
}

.checkout_info .order_total p.order_total_sum {
    font-size: 26px;
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.checkout_form .checkout_button_submit {
    height: 54px;
    font-size: 16px;
    font-weight: 700;
}

.checkout_total_card .consent_offer_note {
    margin-top: 10px;
    text-align: center;
}

@media (max-width: 991px) {
    .gray_background {
        padding-top: 14px;
        padding-bottom: 24px;
    }

    .checkout_form {
        padding: 0;
    }

    .checkout_form .container > .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    .checkout_form h1 {
        margin-bottom: 12px;
        font-size: 24px;
    }

    .checkout_card,
    .checkout_total_card,
    .checkout_info .order_info {
        padding: 16px;
    }

    /* Итог идёт следом за формой — прилипать ему незачем. */
    .checkout_info {
        position: static;
    }
}

@media (max-width: 400px) {
    .checkout_form .promocode_block .btn {
        min-width: 0;
        padding: 0 14px;
    }

    .checkout_form .bonus_login {
        flex-wrap: wrap;
    }

    .checkout_form .bonus_login_button {
        width: 100%;
    }
}

/* ── Страница заказа: статус, шаги, детали ────────────────────────────────
   На неё попадают сразу после оформления и из «Моих заказов». */

.order_track h2 {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.order_track_hero {
    margin-bottom: 12px;
    padding: 24px;
    background: #fff;
    border: 1px solid #EFEFF2;
    border-radius: 24px;
}

.order_track_number {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #20211C;
}

.order_track_number span {
    font-weight: 500;
    color: #8A8A93;
}

.order_track_hero h1 {
    margin-bottom: 6px;
    font-size: 30px;
    line-height: 1.15;
    font-weight: 800;
}

.order_track_text {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #5E5E66;
}

/* Сколько ждать — время выбрал оператор. */
.order_track_eta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 14px 0 0;
    padding: 8px 14px;
    border-radius: 999px;
    background: #FFECEA;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    color: #20211C;
}

.order_track_eta svg {
    flex-shrink: 0;
    color: #FF0A0A;
}

.order_track_eta_duration {
    font-weight: 500;
    color: #5E5E66;
}

/* Ожидает оплаты: обратный отсчёт и «время вышло». */
.order_track_payment[hidden] {
    display: none;
}

.order_track_payment_timer {
    font-variant-numeric: tabular-nums;
}

.order_track_payment_expired {
    margin-top: 14px;
    font-weight: 600;
    color: #20211C;
}

.order_track_hero.is_cancelled {
    background: #FFF7F6;
    border-color: #FFD9D4;
}

.order_track_hero.is_cancelled h1 {
    color: #C2261B;
}

/* --- шаги --- */

.order_track_steps {
    display: flex;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.order_track_step {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    text-align: center;
}

/* Линия к следующему шагу: от центра иконки до центра соседней. */
.order_track_step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 23px;
    left: calc(50% + 28px);
    right: calc(-50% + 28px);
    height: 2px;
    background: #E6E6EA;
    border-radius: 2px;
}

.order_track_step.is_done:not(:last-child)::after {
    background: #FF0A0A;
}

/* В картинке три состояния друг под другом: залитое, контур, серое. */
.order_track_icon {
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-size: 48px 192px;
    background-position: 0 -144px;
    border-radius: 50%;
}

.order_track_icon.is_new { background-image: url("../img/order_statuses/new.png"); }
.order_track_icon.is_processing { background-image: url("../img/order_statuses/processing.png"); }
.order_track_icon.is_produced { background-image: url("../img/order_statuses/produced.png"); }
.order_track_icon.is_delivering { background-image: url("../img/order_statuses/delivering.png"); }
.order_track_icon.is_completed { background-image: url("../img/order_statuses/completed.png"); }

.order_track_step.is_done .order_track_icon {
    background-position: 0 -72px;
}

.order_track_step.is_current .order_track_icon {
    background-position: 0 0;
    animation: order_track_pulse 1.8s ease-out infinite;
}

.order_track_hero.is_completed .order_track_step.is_current .order_track_icon {
    animation: none;
}

@keyframes order_track_pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 10, 10, .35); }
    100% { box-shadow: 0 0 0 12px rgba(255, 10, 10, 0); }
}

.order_track_label {
    margin-top: 8px;
    padding: 0 2px;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 500;
    color: #9A9AA5;
}

.order_track_step.is_done .order_track_label {
    color: #20211C;
}

.order_track_step.is_current .order_track_label {
    font-weight: 800;
    color: #20211C;
}

.order_track_live {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 0;
    font-size: 13px;
    color: #8A8A93;
}

.order_track_dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    background: #2DB26B;
    border-radius: 50%;
    animation: order_track_blink 1.6s ease-in-out infinite;
}

@keyframes order_track_blink {
    50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
    .order_track_step.is_current .order_track_icon,
    .order_track_dot {
        animation: none;
    }
}

/* --- детали --- */

.order_track_grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.order_track_grid .checkout_card {
    margin-bottom: 12px;
}

.order_track_facts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
}

.order_track_facts dt {
    margin-bottom: 2px;
    font-size: 13px;
    font-weight: 600;
    color: #8A8A93;
}

.order_track_facts dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #20211C;
    overflow-wrap: anywhere;
}

.order_track_lines,
.order_track_sums {
    margin: 0;
    padding: 0;
    list-style: none;
}

.order_track_lines li,
.order_track_sums li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    line-height: 1.35;
}

.order_track_lines li {
    padding: 8px 0;
    font-weight: 600;
    border-top: 1px solid #F1F1F4;
}

.order_track_lines li:first-child {
    padding-top: 0;
    border-top: none;
}

.order_track_lines li span:last-child,
.order_track_sums li span:last-child {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.order_track_sums {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #F1F1F4;
}

.order_track_sums li {
    margin-bottom: 6px;
    color: #5E5E66;
}

/* «Скидку на ДР применит оператор» — пояснение, не сумма. */
.order_track_sums li.order_track_note {
    display: block;
    font-size: 13px;
    color: #E08A00;
}

.order_track_sums li .is_discount {
    color: #FF0A0A;
}

.order_track_sums li.is_total {
    align-items: baseline;
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 700;
    color: #20211C;
}

.order_track_sums li.is_total span:last-child {
    font-size: 22px;
    font-weight: 800;
}

/* --- карта --- */

.order_track_map {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid #EFEFF2;
    border-radius: 20px;
}

.order_track_map #map {
    width: 100%;
    height: 320px;
}

/* --- оценка доставленного заказа (site/order/_rating) --- */

/* Карточка — как соседние (checkout_card), здесь только отступ. */
.order_rating {
    margin-bottom: 20px;
}

.order_rating_title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #20211C;
}

.order_rating_stars {
    display: flex;
    gap: 6px;
}

.order_rating_star {
    padding: 0 2px;
    border: none;
    background: none;
    font-size: 38px;
    line-height: 1;
    color: #D9D9DF;
    cursor: pointer;
    transition: color .12s, transform .12s;
}

.order_rating_star.is_on {
    color: #FFB800;
}

.order_rating_star:not(:disabled):hover {
    transform: scale(1.12);
}

.order_rating_star:disabled {
    cursor: default;
}

.order_rating_feedback,
.order_rating_thanks {
    margin-top: 14px;
}

.order_rating_thanks {
    font-size: 15px;
    line-height: 1.45;
    color: #20211C;
}

.order_rating_thanks .order_track_btn {
    margin-top: 10px;
}

.order_rating_label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #20211C;
}

.order_rating_feedback textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #E6E6EA;
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 15px;
    resize: vertical;
}

.order_rating_feedback textarea:focus {
    outline: none;
    border-color: #FF0A0A;
}

.order_rating_error {
    min-height: 18px;
    margin: 6px 0;
    font-size: 14px;
    color: #E00000;
}

.order_rating_send:disabled {
    opacity: .6;
}

/* --- кнопки --- */

.order_track_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.order_track_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 22px;
    font-size: 15px;
    font-weight: 700;
    color: #20211C;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E6E6EA;
    border-radius: 500px;
    transition: background-color .15s, border-color .15s;
    --spinner-color: #20211C;
}

.order_track_btn:hover {
    color: #20211C;
    border-color: #CFCFD6;
}

.order_track_btn.is_primary {
    color: #fff;
    background: #FF0A0A;
    border-color: #FF0A0A;
    --spinner-color: #fff;
}

.order_track_btn.is_primary:hover {
    color: #fff;
    background: #E00909;
    border-color: #E00909;
}

/* Ссылка на эту страницу из «Моих заказов». */
.order_review.track_order {
    color: #fff;
    background: #20211C;
    --spinner-color: #fff;
}

@media (max-width: 991px) {
    .order_track .container > .row > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }

    .order_track_hero {
        padding: 18px 16px;
        border-radius: 20px;
    }

    .order_track_hero h1 {
        font-size: 24px;
    }

    .order_track_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .order_track_map #map {
        height: 260px;
    }

    .order_track_btn {
        flex: 1 1 calc(50% - 4px);
        padding: 0 12px;
    }
}

@media (max-width: 575px) {
    .order_track_steps {
        margin-top: 20px;
    }

    .order_track_step:not(:last-child)::after {
        top: 19px;
        left: calc(50% + 23px);
        right: calc(-50% + 23px);
    }

    .order_track_icon {
        width: 40px;
        height: 40px;
        background-size: 40px 160px;
        background-position: 0 -120px;
    }

    .order_track_step.is_done .order_track_icon {
        background-position: 0 -60px;
    }

    .order_track_label {
        font-size: 11px;
    }
}

/* ── Карточка товара (окно по нажатию) ────────────────────────────────────
   Разметка и скрипт прежние (product-modal.js), меняется подача: фото,
   заголовок с количеством, описание, «в заказ входит» метками и строка
   с ценой и кнопкой. На телефоне окно выезжает снизу на всю ширину. */

.modal.product_modal .modal-dialog {
    display: flex;
    align-items: center;
    max-width: 920px;
    min-height: calc(100% - 3.5rem);
    margin: 1.75rem auto;
}

.modal.product_modal .modal-dialog .modal-content {
    padding: 20px;
    border: none;
    border-radius: 28px;
}

.modal.product_modal .modal-dialog .btn-close {
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    background: #fff url("../img/remove_item.svg") center / 12px no-repeat;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(24, 28, 46, .16);
    opacity: 1;
    transform: none;
}

.modal.product_modal .image_container {
    border-radius: 20px;
}

.modal.product_modal .product_info {
    margin-top: 0;
    padding: 6px 4px 0 8px;
    transition: opacity .15s;
}

.modal.product_modal .product_image {
    transition: opacity .15s;
}

/* Пока товар грузится, не показываем данные предыдущего. */
.modal.product_modal.is_loading .product_info,
.modal.product_modal.is_loading .product_image {
    opacity: 0;
}

.modal.product_modal .product_title {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
    padding-right: 44px;
}

.modal.product_modal .product_title .title {
    font-size: 28px;
    line-height: 1.15;
    font-weight: 800;
    color: #20211C;
}

.modal.product_modal .product_title .count {
    flex: 0 0 auto;
    margin: 5px 0 0;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    color: #20211C;
    background: #F4F4F6;
    border-radius: 20px;
}

.modal.product_modal .product_title .count:empty,
.modal.product_modal .price_block .prices .old_price:empty {
    display: none;
}

.modal.product_modal .product_desc {
    margin-bottom: 18px;
    font-size: 15px;
    line-height: 1.55;
    color: #5E5E66;
}

.modal.product_modal .product_desc p {
    margin-bottom: 8px;
}

.modal.product_modal .product_desc > :last-child {
    margin-bottom: 0;
}

.modal.product_modal .product_inner {
    margin-top: 0;
    margin-bottom: 18px;
}

.modal.product_modal .product_inner .in_order {
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9A9AA5;
}

.modal.product_modal .product_inner .in_product_items {
    gap: 8px;
    margin-top: 10px;
}

.modal.product_modal .product_inner .in_product_items .item {
    width: auto;
    margin: 0;
    padding: 4px 12px 4px 4px;
    background: #F8F8FA;
    border-radius: 20px;
}

.modal.product_modal .product_inner .in_product_items .item img {
    width: 28px;
    height: 28px;
    margin-right: 8px;
}

.modal.product_modal .product_inner .in_product_items .item p {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #20211C;
}

.modal.product_modal .product_inner .in_product_items .item p span {
    font-size: 13px;
    font-weight: 500;
    color: #8A8A93;
}

.modal.product_modal .price_block {
    gap: 14px;
    margin-bottom: 0;
    padding-top: 14px;
    border-top: 1px solid #F1F1F4;
}

.modal.product_modal .price_block .prices {
    flex: 0 0 auto;
    flex-direction: column-reverse;
    gap: 2px;
}

.modal.product_modal .price_block .prices .new_price {
    font-size: 26px;
    font-weight: 800;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.modal.product_modal .price_block .prices .old_price {
    font-size: 14px;
    font-weight: 500;
    color: #8A8A93;
    white-space: nowrap;
    text-decoration: line-through;
}

.modal.product_modal .price_block .prices .old_price::before {
    display: none;
}

.modal.product_modal .price_block .add_to_cart {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    max-width: 320px;
    height: 52px;
    margin-left: auto;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 500px;
    cursor: pointer;
}

.modal.product_modal .price_block .quantity_control {
    flex: 0 0 auto;
    margin-left: auto;
}

.modal.product_modal .price_block .quantity_control .cart_count.count {
    width: 150px;
    height: 52px;
}

@media (max-width: 767px) {
    .modal.product_modal .modal-dialog {
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    /* Окно выезжает снизу так же, как шторки «Ещё» и входа. Длинное
       содержимое прокручивается внутри самого окна, а у подложки прокрутки
       нет: иначе во время движения на мгновение появлялась полоса
       прокрутки и страница дёргалась. */
    .modal.product_modal {
        overflow: hidden;
    }

    .modal.product_modal.fade {
        transition: opacity .15s linear;
    }

    .modal.product_modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .3s ease;
    }

    .modal.product_modal.show .modal-dialog {
        transform: none;
    }

    .modal.product_modal .modal-dialog .modal-content {
        max-height: 94vh;
        max-height: 94svh;
        padding: 0;
        overflow-y: auto;
        border-radius: 24px 24px 0 0;
    }

    .modal.product_modal .modal-content > .row {
        margin: 0;
    }

    .modal.product_modal .modal-content > .row > * {
        padding: 0;
    }

    /* Фото — во всю ширину, чуть ниже квадрата, чтобы текст был виден сразу. */
    .modal.product_modal .image_container {
        padding-bottom: 76%;
        border-radius: 0;
    }

    .modal.product_modal .product_info {
        margin-top: 0;
        padding: 16px 16px 0;
    }

    .modal.product_modal .product_title {
        flex-direction: row;
        align-items: flex-start;
        padding-right: 0;
    }

    .modal.product_modal .product_title .title {
        font-size: 22px;
    }

    .modal.product_modal .product_title .count {
        margin: 3px 0 0;
    }

    /* Цена и кнопка всегда под рукой, даже если описание длинное. */
    .modal.product_modal .price_block {
        position: sticky;
        bottom: 0;
        margin: 0 -16px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
    }

    .modal.product_modal .price_block .prices .new_price {
        font-size: 22px;
    }

    .modal.product_modal .price_block .add_to_cart {
        max-width: none;
        padding: 0 14px;
        font-size: 15px;
    }
}

/* ── Баннер на телефоне: картинка справа снизу, рядом с текстом ───────────
   Раньше картинке доставалось то, что осталось под текстом и кнопкой: при
   высоте в пол-экрана оставалось почти ничего, и она уезжала за край.
   Теперь текст и кнопка занимают левую часть слайда, а картинка прижата
   к правому нижнему углу и всегда видна целиком. */
@media (max-width: 768px) {
    .banner_container .carousel-item .container-fluid {
        padding: 0;
    }

    .banner_container .carousel-item .container-fluid .row {
        display: block;
        margin: 0;
    }

    .banner_container .carousel-item .row .col-md-6,
    .banner_container .carousel-item .row .col-md-6:last-child {
        position: static;
        display: block;
        width: 100%;
        height: auto;
        padding: 0;
    }

    .banner_container .carousel-item .carousel_text {
        position: relative;
        z-index: 1;
        max-width: 62%;
        height: auto;
        margin: 0;
        padding: 24px 0 0 20px;
    }

    .banner_container .carousel-item .carousel_text .title {
        margin-bottom: 8px;
        font-size: 24px;
        line-height: 1.1;
    }

    .banner_container .carousel-item .carousel_text .desc {
        display: -webkit-box;
        margin-bottom: 0;
        overflow: hidden;
        font-size: 14px;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .banner_container .carousel-item .carousel_image_wrapper {
        position: absolute;
        right: 0;
        bottom: 0;
        display: block;
        width: 52%;
        height: 74%;
        margin: 0;
    }

    .banner_container .carousel-item .carousel_image_wrapper img {
        width: 100%;
        height: 100%;
        max-height: none;
        margin-right: 0;
        object-fit: contain;
        object-position: right center;
    }

    .banner_container .carousel-item .col-md-6 > a {
        position: absolute;
        left: 20px;
        bottom: 34px;
        z-index: 1;
        max-width: 56%;
        margin: 0;
        padding: 12px 20px;
        font-size: 14px;
        white-space: nowrap;
    }

    /* Ушедший слайд остаётся отрисованным (только невидим) и возвращается
       на место. Без этих двух правил он возвращался плавно, а его кнопка
       из-за «transition: all» гасла с задержкой — и было видно, как она
       въезжает поверх нового слайда. */
    .banner_container .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) {
        transition: none;
    }

    .banner_container .carousel-item a {
        transition: background-color .3s, color .3s;
    }

    /* При свайпе не должны выделяться текст и «вытаскиваться» кнопка. */
    .banner_container .carousel-item,
    .banner_container .carousel-item a,
    .banner_container .carousel-item img {
        -webkit-user-select: none;
        user-select: none;
        -webkit-user-drag: none;
        -webkit-touch-callout: none;
    }

    /* Слайды листаются пальцем; стрелки на низком баннере закрывали текст. */
    .banner_container .carousel-control-prev,
    .banner_container .carousel-control-next {
        display: none;
    }
}

/* Поиск: «ничего не найдено» и ошибка — с отступами, как у строк результата. */
.search_results .search_message {
    margin: 0;
    padding: 18px 20px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 500;
    color: #8A8A93;
    text-align: center;
}

/* ── Заглушка «сайт ещё не готов» ─────────────────────────────────────── */

html.preview_notice_open,
html.preview_notice_open body {
    overflow: hidden;
}

.preview_notice {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #fff;
}

/* Невидимая зона закрытия в левом верхнем углу: посетитель её не видит. */
.preview_notice_close {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(88px + env(safe-area-inset-left, 0px));
    height: calc(88px + env(safe-area-inset-top, 0px));
    padding: 0;
    background: transparent;
    border: none;
    outline: none;
    cursor: default;
    -webkit-tap-highlight-color: transparent;
}

.preview_notice_body {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 760px;
}

.preview_notice_mascot {
    flex: 0 0 auto;
    width: 200px;
    height: auto;
    animation: preview_notice_bob 2.6s ease-in-out infinite;
}

.preview_notice_text h2 {
    margin: 0 0 14px;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    color: #20211C;
}

.preview_notice_text p {
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
    color: #55555F;
}

@keyframes preview_notice_bob {
    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@media (max-width: 767px) {
    .preview_notice_body {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .preview_notice_mascot {
        width: 170px;
    }

    .preview_notice_text h2 {
        font-size: 28px;
    }

    .preview_notice_text p {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .preview_notice_mascot {
        animation: none;
    }
}

/* ── Лента категорий и переход к разделам каталога ────────────────────── */

/* Раздел, открытый по ссылке с якорем, не прячется под закреплённой шапкой. */
section[id] {
    scroll-margin-top: 100px;
}

@media (max-width: 991px) {
    section[id] {
        scroll-margin-top: calc(var(--app-bar-height) + var(--app-safe-top) + 62px);
    }

    /* Лента листается только по горизонтали и не тянет за собой страницу. */
    .mobile_food_menu {
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }

    .mobile_food_menu ul {
        width: max-content;
    }

    .mobile_food_menu a {
        white-space: nowrap;
        user-select: none;
        -webkit-user-select: none;
    }

    /* Отклик на нажатие — сразу, не дожидаясь прокрутки страницы. */
    .mobile_food_menu a:active {
        transform: scale(.96);
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .mobile_food_menu,
    .mobile_food_menu.visible {
        transition: none;
    }
}

/* ── Вход на телефоне: шторка снизу, как «Ещё» ────────────────────────── */

@media (max-width: 991px) {
    .modal.login_modal,
    .modal.login_modal .modal-dialog {
        border-radius: 0;
    }

    /* Как у окна товара: без прокрутки у подложки шторка не дёргает страницу. */
    .modal.login_modal {
        overflow: hidden;
    }

    .modal.login_modal .modal-dialog {
        display: flex;
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .modal.login_modal .modal-content {
        max-height: 92vh;
        max-height: 92dvh;
        overflow-y: auto;
        border: none;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -12px 40px rgba(24, 28, 46, .16);
    }

    .modal.login_modal .modal_login_content {
        min-height: 0;
        padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
        border-radius: 28px 28px 0 0;
    }

    /* Полоска-«ручка», как у шторок «Ещё» и выбора города. */
    .modal.login_modal .modal_login_content::before {
        content: "";
        display: block;
        flex: 0 0 auto;
        width: 44px;
        height: 4px;
        margin: 0 auto 18px;
        border-radius: 2px;
        background: #E8E8ED;
    }

    /* Шторка закрывается нажатием на затемнение — крестик не нужен. */
    .modal.login_modal .modal-dialog .btn-close {
        display: none;
    }

    .modal.login_modal .modal_login_content .modal_login_header {
        margin-bottom: 8px;
        font-size: 24px;
    }

    .modal.login_modal .modal_login_content .modal_login_desc {
        margin-bottom: 20px;
        font-size: 15px;
    }

    .modal.login_modal .modal_login_button {
        margin-top: 16px;
        padding-top: 17px;
        padding-bottom: 17px;
    }

    .modal.login_modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .3s ease;
    }

    .modal.login_modal.show .modal-dialog {
        transform: none;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .modal.login_modal.fade .modal-dialog,
    .modal.product_modal.fade .modal-dialog {
        transform: none;
        transition: none;
    }
}

/* ── Корзина под статус-баром ─────────────────────────────────────────────
   В приложении страница занимает весь экран, вместе с областью статус-бара.
   Корзина на телефоне открывается во весь экран, поэтому, как и шапка,
   отступает сверху на высоту системной панели. В обычном браузере
   --app-safe-top равен нулю и ничего не меняется. */
@media (max-width: 991px) {
    .modal_cart {
        padding-top: var(--app-safe-top);
    }

    .modal_cart .close_cart {
        top: calc(20px + var(--app-safe-top));
    }
}

@media (max-width: 576px) {
    .modal_cart .close_cart {
        top: calc(14px + var(--app-safe-top));
    }
}

/* ── Счётчик товара и добавление в корзину ────────────────────────────── */

/* Цифру в счётчике нельзя выделить: на телефоне нажатие по блоку
   выделяло текст и показывало системное меню. */
.cart_count,
.cart_count input,
.quantity_control,
.add_to_cart,
.add_extra_to_order {
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.cart_count input {
    pointer-events: none;
}

/* Двойное нажатие на плюс и минус не увеличивает страницу. */
.cart_count span.minus,
.cart_count span.plus,
.add_to_cart {
    touch-action: manipulation;
}

/* Отклик на нажатие: счётчик и кнопка появляются, а не подменяются рывком. */
.quantity_control.is_appearing,
.add_to_cart.is_appearing {
    animation: cart_control_appear .22s ease;
}

@keyframes cart_control_appear {
    from {
        opacity: 0;
        transform: scale(.92);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Кнопка корзины в нижнем меню: «подпрыгивает» при добавлении товара
   и показывает кольцо ожидания, пока корзина сверяется с сервером. */
.app_tab_cart_button.is_bumped {
    animation: cart_button_bump .35s ease;
}

@keyframes cart_button_bump {
    0%,
    100% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.14);
    }
}

.app_tab_cart_button.is_busy::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 3px solid transparent;
    border-top-color: #20211C;
    border-radius: 50%;
    animation: cart_button_spin .7s linear infinite;
}

/* Количество товаров — поверх кольца ожидания, а не под ним. */
.app_tab_cart_button .app_tab_badge {
    z-index: 1;
}

@keyframes cart_button_spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .quantity_control.is_appearing,
    .add_to_cart.is_appearing,
    .app_tab_cart_button.is_bumped {
        animation: none;
    }
}

/* ── Корзина выезжает сбоку, а не возникает на месте ──────────────────── */

.modal_cart {
    opacity: 0;
    transform: translateX(100%);
    transition: transform .28s cubic-bezier(.4, 0, .6, 1), opacity .28s ease;
}

/* Без класса is_open корзина возвращается в исходное положение —
   это и есть обратная анимация при закрытии. */
.modal_cart.is_open {
    opacity: 1;
    transform: none;
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .18s ease;
}

.overlay_cart {
    opacity: 0;
    transition: opacity .25s ease;
}

.overlay_cart.is_open {
    opacity: 1;
}

.modal_cart .fixed_total .button_block a {
    --spinner-color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .modal_cart,
    .overlay_cart {
        transition: none;
    }
}

/* Строка «Итого» прилипает к низу корзины, а не закреплена на экране:
   закреплённая дёргалась, пока корзина выезжает, — во время сдвига
   браузер считает её положение от корзины, а после — от экрана. */
.modal_cart .cart_with_items {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding-bottom: 0;
}

.modal_cart .fixed_total {
    position: sticky;
    right: auto;
    bottom: 0;
    z-index: 2;
    width: auto;
    max-width: none;
    margin-top: auto;
}

/* ── Плашка «Ваш заказ»: возврат к странице отслеживания ──────────────── */

.active_order_bar {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 24;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    padding: 10px 14px 10px 10px;
    color: #20211C;
    text-decoration: none;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 32px rgba(24, 28, 46, .18);
    transition: transform .15s ease;
}

.active_order_bar:hover {
    color: #20211C;
}

.active_order_bar:active {
    transform: scale(.98);
}

.active_order_bar_icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.active_order_bar_text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.active_order_bar_label {
    font-size: 12px;
    font-weight: 600;
    color: #8A8A93;
}

.active_order_bar_status {
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.active_order_bar_action {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #FF0A0A;
    border-radius: 12px;
}

/* Плашка cookie встаёт над плашкой заказа, а не поверх неё. */
.active_order_bar ~ .cookie_notice {
    bottom: 104px;
}

@media (max-width: 991px) {
    /* Над нижним меню и выступающей кнопкой корзины. */
    .active_order_bar {
        left: 12px;
        right: 12px;
        bottom: calc(var(--app-tabbar-height) + var(--app-safe-bottom) + 32px);
        max-width: none;
    }

    .active_order_bar ~ .cookie_notice {
        bottom: calc(var(--app-tabbar-height) + var(--app-safe-bottom) + 108px);
    }

    /* Чтобы плашка не закрывала последние карточки каталога. */
    body:has(.active_order_bar) {
        padding-bottom: calc(var(--app-tabbar-height) + var(--app-safe-bottom) + 112px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .active_order_bar {
        transition: none;
    }
}

/* ── Счётчик товара: плюс и минус по центру при любой высоте ──────────── */

.cart_count.count {
    align-items: center;
}

.cart_count.count span.minus,
.cart_count.count span.plus {
    height: 100%;
}

/* ── Страница «Отзывы»: без ссылки «назад» заголовок не липнет к шапке ─── */

.reviews_page .reviews_wrapper .title_block {
    margin-top: 20px;
    margin-bottom: 18px;
}

/* «Средняя оценка: 4.9 /5» — число не слипается с подписью. */
.reviews_page .reviews_wrapper .title_block p span {
    margin: 0 3px 0 8px;
    line-height: 1;
}

@media (max-width: 576px) {
    .reviews_page .reviews_wrapper .title_block {
        gap: 6px;
        margin-top: 12px;
    }

    .reviews_page .reviews_wrapper .title_block h1 {
        font-size: 28px;
    }
}

/* ── Страница «Контакты» ──────────────────────────────────────────────── */

.contacts_page {
    padding: 28px 0 64px;
    background: #F8F8FA;
}

.contacts_title {
    margin: 0 0 20px;
    font-size: 36px;
    font-weight: 800;
    color: #20211C;
}

.contacts_subtitle {
    margin: 32px 0 12px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #8A8A93;
}

.contacts_card {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 2px 10px rgba(24, 28, 46, .05);
}

/* --- связаться --- */

.contacts_hero {
    padding: 28px;
}

.contacts_hero_label {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 500;
    color: #8A8A93;
}

.contacts_hero_phone {
    display: inline-block;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
    color: #20211C;
    text-decoration: none;
}

.contacts_hero_phone:hover {
    color: #FF0A0A;
}

.contacts_hero_schedule {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: #55555F;
}

.contacts_actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 180px));
    gap: 10px;
    margin-top: 22px;
}

.contacts_action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    color: #20211C;
    text-decoration: none;
    background: #F3F3F7;
    border-radius: 16px;
    transition: transform .15s ease, background-color .15s ease;
}

.contacts_action:hover {
    color: #20211C;
    background: #EAEAF0;
}

.contacts_action:active {
    transform: scale(.97);
}

/* Значки соцсетей белые — им нужна тёмная подложка, как в шторке «Ещё». */
.contacts_action img {
    width: 28px;
    height: 28px;
    padding: 5px;
    background: #20211C;
    border-radius: 50%;
}

.contacts_action.is-primary,
.contacts_action.is-primary:hover {
    color: #fff;
    background: #FF0A0A;
}

/* --- филиалы --- */

.contacts_branches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.contacts_branch {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px;
}

.contacts_branch_head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.contacts_branch_pin {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #FF0A0A;
    background: #FFECEC;
    border-radius: 50%;
}

.contacts_branch_info {
    min-width: 0;
}

.contacts_branch_address {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #20211C;
}

.contacts_branch_schedule {
    margin: 4px 0 0;
    font-size: 14px;
    color: #8A8A93;
}

.contacts_branch_actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
}

.contacts_branch_button {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    background: #F3F3F7;
    border-radius: 14px;
    transition: transform .15s ease;
}

.contacts_branch_button:hover {
    color: #20211C;
}

.contacts_branch_button:active {
    transform: scale(.97);
}

.contacts_branch_button.is-route,
.contacts_branch_button.is-route:hover {
    color: #FF0A0A;
    background: #FFECEC;
}

/* --- карта и реквизиты --- */

.contacts_map {
    overflow: hidden;
}

.contacts_map iframe {
    display: block;
}

.contacts_page .contacts_requisites {
    margin: 0;
    padding: 22px 24px;
}

.contacts_page .contacts_requisites .legal_links {
    margin: 14px 0 0;
}

@media (max-width: 767px) {
    .contacts_page {
        padding: 16px 0 24px;
    }

    .contacts_title {
        margin-bottom: 14px;
        font-size: 28px;
    }

    .contacts_subtitle {
        margin: 24px 4px 10px;
    }

    .contacts_hero {
        padding: 20px 18px 18px;
    }

    .contacts_hero_phone {
        font-size: 28px;
    }

    /* Три кнопки в ряд под большой палец: значок над подписью. */
    .contacts_actions {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        margin-top: 18px;
    }

    .contacts_action {
        flex-direction: column;
        gap: 6px;
        min-height: 68px;
        padding: 10px 6px;
        font-size: 13px;
    }

    .contacts_branches {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .contacts_map iframe {
        height: 300px;
    }

    .contacts_page .contacts_requisites {
        padding: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contacts_action,
    .contacts_branch_button {
        transition: none;
    }
}

/* ── Страница «Акции» ─────────────────────────────────────────────────── */

.promos_title {
    margin: 0 0 4px;
    font-size: 36px;
    font-weight: 800;
    color: #20211C;
}

/* На телефоне акция — компактная карточка, а не баннер на весь экран:
   текст и кнопка слева, картинка прижата к правому нижнему углу. */
@media (max-width: 767px) {
    .promos_title {
        margin-bottom: 14px;
        font-size: 28px;
    }

    .promos_page .promos_list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .promos_page .carousel-item_promo {
        position: relative;
        display: flex;
        min-height: 196px;
        height: auto;
        margin: 0;
        border-radius: 24px;
        box-shadow: 0 2px 10px rgba(24, 28, 46, .06);
    }

    .promos_page .carousel-item_promo .container-fluid {
        display: flex;
        width: 100%;
        padding: 0;
    }

    .promos_page .carousel-item_promo .row {
        display: block;
        width: 100%;
        margin: 0;
    }

    .promos_page .carousel-item_promo .row .col-md-6 {
        position: static;
        width: 100%;
        padding: 0;
    }

    .promos_page .carousel-item_promo .carousel_text {
        position: relative;
        z-index: 1;
        max-width: 64%;
        height: auto;
        margin: 0;
        padding: 20px 0 20px 18px;
    }

    .promos_page .carousel-item_promo .carousel_text .title {
        margin-bottom: 6px;
        font-size: 22px;
        font-weight: 800;
        line-height: 1.15;
    }

    .promos_page .carousel-item_promo .carousel_text .desc {
        margin-bottom: 14px;
        font-size: 13px;
        font-weight: 500;
        line-height: 1.35;
    }

    .promos_page .carousel-item_promo .carousel_text a {
        display: inline-flex;
        margin-top: auto;
        padding: 10px 18px;
        font-size: 14px;
        border-width: 0;
        transition: transform .15s ease;
    }

    .promos_page .carousel-item_promo .carousel_text a:active {
        transform: scale(.97);
    }

    .promos_page .carousel-item_promo .carousel_image_wrapper {
        position: absolute;
        right: -14px;
        bottom: -10px;
        display: block;
        width: 46%;
        height: auto;
        margin: 0;
        pointer-events: none;
    }

    .promos_page .carousel-item_promo .carousel_image_wrapper img {
        display: block;
        width: 100%;
        max-width: none;
        margin: 0;
    }
}

/* ── Вход: ввод кода из SMS (4 ячейки) ───────────────────────────────── */

/* На шаге кода рассказ о преимуществах регистрации уже не нужен. */
.modal_login_content.is_code_step .modal_login_desc {
    display: none;
}

.confirmation_form .otp_title {
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 600;
    color: #181C2E;
}

.confirmation_form .otp_desc {
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.45;
    color: #6B6E7A;
}

.confirmation_form .otp_change_phone,
.confirmation_form .otp_resend_button {
    padding: 0;
    border: none;
    background: none;
    color: #FF0A0A;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.confirmation_form .otp_change_phone:hover,
.confirmation_form .otp_resend_button:hover {
    text-decoration: underline;
}

.otp {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.otp .otp_digit {
    width: 68px;
    height: 76px;
    padding: 0;
    border: 2px solid #ECECF1;
    border-radius: 18px;
    background: #F8F8FA;
    color: #181C2E;
    font-size: 34px;
    font-weight: 600;
    text-align: center;
    caret-color: #FF0A0A;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, transform .15s ease;
    -moz-appearance: textfield;
}

/* Пустая ячейка — бледная точка, заполненная — белая. */
.otp .otp_digit::placeholder {
    color: #C9CAD3;
}

.otp .otp_digit:not(:placeholder-shown) {
    background: #fff;
}

.otp .otp_digit:focus {
    border-color: #FF0A0A;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 10, 10, .12);
    transform: translateY(-1px);
}

.otp.is_loading .otp_digit {
    opacity: .55;
}

.otp.is_success .otp_digit {
    border-color: #22A45D;
    background: #F0FBF4;
    color: #22A45D;
}

.otp.is_error .otp_digit {
    border-color: #FF0A0A;
    background: #FFF5F5;
}

.otp.is_error {
    animation: otp-shake .35s ease;
}

@keyframes otp-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.confirmation_form .otp_error {
    min-height: 22px;
    margin: 12px 0 0;
    font-size: 14px;
    text-align: center;
    color: #E00000;
}

.confirmation_form .otp_submit:disabled {
    opacity: .6;
    cursor: default;
}

.confirmation_form .otp_resend {
    margin: 16px 0 0;
    font-size: 14px;
    text-align: center;
    color: #6B6E7A;
}

/* ── Вход: куда прислать код (Telegram, WhatsApp, SMS) ───────────────── */

/* Мессенджеры — крупные кнопки фирменных цветов (затемнены до контраста
   с белым текстом), SMS — неприметная ссылка под ними: SMS дороже. */
.login_channels {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.modal.login_modal .login_channels .modal_login_button {
    gap: 10px;
    margin-top: 0;
    padding-top: 20px;
    padding-bottom: 20px;
}

.modal.login_modal .login_channel_telegram {
    background-color: #1877B5;
}

.modal.login_modal .login_channel_telegram:hover {
    background-color: #146599;
}

.modal.login_modal .login_channel_whatsapp {
    background-color: #108545;
}

.modal.login_modal .login_channel_whatsapp:hover {
    background-color: #0D6F39;
}

.login_channel .login_channel_icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.modal.login_modal .login_sms_link {
    display: block;
    margin: 14px auto 0;
    padding: 4px 8px;
    border: none;
    background: none;
    color: #6B6E7A;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.modal.login_modal .login_sms_link:hover {
    color: #181C2E;
}

/* Пока уходит код, остальные кнопки отправки недоступны (auth.js,
   lockSendButtons): бледнеют и не реагируют на наведение. */
.modal.login_modal .send_code_button:disabled,
.confirmation_form .otp_resend_button:disabled,
.confirmation_form .otp_channel_button:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Шаг кода: дошёл ли код и «Не приходит код? Получить по SMS». */
.confirmation_form .otp_delivery,
.confirmation_form .otp_channels {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
    color: #6B6E7A;
}

.confirmation_form .otp_delivery:empty,
.confirmation_form .otp_channels:empty {
    display: none;
}

.confirmation_form .otp_delivery.is_delivered {
    color: #22A45D;
}

.confirmation_form .otp_delivery.is_failed {
    color: #E00000;
}

.confirmation_form .otp_channel_button {
    padding: 0;
    border: none;
    background: none;
    color: #FF0A0A;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    --spinner-color: #FF0A0A;
}

.confirmation_form .otp_channel_button:hover {
    text-decoration: underline;
}

@media (max-width: 991px) {
    .modal.login_modal .login_channels .modal_login_button {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .modal.login_modal .login_channels {
        margin-top: 16px;
    }
}

@media (max-width: 991px) {
    .confirmation_form .otp_title {
        font-size: 18px;
    }

    .otp {
        gap: 10px;
    }

    .otp .otp_digit {
        width: 60px;
        height: 68px;
        font-size: 30px;
        border-radius: 16px;
    }
}

@media (max-width: 360px) {
    .otp .otp_digit {
        width: 52px;
        height: 60px;
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .otp.is_error {
        animation: none;
    }

    .otp .otp_digit {
        transition: none;
    }
}

/* ---------- SEO: страницы категорий, текст, 404 ---------- */

/* Заголовок раздела на главной — ссылка на страницу категории, выглядит как раньше. */
.category_heading_link {
    color: inherit;
    text-decoration: none;
}

.category_heading_link:hover {
    color: #FF0A0A;
}

.category_breadcrumbs {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #8A8A94;
}

.category_breadcrumbs a {
    color: #8A8A94;
    text-decoration: none;
}

.category_breadcrumbs a:hover {
    color: #FF0A0A;
}

.category_title {
    margin-bottom: 16px;
    font-size: 32px;
    font-weight: 700;
}

.category_description {
    max-width: 760px;
    margin-bottom: 24px;
    color: #55555F;
}

.seo_text {
    margin-top: 32px;
    margin-bottom: 32px;
    max-width: 960px;
    font-size: 14px;
    line-height: 1.6;
    color: #6B6B75;
}

.seo_text p {
    margin-bottom: 12px;
}

@media (max-width: 767px) {
    .category_title {
        font-size: 24px;
    }
}

.not_found {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 16px;
    text-align: center;
}

.not_found_logo img {
    height: 48px;
    margin-bottom: 32px;
}

.not_found_code {
    margin-bottom: 4px;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    color: #FF0A0A;
}

.not_found h1 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 700;
}

.not_found_text {
    margin-bottom: 24px;
    color: #55555F;
}

.not_found_button {
    display: inline-block;
    padding: 12px 28px;
    font-weight: 600;
    color: #fff;
    background: #FF0A0A;
    border-radius: 12px;
    text-decoration: none;
}

.not_found_button:hover {
    color: #fff;
    background: #E00909;
}

.not_found_menu {
    margin-top: 40px;
}

.not_found_menu p {
    margin-bottom: 12px;
    font-weight: 600;
}

.not_found_menu ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.not_found_menu a {
    display: inline-block;
    padding: 6px 14px;
    color: #1D1D24;
    background: #F1F1F4;
    border-radius: 999px;
    text-decoration: none;
}

.not_found_menu a:hover {
    color: #FF0A0A;
}

/* ---------- День рождения в кабинете ---------- */

.birthday_card {
    margin-top: 16px;
}

.birthday_form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 12px 0 8px;
}

.birthday_save,
.birthday_whatsapp {
    flex: 0 0 auto;
    padding: 8px 18px;
    font-weight: 600;
    color: #fff;
    background: #FF0A0A;
    border: none;
    border-radius: 10px;
    text-decoration: none;
}

.birthday_whatsapp {
    display: inline-block;
    margin-top: 8px;
    background: #25D366;
}

.birthday_save:hover,
.birthday_whatsapp:hover {
    color: #fff;
    opacity: .9;
}

.birthday_date {
    margin: 8px 0 4px;
    font-size: 20px;
    font-weight: 700;
}

.birthday_status {
    margin-bottom: 0;
    color: #92400E;
}

.birthday_status.is-confirmed {
    color: #15803D;
}

.birthday_error {
    color: #DC2626;
    font-size: 14px;
}

.birthday_status.is-later {
    color: #55555F;
}

.birthday_notice {
    border: 1px solid #FCD34D;
    background: #FFFBEB;
}

.birthday_notice p {
    margin-bottom: 8px;
    color: #92400E;
}

/* Ошибка прямо под полем (showFieldError): красная рамка и текст. */
.form_error.field_error {
    margin: 6px 0 10px;
    font-size: 13px;
    line-height: 1.35;
    color: #C2261B;
}

.input_wrapper.is_invalid input,
.modal_login_forms label.is_invalid {
    border-color: #E5484D !important;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .12);
}

.modal_login_forms label.is_invalid {
    border: 1px solid #E5484D;
    border-radius: 12px;
}

.consent_row.is_invalid label {
    color: #C2261B;
}

/* --- Халяль: значок на карточке, в окне товара и в корзине --- */
.halal_badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.halal_badge_halal {
    background: #E7F6EC;
    color: #1F7A3D;
}

.halal_badge_choice {
    background: #EEF6F0;
    color: #2F7D4A;
}

.halal_badge_not_halal {
    background: #FDECEC;
    color: #B42318;
}

.product_item .image_container {
    position: relative;
}

.product_item .image_container .halal_badge {
    position: absolute;
    top: 10px;
    left: 10px;
}

.product_modal .product_halal:empty {
    display: none;
}

.product_modal .product_halal {
    margin: 4px 0 10px;
}

/* --- Окно товара: варианты (лапша, халяль) --- */
.product_modal .product_variants {
    margin: 14px 0;
}

.product_modal .product_variants_title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
}

.product_modal .product_variants_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product_modal .product_variant {
    padding: 8px 14px;
    border: 1px solid #E6E6EA;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: #20211C;
    transition: border-color .15s, background-color .15s, color .15s;
}

.product_modal .product_variant:hover {
    border-color: #FF0A0A;
}

.product_modal .product_variant[aria-pressed="true"] {
    border-color: #FF0A0A;
    background: #FF0A0A;
    color: #fff;
}

/* --- Окно товара: «С этим покупают» --- */
.product_modal .product_recommendations {
    margin: 14px 0;
}

.product_modal .product_recommendations_title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #20211C;
}

.product_modal .product_recommendations_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product_modal .recommend_item,
.product_modal .product_item.recommend_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: 0;
    margin: 0;
    box-shadow: none;
    text-align: left;
    gap: 10px;
    padding: 8px;
    border: 1px solid #EFEFF2;
    border-radius: 12px;
    background: #fff;
}

.product_modal .recommend_image {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
}

.product_modal .recommend_text {
    flex: 1 1 auto;
    min-width: 0;
}

.product_modal .recommend_title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #20211C;
}

.product_modal .recommend_price {
    margin: 2px 0 0;
    font-size: 13px;
    color: #5E5E66;
}

.product_modal .recommend_add {
    flex-shrink: 0;
    padding: 6px 12px;
    border: 1px solid #FFC9C4;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #FF0A0A;
    cursor: pointer;
    text-decoration: none;
}

.product_modal .recommend_add:hover {
    background: #FF0A0A;
    color: #fff;
}

.product_modal .recommend_item .quantity_control {
    flex-shrink: 0;
}

/* --- Корзина: вариант в строке --- */
.cart_item .cart_item_variant {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 4px 0;
}

.cart_item .cart_item_variant:empty {
    display: none;
}

.cart_item .cart_variant {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    color: #5E5E66;
}

.cart_item .cart_variant_select {
    padding: 3px 8px;
    border: 1px solid #E6E6EA;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    color: #20211C;
}

.order_item .order_item_variant {
    font-weight: 500;
    color: #5E5E66;
}

/* Окно товара: выбор обязателен — пока не выбрано, кнопка бледная,
   а при нажатии выбор подсвечивается. */
.product_modal.needs_variant .price_block .add_to_cart {
    opacity: .55;
}

.product_modal .product_variants.is_missing .product_variants_title {
    color: #C2261B;
}

.product_modal .product_variants.is_missing .product_variant {
    border-color: #FF0A0A;
    animation: variant_shake .3s;
}

@keyframes variant_shake {
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .product_modal .product_variants.is_missing .product_variant {
        animation: none;
    }
}

/* «Никогда не халяль» (бекон): предупреждение в окне товара, корзине, оформлении. */
.product_modal .not_halal_warning {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #F5C2C0;
    border-radius: 10px;
    background: #FDECEC;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #B42318;
}

/* Товар, на который скидки процентом не действуют (соя, часть допов). */
.no_discount_note {
    display: inline-block;
    font-size: 12px;
    color: #667085;
    white-space: nowrap;
}

.not_halal_note {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #B42318;
    white-space: nowrap;
}

/* Палочки во «Включено в заказ»: строка на всю ширину, справа − / +;
   «−» бледная, пока не докупили сверх бесплатных. */
.modal_cart .cart_include_items .item.include_sticks {
    display: flex;
    align-items: center;
    width: 100%;
    padding-right: 4px;
}

.modal_cart .cart_include_items .chopsticks_control {
    flex-shrink: 0;
    margin-left: auto;
    transform: scale(.85);
    transform-origin: right center;
}

.modal_cart .cart_include_items .chopsticks_control .is_disabled {
    opacity: .35;
    cursor: default;
}

/* Окно товара: «Выберите: …» под кнопками варианта. */
.product_modal .product_variants_error {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #C2261B;
}

/* Скидка на ДР до проверки оператором: сумма видна, в «Итого» не входит. */
.checkout_info .birthday_pending_discount {
    margin-top: 8px;
}

.checkout_info .birthday_pending_discount .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
}

.checkout_info .birthday_pending_discount p {
    margin-bottom: 0;
}

.checkout_info .birthday_pending_amount {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.checkout_info .birthday_pending_note {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.35;
    color: #9CA3AF;
}
