.foodz-child-product-modal__title.foodz-child-product-modal__title--mobile{
        font-family: 'Oswald', sans-serif;
        color: #3A3D49;
        font-size: 28px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 20px;
}

.ilcaffe-nutrition-allergens-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 2px;
    border-radius: 50%;
    border: 1px solid #c1a26e;
    background: #f6f0e4;
    color: #1f1309;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.ilcaffe-nutrition-allergens-trigger:hover,
.ilcaffe-nutrition-allergens-trigger:focus-visible {
    background: #c1a26e;
    color: #fff;
    outline: none;
}

.ilcaffe-nutrition-allergens-template {
    display: none;
}

.ilcaffe-nutrition-allergens-modal {
    position: fixed;
    inset: 0;
    z-index: 11050;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilcaffe-nutrition-allergens-modal[hidden] {
    display: none;
}

.ilcaffe-nutrition-allergens-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.ilcaffe-nutrition-allergens-dialog {
    position: relative;
    z-index: 1;
    --ilcaffe-nutrition-allergens-bg: #0f0f0f;
    background: #0f0f0f94;
    color: #f7f7f7;
    padding: 24px;
    border-radius: 14px;
    width: min(560px, calc(100% - 32px));
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - 80px);
    overflow: visible;
}

.ilcaffe-nutrition-allergens-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    color: #c1a26e;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    font-family: emoji;
}

.ilcaffe-nutrition-allergens-content {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 160px);
    overflow: auto;
}

.ilcaffe-nutrition-allergens-title {
    margin: 0 32px 4px 0;
    font-size: 20px;
    font-weight: 700;
}

.ilcaffe-nutrition-allergens-section {
    background: #242a3666;
    border: 1px solid #c1a26e;
    border-radius: 12px;
    padding: 14px;
}

@media (min-width: 901px) {
    .ilcaffe-nutrition-allergens-dialog.ilcaffe-nutrition-allergens-dialog--arrow-left::after {
        content: "";
        position: absolute;
        width: 0;
        height: 0;
        border-top: 34px solid transparent;
        border-bottom: 1px solid #000000;
        border-right: 37px solid #0f0f0f75;
        left: -37px;
        top: 58%;
        transform: translateY(100%);
    }
}

.ilcaffe-nutrition-list {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.ilcaffe-nutrition-list__metrics{
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.ilcaffe-nutrition-list__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.ilcaffe-allergens__title,
.ilcaffe-nutrition-list__title {
    margin: 0;
    color: #f7f7f7;
    font-size: 25px;
    font-weight: 100;
}

.ilcaffe-nutrition-list__context {
    color: #c1a26e;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ilcaffe-nutrition-metric {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f7f7f7;
    flex-direction: column;
    padding-left: 5px;
    padding-right: 5px;
    border-right: .05832rem solid #fff;
}

.ilcaffe-nutrition-metric > div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ilcaffe-nutrition-metric__abbr {
    font-weight: 700;
    color: #c1a26e;
}

.ilcaffe-nutrition-metric__value {
    font-weight: 700;
}

.ilcaffe-nutrition-metric__unit {
    color: #c9c9c9;
    font-size: 13px;
}

.ilcaffe-allergens {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/*.ilcaffe-allergens__title {*/
/*    margin: 0;*/
/*    color: #f7f7f7;*/
/*    font-size: 16px;*/
/*    font-weight: 700;*/
/*}*/

.ilcaffe-allergens-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px 16px;
}

.ilcaffe-allergen {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f7f7f7;
}

.ilcaffe-allergen-icon {
    display: block;
    width: 45px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    padding: 4px;
}

.ilcaffe-allergen-label {
    font-weight: 100;
    font-size: 20px;
}

.ilcaffe-nutrition-allergens__empty {
    color: #c9c9c9;
    margin: 0;
}
.foodz-child-product-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
}

html.foodz-child-modal-open {
    overflow: hidden;
}

.foodz-child-product-modal[hidden] {
    display: none;
}

.foodz-child-product-modal__backdrop {
    position: absolute;
    inset: 0;
}

.foodz-child-product-modal__dialog {
    position: relative;
    background: #fff;
    width: 800px;
    max-height: 90vh;
    /*overflow: hidden;*/
    border-radius: 16px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
    padding: 3px 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
}
.woocommerce-Price-amount.amount{
    font-family: "Roboto",sans-serif !important;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #595b65;
    margin: 0 0 8px;
}
.foodz-child-product-modal__col--left .woocommerce-Price-amount.amount,
.foodz-child-product-modal__col--left .woocommerce-Price-currencySymbol{
    font-size: 14px;
    color: #868997;
}
.iiko-total-line,
.woocommerce-Price-currencySymbol,
.woocommerce-Price-amount.amount{
    font-family: "Roboto",sans-serif !important;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    color: #3a3d49;
    margin: 0 0 8px;
}
.iiko-title.with-child{
    font-family: "Oswald", Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #3a3d49;
    margin: 0 0 8px;
}
.woocommerce-Price-currencySymbol{
    margin-right: 4px;
}
/*.foodz-child-product-modal__footer .foodz-child-modifiers__total{*/
/*display: none;*/
/*}*/
/* Фиксируем кнопку к углу всего модального окна */
.foodz-child-product-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    border: none;
    background: #f2f2f2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000; /* поверх содержимого диалога */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.foodz-child-product-modal__header,
.foodz-child-product-modal__footer {
    flex: 0 0 auto;
}

.foodz-child-product-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 8px 8px;
    border-bottom: 1px solid #f2f2f2;
}

