.modal-custom {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    user-select: none;
    z-index: 9999;
    margin-top: 0 !important;
}

.modal-custom.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.header__search-input {
    right: 52px !important;
}

.header__search-input.active {
    max-width: calc(100% - 370px);
}

/* Sticky bar — страница товара */
.product__sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 98;
    background-color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 12px 16px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.product__sticky-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.product__sticky-bar-content {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
}

.product__sticky-bar-img {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg, #f6f6f6);
}

.product__sticky-bar-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__sticky-bar-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.product__sticky-bar-title {
    font-size: 15px;
    line-height: 1.35;
    color: var(--color-dark, #1a1a1a);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product__sticky-bar-price {
    font-weight: 600;
    font-size: 20px;
    line-height: 1.35;
    color: var(--color-primary, #664dfe);
    white-space: nowrap;
}

.product__sticky-bar-price span {
    font-size: 16px;
}

.product__sticky-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.product__sticky-bar-actions .product-input {
    flex-shrink: 0;
}

.product__sticky-bar-btn {
    flex-shrink: 0;
    min-height: 50px;
    height: 50px;
    font-size: 14px;
    line-height: 1.25;
    padding: 8px 14px;
}

.product__sticky-bar-btn--request {
    min-width: auto;
    padding: 8px 14px;
    height: auto;
    min-height: 50px;
    height: 50px;
    font-size: 14px;
    line-height: 1.25;
    white-space: normal;
    text-align: center;
}

.footer__agreements {
    justify-content: space-between;
    gap: 10px;
}

.footer__agreement {
    margin-right: 0 !important;
}

@media (max-width: 1023px) {
    .product__sticky-bar-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .product__sticky-bar-img {
        width: 56px;
        height: 56px;
    }

    .product__sticky-bar-info {
        flex: 1 1 calc(100% - 72px);
    }

    .product__sticky-bar-title {
        font-size: 14px;
        -webkit-line-clamp: 1;
    }

    .product__sticky-bar-price {
        font-size: 18px;
    }

    .product__sticky-bar-actions {
        flex: 1 1 100%;
        justify-content: flex-end;
    }

    .product__sticky-bar-btn {
        min-width: 120px;
    }

    .product__sticky-bar-btn--request {
        min-width: auto;
        max-width: 180px;
        font-size: 12px;
        padding: 7px 12px;
    }
}

@media (max-width: 575px) {
    .product__sticky-bar {
        padding: 10px 12px;
    }

    .product__sticky-bar-actions {
        gap: 8px;
    }

    .product__sticky-bar-btn {
        min-width: 110px;
        max-width: 100%;
        width: 100%;
        padding: 8px 14px;
        font-size: 14px;
    }

    .product__sticky-bar-btn--request {
        min-width: auto;
        max-width: 100%;
        width: 100%;
        padding: 6px 10px;
        font-size: 11px;
        min-height: 36px;
    }
}

/* Plain checkbox: label > input without .custom-checkbox wrapper */
label:has(> input[type="checkbox"]):not(.custom-checkbox) {
    position: relative;
    display: block;
    padding: 3px 0 3px 52px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 300;
    color: var(--color-black);
    -webkit-user-select: none;
    user-select: none;
}

label:has(> input[type="checkbox"]):not(.custom-checkbox)>input[type="checkbox"] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

label:has(> input[type="checkbox"]):not(.custom-checkbox)::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 0;
    width: 26px;
    height: 26px;
    background-color: rgba(238, 238, 238, 0.5);
    border: 1px solid rgba(0, 0, 0, 0.2);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70% 70%;
    -webkit-transition: border-color 0.2s ease, background-color 0.2s ease;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

label:has(> input[type="checkbox"]:checked):not(.custom-checkbox)::before {
    border-color: var(--color-dark-gray);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23000' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}

label:has(> input[type="checkbox"]):not(.custom-checkbox) a {
    color: currentColor;
}

label:has(> input[type="checkbox"]):not(.custom-checkbox) a:focus,
label:has(> input[type="checkbox"]):not(.custom-checkbox) a:hover {
    outline: 0;
    text-decoration: underline;
}

/* All custom-checkbox — larger size */
.custom-checkbox>span {
    padding-left: 52px;
    font-size: 1rem;
    line-height: 1.45;
}

.custom-checkbox>span::before {
    width: 26px;
    height: 26px;
    top: 0;
}



.pvz-search {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    color: #1f2937;
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pvz-search::placeholder {
    color: #9ca3af;
}

.pvz-search:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pvz-row._active {
    background: #f3f4f6;
}

.ordering-radio__map-link {
    display: inline;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-primary, #664dfe);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    vertical-align: baseline;

}

.ordering-radio__map-link:hover,
.ordering-radio__map-link:focus {
    color: var(--color-primary, #664dfe);
    text-decoration: underline;
    outline: none;
}

.form-group.has-error {
    input {
        border-color: #dc3545;
    }


}

.help-block {
    color: #dc3545;
    margin-top: 5px;
    display: inline-block;
}

.request-form .control-label {
    display: inline-block;
    margin-bottom: 5px;
}

.add-cart.add-cart--in-cart,
.btn.add-cart.add-cart--in-cart,
.product-card__btn.add-cart.add-cart--in-cart {
    background-color: #6dbb5b;
    border-color: #6dbb5b;
    color: #fff;
}

.add-cart.add-cart--in-cart:hover,
.add-cart.add-cart--in-cart:focus,
.btn.add-cart.add-cart--in-cart:hover,
.btn.add-cart.add-cart--in-cart:focus,
.product-card__btn.add-cart.add-cart--in-cart:hover,
.product-card__btn.add-cart.add-cart--in-cart:focus {
    background-color: #5aa84a;
    border-color: #5aa84a;
    color: #fff;
    opacity: 1;
}

.product-card__code {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.19;
    margin-bottom: 1rem;
}

.product-card__title {
    margin-top: 20px;
    margin-bottom: 20px;
}

.product-card__price {
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.19;
    white-space: nowrap;

}

.product-card__availability {
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.19;
}

.ordering-goods__price {
    white-space: nowrap;
}