/* Add-ons of dishes (2026-12-02): block «Дополнить» on the dish page, in the catalog choice
   window and under a dish in the cart. Chips follow .product-options__choice (style.css). */

/* Each add-on is a full-width row: empty circle — name — price; chosen: yellow circle with
   a tick and a yellow frame (like a checkbox, so it reads as "can be added"). */
.product-options--addon .product-options__list{
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
}

.product-options--addon .product-options__choice--addon,
.product-options--addon .product-options__input:checked + .product-options__choice--addon{
    display: flex;
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    gap: 12px;
    padding: 10px 16px;
    border: 1px solid var(--line, #e2e2e2);
    border-radius: 12px;
    background: #fff;
    color: var(--ink, #202223);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    box-shadow: none;
}

.product-options--addon .product-options__choice--addon:hover{
    border-color: var(--brand, #eaab21);
}

.product-options__addon-check{
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #c9c9c9;
    border-radius: 50%;
    background: #fff;
    transition: border-color .18s ease, background .18s ease;
}

.product-options__addon-name{
    flex: 1 1 auto;
    min-width: 0;
}

.product-options__addon-price{
    flex: 0 0 auto;
    color: var(--muted, #6b6b6b);
    font-weight: 700;
    white-space: nowrap;
}

.product-options--addon .product-options__input:checked + .product-options__choice--addon{
    border-color: var(--brand, #eaab21);
    background: #fff8e6;
}

.product-options--addon .product-options__input:checked + .product-options__choice--addon .product-options__addon-check{
    border-color: var(--brand, #eaab21);
    background: var(--brand, #eaab21);
}

.product-options--addon .product-options__input:checked + .product-options__choice--addon .product-options__addon-check::after{
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--ink, #202223);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.product-options--addon .product-options__input:checked + .product-options__choice--addon .product-options__addon-price{
    color: var(--ink, #202223);
}

.product-options--addon .product-options__input:focus-visible + .product-options__choice--addon{
    outline: 3px solid rgba(234, 171, 33, .35);
    outline-offset: 2px;
}

.product-info .product-options--addon .product-options__list{
    max-width: 560px;
}

/* Dish page: the add-ons go under the other choice, the button under both. */
.product-info .product-options + .product-options--addon{
    grid-row: 3;
    margin-top: 14px;
}

.product-info .product-options + .product-options--addon ~ button[type="submit"]{
    grid-row: 4;
}

.catalog-modifier-modal .product-options--addon{
    margin-top: 16px;
}

.product-detail-price__addons{
    display: inline-block;
    margin-left: 6px;
    color: var(--muted, #6b6b6b);
    font-size: 14px;
    font-weight: 600;
}

/* Cart */
.cart-addons{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.cart-addons__title{
    color: var(--muted, #6b6b6b);
    font-size: 13px;
    font-weight: 600;
}

.cart-addon{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 1px dashed var(--line, #d9d9d9);
    border-radius: 6px;
    background: #fff;
    color: var(--ink, #202223);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color .18s ease, background .18s ease;
}

.cart-addon:hover{
    border-color: var(--brand, #eaab21);
}

.cart-addon.is-on{
    border-style: solid;
    border-color: var(--brand, #eaab21);
    background: var(--brand, #eaab21);
}

.cart-addon__price{
    color: var(--muted, #6b6b6b);
    white-space: nowrap;
}

.cart-addon.is-on .cart-addon__price{
    color: var(--ink, #202223);
}

.cart-addon__remove{
    margin-left: 2px;
    font-size: 16px;
    line-height: 1;
}

.cart-addons.is-busy{
    opacity: .55;
    pointer-events: none;
}

.item__option--addon{
    display: block;
}