.foodz-child-product-modal__title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'Oswald', sans-serif;
    color: #3A3D49;
    text-align: center;
}

.foodz-child-product-modal__title--mobile {
    display: none;
}

.foodz-child-product-modal__form {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
}

.foodz-child-product-modal__body {
    flex: 1 1 auto;
    min-height: 320px;
    overflow: hidden;
    padding: 8px;
}

.foodz-child-product-modal__layout {
    display: flex;
    gap: 24px;
    height: 100%;
}
.foodz-child-cart__cart-link{
    position: relative;
}
@media (max-width: 768px) {
    .foodz-child-product-modal__header {
        display: none;
    }

    .foodz-child-product-modal__layout {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .foodz-child-product-modal {
        align-items: flex-end;
        overflow-y: auto;
        padding: 0;
        overscroll-behavior: contain;
    }

    .foodz-child-product-modal__dialog {
        width: 800px;
        max-width: 800px;
        max-height: 100vh;
        height: 92vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        opacity: 0;
        transition: transform 0.32s ease, opacity 0.25s ease;
        will-change: transform, opacity;
        touch-action: pan-y;
    }

    .foodz-child-product-modal__body {
        max-height: none;
        overscroll-behavior: contain;
        overflow: auto;
    }
}

@media (max-width: 768px) {
    .foodz-child-product-modal.foodz-child-product-modal--open .foodz-child-product-modal__dialog {
        transform: translateY(0);
        opacity: 1;
    }

    .foodz-child-product-modal__title--mobile {
        display: block;
        margin: 0;
        font-size: 22px;
        line-height: 1.25;
    }

    .foodz-child-product-modal__title--desktop,
    .foodz-child-product-modal__summary .product_title {
        display: none;
    }

    .foodz-child-product-modal__visual {
        position: relative;
        top: 0;
        height: 50vh;
        max-height: 30vh;
        /*min-height: 50vh;*/
        padding: 6px;
        background: #fff;
        z-index: 2;
        width: 100%;
    }

    .foodz-child-product-modal__image {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 0;
    }

    .foodz-child-product-modal__image img {
        width: 100%;
        height: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .foodz-child-product-modal__col--right {
        overflow: visible;
        max-height: none;
    }
}
@media (max-width: 480px) {
    .foodz-child-product-modal__dialog {
        width: 100vw;
    }
}

.foodz-child-product-modal__col--left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.foodz-child-product-modal__col--right {
    flex: 1 1 auto;
    min-width: 0;
    padding: 3px;
    border-radius: 12px;
    background: #f6f6f6;
    border: 1px solid #ededed;
    max-width: 480px;
    overflow-y: auto;
    max-height: 400px;
}
@media (max-width: 480px) {
    .foodz-child-product-modal__col--right {
        max-height: none;
        overflow-y: visible;
        background: #FFFFFF;
        border: none;
    }
}


.foodz-child-product-modal__variation-meta {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.foodz-child-product-modal__loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 16px;
    color: #555;
}

.foodz-child-product-modal__product {
    display: grid;
    /*grid-template-columns: 1.1fr 1.2fr;*/
    gap: 32px;
    align-items: start;
}

.foodz-child-product-modal__product--variable {
    display: block;
}

.foodz-child-product-modal__product--variable .foodz-child-product-modal__summary-inner {
    gap: 16px;
}

.foodz-child-product-modal__image .woocommerce-product-gallery,
.foodz-child-product-modal__image .woocommerce-product-gallery__wrapper {
    margin: 0;
}

.foodz-child-product-modal__image img {
    width: 300px;
    max-width: 100%;
    height: 300px;
    object-fit: contain;
}

.foodz-child-product-modal__product--variable .foodz-child-product-modal__image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.foodz-child-product-modal__product--variable .foodz-child-product-modal__image img {
    width: 100%;
    height: auto;
    max-width: 190px;
    max-height: 190px;
    object-fit: cover;
}

.foodz-child-product-modal__summary-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foodz-child-product-modal__visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.foodz-child-product-modal__required-modifiers,
.foodz-child-product-modal__modifiers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foodz-child-product-modal__modifiers .foodz-child-modifiers--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

/*
 * Force modifier thumbnails to render as square, cover-fit blocks so both the
 * <img> tag and the background-image fallback fill the tile consistently.
 * This makes the tile design predictable regardless of image aspect ratio or
 * loading state.
 */
.foodz-child-product-modal .foodz-child-modifier__image,
.foodz-child-product-modal__modifiers .foodz-child-modifier__image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background-color: #f6f6f6;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    display: block;
}

/* Hide the redundant, standalone image node injected ahead of the label so the
 * tile only shows the version inside the label content. */
.foodz-child-product-modal .foodz-child-modifier > .foodz-child-modifier__image {
    display: none;
}

.foodz-child-product-modal .foodz-child-modifier__image img,
.foodz-child-product-modal__modifiers .foodz-child-modifier__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.foodz-child-product-modal__meta {
    color: #8f8f8f;
    font-size: 14px;
    text-align: center;
}

.foodz-child-product-modal__col--left .iiko-nutritional {
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 12px;
    background: #f8f8f8;
    padding: 12px;
    border-radius: 12px;
}

.foodz-child-product-modal__col--left .iiko-nutritional-label {
    font-size: 13px;
    color: #757575;
}

.foodz-child-product-modal__col--left .iiko-nutritional-val {
    font-weight: 700;
    color: #111;
}

.foodz-child-product-modal__price .price {
    font-size: 26px;
    font-weight: 700;
    color: #111;
}

.foodz-child-product-modal__excerpt {
    color: #444;
    line-height: 1.5;
    padding-top: 40px;
    display: flex;
    gap: 12px;
    align-items: center;
}
@media (max-width: 768px) {
    .foodz-child-product-modal__summary .c-product__title{
        display: none;
    }
    .foodz-child-product-modal__col--right{
        margin: 0 auto;
    }
    .iiko-children-fields-wrapper.dodatni-sastojak.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers{
        height: 100%;
    }
    .foodz-child-product-modal__excerpt {
        padding-top: 0;
        text-align: center;
        flex-direction: column;
        align-items: center;
    }
}
.foodz-child-product-modal__variable-stack {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.foodz-child-product-modal__cart .cart,
.foodz-child-product-modal__cart form.cart {
    margin-top: 8px;
    width: 100%;
}

.foodz-child-product-modal__product--variable .foodz-child-product-modal__cart form.cart,
.foodz-child-product-modal__product--variable .foodz-child-product-modal__cart form.variations_form,
.foodz-child-product-modal__product--variable .foodz-child-product-modal__cart form.js-variations-form,
.foodz-child-product-modal__product--variable .foodz-child-product-modal__cart .single_variation_wrap {
    align-items: flex-start;
    flex-direction: column;
}

/*.foodz-child-product-modal__product--variable .single_variation_wrap {*/
/*    width: 100%;*/
/*}*/

.foodz-child-product-modal__product--variable .single_variation {
    margin: 0;
    padding: 0;
}

.foodz-child-product-modal__product--variable .foodz-child-product-modal__cart .single_variation_wrap {
    width: 100%;
}

.foodz-child-product-modal__product--variable .single_variation .price,
.foodz-child-product-modal__variation-meta .price {
    font-size: 20px;
    font-weight: 700;
    color: #111;
}

.foodz-child-product-modal .foodz-child-cart__grid {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    width: 100%;
}

.foodz-child-product-modal .foodz-child-cart__actions,
.foodz-child-product-modal .foodz-child-cart__quantity {
    min-width: 0;
}
.foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__quantity{
    left: 100px;
}
@media (max-width: 767px) {
    .foodz-child-product-modal .foodz-child-cart__grid {
        /*align-items: stretch;*/
    }

    .foodz-child-product-modal .foodz-child-cart__grid:not(.foodz-child-cart__grid--show-quantity) .foodz-child-cart__quantity {
        display: none;
    }

    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__quantity {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        width: min-content;
        left: 40px;
    }

    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__button {
        display: none;
    }

    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__delivery {
        display: none;
    }

    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--has-cart-link .foodz-child-cart__delivery {
        display: none;
    }

    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link {
        display: flex;
        flex: 1;
        align-items: center;
        gap: 12px;
        width: 100%;
    }

    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .c-product__quantity {
        flex: 1;
    }

    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .foodz-child-cart__cart-link {
        display: flex;
    }

    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .added_to_cart,
    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .c-add-to-cart {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        padding: 0 50px;
        border-radius: 8px;
        background: #ffbf00;
        color: #242a36;
        text-decoration: none;
        font-weight: 700;
        white-space: nowrap;
    }
    .foodz-child-product-modal__variation-meta{
        padding: 12px 0;
        align-items: baseline;
    }
    .iiko-title.with-child{
        font-family: "Oswald", Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.3;
        font-weight: 700;
        color: #3a3d49;
        margin: 0 0 8px;
    }
}

.foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__quantity {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}
@media (max-width: 480px) {
    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__quantity{
        left: 40px;
    }
}
.foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__button,
.foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__delivery {
    display: none;
}

.foodz-child-product-modal .foodz-child-cart__quantity {
    order: 1;
}

.foodz-child-product-modal .foodz-child-cart__actions {
    order: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.foodz-child-product-modal .foodz-child-cart__actions > * {
    flex-shrink: 0;
}

.foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--has-cart-link .foodz-child-cart__delivery {
    display: none;
}

.foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .c-product__quantity {
    flex: 1;
    order: 2;
}

.foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .foodz-child-cart__cart-link {
    display: flex;
    order: 1;
}

.foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .added_to_cart,
.foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .c-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 30px;
    border-radius: 8px;
    background: #ffbf00;
    color: #242a36;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.foodz-child-product-modal .foodz-child-cart__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: flex-end;
}

.foodz-child-product-modal .foodz-child-modifiers__total .foodz-child-product-modal__price {
    font-weight: 700;
    margin-right: 6px;
    width: max-content;
}

.foodz-child-product-modal__actions-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.foodz-child-product-modal .foodz-child-cart__delivery--with-cart-link > :not(.added_to_cart):not(.c-add-to-cart) {
    display: none;
}

.foodz-child-product-modal .foodz-child-cart__delivery .added_to_cart,
.foodz-child-product-modal .foodz-child-cart__delivery .c-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    padding: 0 20px;
    border-radius: 8px;
    background: #f5f5f5;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.foodz-child-product-modal__cart form.cart,
.foodz-child-product-modal__cart form.variations_form,
.foodz-child-product-modal__cart form.js-variations-form,
.foodz-child-product-modal__cart .single_variation_wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.foodz-child-product-modal__cart .variations,
.foodz-child-product-modal__cart .c-variation {
    width: 100%;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.foodz-child-product-modal__cart .c-variation__val label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.foodz-child-product-modal__cart .c-variation__val .c-variation__title,
.foodz-child-product-modal__cart .c-variation__val .c-variation__title--single {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: #f5f5f5;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.foodz-child-product-modal__cart .c-variation__val input:checked + .c-variation__title,
.foodz-child-product-modal__cart .c-variation__val input:checked ~ .c-variation__title {
    color: #3a3d49;
}

.foodz-child-product-modal__cart .c-variation__val input:checked + span,
.foodz-child-product-modal__cart .c-variation__val input:checked ~ span,
.foodz-child-product-modal__cart .c-variation__val input:checked + .c-variation__title--single,
.foodz-child-product-modal__cart .c-variation__val input:checked ~ .c-variation__title--single {
    font-weight: 700;
}

.foodz-child-product-modal__cart .c-variation__val input:checked + .c-variation__title,
.foodz-child-product-modal__cart .c-variation__val input:checked ~ .c-variation__title,
.foodz-child-product-modal__cart .c-variation__val input:checked + span,
.foodz-child-product-modal__cart .c-variation__val input:checked ~ span {
    color: #111;
}

.foodz-child-product-modal__cart .c-variation__val input:checked ~ span,
.foodz-child-product-modal__cart .c-variation__val input:checked + span {
    background: #ffd141;
    border-color: #ffd141;
}

.foodz-child-product-modal__cart .iiko-total-line {
    font-weight: 700;
}

.foodz-child-product-modal__delivery,
.foodz-child-product-modal__delivery .foodz-child-delivery__panel {
    display: flex;
    align-items: center;
    gap: 10px;
}

.foodz-child-product-modal__delivery a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f5f5f5;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.foodz-child-product-modal__delivery a:hover,
.foodz-child-product-modal__delivery a:focus {
    background: #e8e8e8;
    transform: translateY(-1px);
}

.foodz-child-product-modal__delivery-label {
    font-weight: 700;
}

.foodz-child-product-modal__footer {
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
    background: #fafafa;
    border-radius: 12px;
    padding: 12px 16px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.foodz-child-product-modal__footer-main {
    display: flex;
    align-items: center;
    /*gap: 16px;*/
    flex-wrap: nowrap;
    justify-content: flex-end;
    width: 100%;
}

.foodz-child-product-modal__footer-main .foodz-child-modifiers__total {
    margin-right: 6px;
}

.foodz-child-product-modal__footer-qty .quantity .qty {
    min-height: 35px;
    min-width: 45px;
}

.foodz-child-product-modal__add-to-cart,
.foodz-child-product-modal__checkout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.foodz-child-product-modal__add-to-cart {
    background-color: #ffd141;
    color: #3a3d49;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    text-transform: lowercase;
}

.foodz-child-product-modal__checkout {
    background: #fff;
    border: 1px solid #ffd141;
    color: #3a3d49;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
    white-space: nowrap;
    width: 100%;
}

/*.foodz-child-product-modal__footer-extra {*/
/*    height: 80px;*/
/*    margin-top: 8px;*/
/*}*/

@media (max-width: 900px) {
    /* Удаляем переопределение top/size, так как позиция теперь fixed */
    .foodz-child-product-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }

    .foodz-child-product-modal__body {
        max-height: unset;
    }
}

.foodz-child-product-modal__body {
    padding-bottom: 65px;
}
.foodz-child-product-modal__body .c-product-grid__thumb-button-list--layout-product-3{
    top: 190px;
}

@media (max-width: 767px) {
    .foodz-child-product-modal__visual-wrapper{
        position: relative;
        height: 290px;
    }
    .foodz-child-product-modal__body .c-product-grid__thumb-button-list--layout-product-3{
        top: 85%;
        z-index: 3;
    }
    .c-product__gallery.images.js-single-product-carousel{
        position: absolute;
        top: 0;
    }
    .ilcaffe-nutrition-list{
        flex-direction: column;
    }
}
@media (max-width: 766px) {
    display: flex;
    flex-direction: column;
}


.foodz-child-product-modal__summary .single_add_to_cart_button.button.alt{
    background-color: #FFD141;
    color: #3A3D49;
    font-size: 16px;
    font-weight: 700;
    padding-left: 40px;
    padding-right: 40px;
    min-height: 52px;
    border: none;
    border-radius: 4px;
}
.foodz-child-product-modal__body .iiko-checkbox{
    display: none;
}
.iiko-children-fields-wrapper.sosovi.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers,
.iiko-children-fields-wrapper.dodatni-sastojak.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers{
    display: grid;
    grid-template-columns: repeat(3, minmax(110px, 1fr));
    height: 100%;
    gap: 5px;
}
@media (max-width: 480px) {
    .iiko-children-fields-wrapper.dodatni-sastojak.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers{
        grid-template-columns: repeat(3, minmax(100px, 1fr));
        height: 100%;
        overflow-y: visible;
        position: relative;
        /*top: -18px;*/
    }
    .foodz-child-product-modal__body {
        padding-bottom: 70px;
    }
    .c-variation__wrap.variations{
        padding-top: 5px;
    }
}
.dodatni-sastojak .iiko-checkbox{
    display: none;
}
.c-product__gallery-item {
    height: 190px;
}
@media (max-width: 480px) {
    .c-product__gallery-item{
        height: 230px;
    }
    .foodz-child-product-modal__product--variable .foodz-child-product-modal__image img{
        max-width: 230px;
        max-height: 230px;
        object-fit: cover;
        object-position: center;
    }

}
.c-variation__wrap.variations{
    display: flex;
    justify-content: center;
}
.c-variation.js-variation{
    gap: 20px;
    padding: 0;
}
.foodz-child-product-modal__required-modifiers .iiko-title{
    display: flex;
    justify-content: center;
}
.c-variation__wrap.variations .c-variation__val{
    width: 100px;
}
.c-variation__title.c-variation__title--single{
    text-align: center;
}
.foodz-child-product-modal__required-modifiers .iiko-row.iiko-radio{
    padding-top: 20px;
}
@media (max-width: 480px) {
    .foodz-child-product-modal__title.foodz-child-product-modal__title--mobile{
        font-size: 35px;
    }
    .foodz-child-product-modal__footer-main{
        flex-direction: column;
    }
    .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .added_to_cart, .foodz-child-product-modal .foodz-child-cart__quantity--with-cart-link .c-add-to-cart{
        height: 40px;
    }
    .c-quantity--big{
        height: 40px;
        min-width: 40px;
    }
    .foodz-child-product-modal .foodz-child-cart__actions > *{
        height: 40px;
    }
    .c-quantity--big > *{
        min-width: 35px;
    }
}
.input.c-product__quantity-value{
    width: auto;
}
@media (max-width: 375px) {
    .iiko-children-fields-wrapper.sosovi.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers,
    .iiko-children-fields-wrapper.dodatni-sastojak.foodz-child-modifiers-grid.foodz-child-modifiers__grid.foodz-child-modifiers__grid--scroll.foodz-child-modifiers{
        grid-template-columns: repeat(2, minmax(100px, 1fr));
        height: 100%;
        overflow-y: visible;
        position: relative;
        /*top: -18px;*/
    }
    .foodz-child-product-modal__footer-main{
        flex-direction: column;
    }
    .foodz-child-product-modal .foodz-child-cart__grid.foodz-child-cart__grid--show-quantity .foodz-child-cart__quantity,
    .foodz-child-cart__cart-link{
        left: 0;
    }
    .foodz-child-cart__quantity{
        padding-right: 0;
    }
    .foodz-child-product-modal__footer-main{
        /*gap: 10px;*/
    }
    .c-quantity--big{
        height: 35px;
    }
    .c-quantity--big > *{
        min-width: 35px;
    }
    .woocommerce-cart .c-cart__shop-tr{
        padding: 8px 5px;
        gap: 4px;
    }
}

/* Прокрутка модалки на очень узких экранах */
@media (max-width: 375px) {
    .foodz-child-product-modal__product{
        gap: 5px;
    }
    .foodz-child-product-modal {
        align-items: flex-end;
        overflow-y: auto;
        padding: 0;
        overscroll-behavior: contain;
    }
    .foodz-child-product-modal__dialog {
        /*height: auto;*/
        max-height: 98vh;
        width: 100vw;
    }
    .foodz-child-product-modal__body {
        overflow-y: auto;
        /*max-height: calc(120vh - 130px); !* учитываем хедер/футер *!*/
    }
    .iiko-nutritional > div{
        padding-right: 0;
        padding-left: 0;
        font-size: 10px;
    }
}
