/* В вашем custom_constructor.css */
.mfp-bg {
    opacity: 0.8 !important;
    /* Пример затемнения фона */
}



.window-title span {
    font-size: 24px;
    color: #222;
    margin-bottom: 10px;
}

.window-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    /* Стили для крестика */
}

.window-content p {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 0px;

}

.weight .radio-box {
    display: inline-block;
    margin-right: 15px;
}

.items.foodlist {
    display: flex;
    margin-top: 15px;
    flex-direction: column;
    gap: 15px;
}

.additive-item-count-val {
    width: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.items.foodlist .item {
    border-radius: 8px;
    text-align: end;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.items.foodlist .item .sum {
    display: flex;
    gap: 10px;
    flex-direction: column;

}

.items.foodlist .item img {
    max-width: 40px;
    height: auto;
    margin-bottom: 5px;
}

.items.foodlist .item .title {
    color: #636363;
    font-size: 16px;
    margin-bottom: 5px;
}

.items.foodlist .item .sum .price {
    font-weight: bold;
    color: #f00;
    /* Цвет для цены */
}

.items.foodlist .item .amt {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.items.foodlist .item .amt span {

    height: 20px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.items.foodlist .item .amt span.minus::before {
    content: '-';
    border: 1px solid #000;
    padding: 0px 5px;
    border-radius: 5px;
    color: #f00;
}

.items.foodlist .item .amt span.plus::before {
    content: '+';
    border: 1px solid #000;
    padding: 0px 5px;
    border-radius: 5px;
    color: green;
}

/* Стили для "Убрать ингредиенты" */
.items.delete .item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #444;
}

.items.delete .item.is-deleted {
    text-decoration: line-through;
    opacity: 0.6;
}

.items.delete .item .icon-delete {
    /* Стили для иконки удаления */
}

.bottom {
    margin-top: 30px;
    text-align: center;
}

/* Стиль для элементов, которые нельзя выбрать (когда лимит достигнут) */
.js-additive-item.limit-reached {
    opacity: 0.5;
    background-color: rgba(255, 255, 255, 0.5);
    /* Полупрозрачный фон */
    transition: all 0.3s ease;
}

/* Блокировка кнопки плюс, когда лимит достигнут */
.js-additive-item.limit-reached .js-plus,
.btn-plus-disabled {
    cursor: not-allowed;
    pointer-events: none;
    /* Кнопка не реагирует на клик */
    filter: grayscale(1);
}

.window-content label {
    font-size: 12px;

}

.bottom .btn {
    background-color: #f00;
    /* Цвет кнопки */
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
}

.modal-main-custom {
    overflow: auto;
    height: 35vh;
    padding-right: 10px;
}

/* Контейнер модального окна */
.custom-constructor {
    background: #fff;
    /* Или #1a1a1a, если темная тема */
    color: #333;
    max-width: 400px;
    margin: auto auto;
    padding: 20px;
    position: relative;

    border-radius: 12px;
    display: block !important;
    /* Чтобы перебить скрытие */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    min-height: 200px;
    overflow: hidden;

    /* Чтобы окно не схлопывалось пока грузится */
}

/* Очистка плавающих элементов (чтобы высота считалась корректно) */
.window-content::after {
    content: "";
    display: table;
    clear: both;
}

/* Настройка Magnific Popup для корректного отображения */
.mfp-inline-holder .mfp-content {
    vertical-align: middle;
    width: 100%;
}

.mfp-fade.mfp-bg {
    opacity: 0.8;
    background: #0b0b0b;
}

/* Стили заголовка */
.window-title h2 {
    margin-top: 0;
    font-size: 24px;
    padding-right: 30px;
}

.window-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 30px;
    /* Задаем размеры области клика */
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-close::before {
    content: "\00d7";
    /* Символ умножения (крестик) */
    color: black;
    /* Черный цвет */
    font-size: 30px;
    line-height: 1;
}

.window-close:hover {
    color: #000;
}




.items-remove-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.js-current-weight-val,
.info {
    font-weight: 600;
    color: #333;
    display: none;
}

.js-sku-select {
    margin-bottom: 10px;
}

.constructor-product-image img {
    display: block;
    max-height: 150px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fff;
    margin-top: 20px;
}

.weight .radio-box {
    margin: 0;
}

.weight .radio-box input {
    display: none;
}

.weight .radio-box label {
    display: block;
    padding: 0px 12px;
    background: #f4f4f4;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid transparent;
}

.weight .radio-box input:checked+label {
    background: #e4012d;
    color: #fff;
}

/* На мобильных устройствах уменьшаем высоту картинки, чтобы влезли ингредиенты */
@media (max-width: 600px) {
    .constructor-product-image img {
        max-height: 150px !important;
    }

    .custom-constructor .window-content {
        padding-top: 10px;
    }
}

.remove-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    border: 1px solid transparent;
}

.remove-item.is-deleted {
    background: #fff0f0;
    border-color: #ffcccc;
    text-decoration: line-through;
    opacity: 0.7;
}

.remove-status-icon:before {
    content: '✕';
    /* Иконка удаления */
    color: #ccc;
    font-weight: bold;
}

.remove-item.is-deleted .remove-status-icon:before {
    color: #e4012d;
}

.remove-item-name {
    font-size: 14px;
    color: #000;
}