.ilcaffe-combo-modal {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.ilcaffe-combo-modal__columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.foodz-child-product-modal__form {
    width: 100%;
}

.ilcaffe-combo-modal__left {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid #f0f0f0;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}

.ilcaffe-combo-modal__hero {
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
}

.ilcaffe-combo-modal__hero img {
    width: 100%;
    height: auto;
    display: block;
}

.ilcaffe-combo-modal__selectors {
    margin-top: 16px;
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    scroll-behavior: smooth;
}

.ilcaffe-combo-modal__panel {
    background: #ffffff;
    /*border: 1px solid #eee;*/
    border-radius: 12px;
    padding: 7px;
    margin-bottom: 16px;
}

.ilcaffe-combo-modal__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.ilcaffe-combo-modal__panel-close {
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    border: none;
    background: #f2f2f2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    z-index: 19;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    color: black;
}

.ilcaffe-combo-modal__options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 6px;
}

.ilcaffe-combo-modal__options-grid--compact {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.ilcaffe-combo-modal__option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    position: relative;
    border: 1px solid #e8e8e8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(17,24,39,.06);
    transition: box-shadow .2s, border-color .2s, transform .15s;
    min-height: 170px;
}
.ilcaffe-combo-modal-block-button{
    display: flex;
    flex-direction: column;
}
.ilcaffe-combo-modal-button{
    display: flex;
}
.ilcaffe-combo-modal__option:hover,
.ilcaffe-combo-modal__option:focus {
    border-color: #d93;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.ilcaffe-combo-modal__option-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilcaffe-combo-modal__option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ilcaffe-combo-modal__option-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f1f1f;
    text-align: left;
}

.ilcaffe-combo-modal__option-price {
    color: #d93;
    font-weight: 600;
    font-size: 13px;
}

.ilcaffe-combo-modal__selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.ilcaffe-combo-modal__pill {
    border: 1px dashed #dcdcdc;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    max-width: 900px;
}

.ilcaffe-combo-modal__pill-thumb {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    background: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ilcaffe-combo-modal__pill-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ilcaffe-combo-modal__pill-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ilcaffe-combo-modal__pill-label {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "Roboto Condensed",sans-serif !important;
    font-weight: 600;
    font-size: 17px;
    color: #3a3d49;
}

.ilcaffe-combo-modal__pill-value {
    font-weight: 700;
    color: #222;
}

.ilcaffe-combo-modal__pill-price {
    color: #d93;
    font-weight: 600;
}

.ilcaffe-combo-modal__pill-action {
    background-color: #ffd141;
    color: #3a3d49;
    font-size: 16px;
    font-weight: 700;
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    text-transform: lowercase;
    text-align: center;
}

.ilcaffe-combo-modal__status {
    margin-top: 12px;
    font-size: 14px;
    color: #6b6b6b;
}

.ilcaffe-combo-modal__hidden-inputs {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ilcaffe-combo-modal__pill:focus-visible {
    outline: 2px solid #d93;
    outline-offset: 2px;
}

.ilcaffe-combo-modal .foodz-child-product-modal__footer {
    position: absolute;
    bottom: 0;
    background: #fff;
    padding-top: 12px;
    z-index: 5;
}

.ilcaffe-combo-modal .foodz-child-product-modal__footer-main {
    /*box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);*/
    /*border-radius: 12px 12px 0 0;*/
    background: #fff;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
}

.ilcaffe-combo-modal__add[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 900px) {
    .ilcaffe-combo-modal__pill{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
    .ilcaffe-combo-modal__columns {
        grid-template-columns: 1fr;
    }

    .ilcaffe-combo-modal {
        gap: 16px;
    }

    .ilcaffe-combo-modal__left {
        padding: 12px;
    }

    .ilcaffe-combo-modal__selectors {
        margin-top: 0;
        padding-right: 0;
    }

    .ilcaffe-combo-modal__selection-grid {
        grid-template-columns: 1fr;
    }

    .ilcaffe-combo-modal--panel-open .ilcaffe-combo-modal__selectors {
        position: fixed;
        inset: 0;
        background: #fff;
        padding: 12px 12px 96px;
        z-index: 20;
        overflow-y: auto;
        border-radius: 0;
    }

    .ilcaffe-combo-modal--panel-open .ilcaffe-combo-modal__panel {
        margin-bottom: 0;
        min-height: calc(100vh - 120px);
    }

    .ilcaffe-combo-modal__panel-header {
        position: relative;
        top: 0;
        padding-top: 8px;
        padding-bottom: 8px;
        z-index: 2;
        border-radius: 12px;
    }
    .ilcaffe-combo-modal__panel-header >h3 {
        font-family: "Roboto Condensed",sans-serif !important;
        font-weight: 600;
        font-size: 17px;
        color: #3a3d49;
        text-transform: uppercase;
    }

    .ilcaffe-combo-modal__options-grid {
        max-height: none;
    }

    .ilcaffe-combo-modal .foodz-child-product-modal__footer {
        padding: 0;
    }

    .ilcaffe-combo-modal .foodz-child-product-modal__footer-main {
        padding: 14px 16px;
    }
}
@media (max-width: 767px) {
    .ilcaffe-combo-modal .foodz-child-product-modal__footer-main {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }
}
.foodz-child-product-modal__form.cart.ilcaffe-combo-modal__form.variations_form .foodz-child-cart__grid{
    grid-template-columns: 50% 50%;
}
/*.foodz-child-product-modal__product.ilcaffe-combo-modal*/
/*.foodz-child-product-modal__footer-qty.foodz-child-cart__quantity.foodz-child-cart__quantity--with-cart-link {*/
/*    display: grid;*/
/*    grid-template-columns: 50% 50%;*/
/*}*/
.foodz-child-product-modal__product.ilcaffe-combo-modal[data-foodz-modal-layout^="combo-"]
.foodz-child-product-modal__footer
.c-product__quantity.quantity.c-quantity.c-quantity--big {
    grid-column: 2;
}
/* только для комбо-модалок */
.foodz-child-product-modal__product.ilcaffe-combo-modal[data-foodz-modal-layout^="combo-"]
.foodz-child-cart__grid.foodz-child-cart__grid--show-quantity
.foodz-child-cart__quantity {

    grid-column: auto; /* или initial */
}
