﻿.product__info-footer {
    padding-top: 0;
    margin-top: 0;
}
.product__price {
    margin-top: 0;
}
.product__info-footer {
    border-top: 0;
    border-bottom: 1px solid rgba(189, 189, 189, .5);
    margin-bottom: 25px;
}
.product__info-footer {
    display: flex;
    flex-direction: column;
}
.product__price-line {
    display: flex;
    justify-content: space-between;
    width: 100%;
}
.product__info {
    margin-top: 0;
}
.product__info-top {
    display: flex;
    justify-content: space-between;
}
.product__info-sku {
    font-weight: unset;
    color: rgb(0, 0, 0);
}
.product__info-sku span{
    font-weight: 800;
}
.product__info-top {
    margin-bottom: 20px;
}


:root {
    --accent: #01253d;
    --border: #d5d9e0;
    --border-hover: #b3bac6;
    --bg: #ffffff;
    --light-text: #787878;
}

/* ===================== CHECKBOX ===================== */

.checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-right: 24px;
}

.checkbox input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox__box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.checkbox__box svg {
    width: 16px;
    height: 16px;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .12s ease, transform .12s ease;
}

.checkbox:hover .checkbox__box {
    border-color: var(--border-hover);
}

.checkbox input:focus-visible ~ .checkbox__box {
    box-shadow: 0 0 0 3px rgba(0, 51, 160, .15);
}

.checkbox input:checked ~ .checkbox__box {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox input:checked ~ .checkbox__box svg {
    opacity: 1;
    transform: scale(1);
}

.checkbox input:disabled ~ .checkbox__box {
    background: #f2f3f5;
    border-color: var(--border);
    cursor: not-allowed;
}

.checkbox input:disabled ~ span {
    color: #b3bac6;
}

.checkbox input:disabled {
    cursor: not-allowed;
}

.checkbox input:disabled ~ .checkbox__box,
.checkbox:has(input:disabled) {
    cursor: not-allowed;
}

/* индeterminate состояние */
.checkbox input:indeterminate ~ .checkbox__box {
    background: var(--accent);
    border-color: var(--accent);
}

.checkbox input:indeterminate ~ .checkbox__box svg {
    opacity: 0;
}

.checkbox input:indeterminate ~ .checkbox__box::after {
    content: '';
    width: 10px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
}

/* ===================== RADIO ===================== */

.radio {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    margin-right: 24px;
}

.radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio__circle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.radio__circle::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .12s ease, transform .12s ease;
}

.radio:hover .radio__circle {
    border-color: var(--border-hover);
}

.radio input:focus-visible ~ .radio__circle {
    box-shadow: 0 0 0 3px rgba(0, 51, 160, .15);
}

.radio input:checked ~ .radio__circle {
    border-color: var(--accent);
}

.radio input:checked ~ .radio__circle::after {
    opacity: 1;
    transform: scale(1);
}

.radio input:disabled ~ .radio__circle {
    background: #f2f3f5;
    cursor: not-allowed;
}

.radio input:disabled ~ span {
    color: #b3bac6;
}

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

.product__item span {
    color: var(--light-text);
    font-size: 14px;
}

.info-hint {
    display: none;
}

.product__item .info {
    margin-bottom: 0;
    width: 20px;
    background: unset;
}

.constructor__items.color a {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    margin-right: 10px;
}
.constructor__items.color a.active {
    border: 1px solid var(--accent);
}
.constructor__items.squad .constructor__item, .constructor__items.big-squad .constructor__item {
    border: 1px solid var(--border);
    margin-right: 10px;
}

.constructor__items.squad .constructor__item {
    width: 50px;
    height: 50px;
}

.constructor__items.squad .constructor__item, .constructor__items.squad img {
    border-radius: 5px;
}

.constructor__items.big-squad .constructor__item, .constructor__items.big-squad .constructor__item img {
    border-radius: 10px;
}

.constructor__items.squad .constructor__item.active, .constructor__items.big-squad .constructor__item.active {
    border: 1px solid var(--accent);
}

.constructor__items.big-squad .constructor__item {
    position: relative;
    width: 80px;
    height: 80px;
}

.constructor__items.big-squad .constructor__item img.info {
    top: 5px;
    left: 5px;
    position: absolute;
}

.info-hint, .constructor__item-hint {
    display: none;
    max-width: 250px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    padding: 10px;
    font-size: 13px;
    width: max-content;
    position: absolute;
    border-radius: 5px;
    z-index: 10;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, .25);
}

@media screen and (max-width: 767px) {
    .product__info-top {
        flex-wrap: wrap;
        flex-direction: column;
        font-size: 14px;
        margin: 0;
    }
    .product__info-top > div {
        margin-bottom: 11px;
    }
    .constructor__items.color {
        flex-wrap: wrap;
    }
    .product__info-footer {
        margin: 15px 10px;
    }
}