:root.with-fancybox:has(.search_show-suggestions) {
    scrollbar-gutter: auto;
}
button *{
    pointer-events: none;
    cursor: pointer;
}
.typography .text-center, .text-center{
    text-align: center;
}
.typography .text-right, .text-right{
    text-align: right;
}
.d-none{
    display: none;
}
.cursor-p{
    cursor: pointer;
}
.addProductToCart *,.quantity__btn *, .pointer-none *{
    pointer-events: none;
}
.adminProductPanelMin{
    position: absolute;
    left: 10px;
    top: 10px;
}
.adminProductPanelMin.center{
    top: 50%;
    left: auto;
    right: 10px;
    position: fixed;
    z-index: 500;
}
/*@media (max-width: 600px) {
    .adminProductPanelMin{
        display: none;
    }
}*/
.btn_appearance_red {
    --btn-hover-bg: #ff4911;
    --btn-active-bg: #c43000;
    background: #0000000d;
    color: #000;
    border-color: transparent;
}
.card:hover .btn_appearance_red {
    background: #FF7043;
    color: #fff;
}
.btn_mode_light.btn_appearance_secondary.getPhotosBtn{
    --btn-hover-bg: rgba(255, 255, 255, .8);
    --btn-active-bg: rgba(0, 0, 0, .3019607843);
    background: #eaeaea;
}
@media (hover: hover) {
    .btn:not(:active,:disabled,.btn_disabled):hover {
        background: var(--btn-hover-bg) !important;
    }
}
.part-viewer__content {
    display: inline-block;
    position: relative;
}
.animatedUzelRow {
    position: relative;
    /*animation: pulseBG linear 5s 1;*/
    animation: parts-set-blink .6s .5s 3 alternate
}
.animatedUzelRow>div{
    z-index: 4;
    position: relative;
}
.animatedUzelRow::after,
.animatedUzelRow::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #00ab58;
    opacity: 0;
    animation: pulse linear 1s 1;
    z-index: 1;
}

.animatedUzelRow::after {
    animation-delay: 1.25s;
}
@keyframes pulseBG {
    0% {
        background: antiquewhite;
    }
    98% {
        background: antiquewhite;
    }
    100% {
        background: #fff;
    }
}

.footer__sectionWhatsapp,.footer__sectionTelegram{
    display: none;
}

@media(max-width: 991px){
    .footer__sectionWhatsapp,.footer__sectionTelegram{
        display: block;
    }
}

.parts__content{
    height: auto;
}
.product__additional-codes {
    font-size: 14px;
    font-weight: 500;
}
@media (min-width: 992px) {
    .parts__preview-wrapper {
        position: sticky;
        top: 80px;
    }
    .parts__preview {
        position: relative;
        top: 0;
        left: 0;
        width: unset;
        height: unset;
        z-index: 1;
        object-fit: unset;
        border-radius: inherit;
    }
    .parts__placeholder {
        text-align: center;
        color: #1b1f3b4d;
        padding: 20px;
    }
}

#toast-container>div{
    box-shadow: none;
    padding: 20px 15px 20px 50px;
    font-weight: 400;
    border-radius: 12px;
    font-size: 14px;
}
.toast {
    background-color: #030303
}
.toast-success {
    background-color: #51a351
}
.toast-error {
    background-color: #ec0f41;
}
.toast-info {
    background-color: #2f96b4
}
.toast-warning {
    background-color: #f89406
}
.toast.toast-error .toast-close-button {
    mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
   /* background-color: var(--bs-danger-inverse);*/
    -webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var%28--bs-danger-inverse%29'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='var%28--bs-danger-inverse%29'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
}
.mainLoadMoreProductsPaginate{
    display: none;
}
.articlesRow{
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}
.articleItem{
    width: calc((100% / 4) - 30px + (30px / 4));
}
.articleItem .img{
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 200px;
}
@media (max-width: 767px) {
    .articleItem{
        width: calc((100% / 3) - 30px + (30px / 3));
    }
    .articleItem .img{
        height: 170px;
    }
}
@media (max-width: 565px) {
    .articlesRow{
        gap: 20px;
    }
    .articleItem{
        width: calc((100% / 2) - 20px + (20px / 2));
    }
    .articleItem .img{
        height: 130px;
    }
}
.anchor *{
    pointer-events: none;
}


@media (min-width: 768px) {
    .md\:grid_cols_3 {
        grid-template-columns:repeat(3,minmax(0,1fr))
    }
    .md\:grid_cols_4 {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }
}
.productInfoDelivery .typography,.typography b{
    font-size: 13px;
    //color: #1b1f3b80;
}

.productInfoDelivery .zg{
    //color: #00aa58;
}
.anotherCity{
    font-size: 12px;
}
.anotherCity a{
    display: inline-block;
}
.btnModalOpen{
    cursor: pointer;
}
.dropdown-item{
    text-align: left;
}


@media (max-width: 420px) {
    .manufacturer-product__cart-btn.btn_icons-hidden .btn__icon{
        display: inline-flex;
    }
}

/* ==========================================================================
   Отзывы Avito (встраиваемый блок)
   ========================================================================== */
.avito-stars-defs { position: absolute; width: 0; height: 0; }

/* Блок вставляется в .product-reviews__ya-widget (у него своя рамка),
   поэтому задаём внутренний отступ и страхуемся от переполнения. */
.avito-reviews-block { /*padding: 16px;*/ max-width: 100%; box-sizing: border-box; }
.avito-reviews-block *, .avito-reviews-block *::before, .avito-reviews-block *::after { box-sizing: border-box; }

/* Сводка: средняя оценка + звёзды + кол-во + бренд-блок Avito */
.avito-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.avito-summary__main {
    display: flex;
    align-items: center;
    gap: 16px;
}
.avito-summary__score {
    font-size: 46px;
    font-weight: 800;
    line-height: 1;
    color: #1a1d23;
}
.avito-summary__side {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.avito-summary__count { font-size: 13px; color: #8a8f99; }

/* Бренд-блок «Отзывы КАМ.РФ на Avito» + ссылка «Все отзывы» */
.avito-summary__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.avito-summary__brand-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1d23;
}
.avito-summary__logo { display: block; border-radius: 4px; }
.avito-summary__all {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    color: #00aa58;
    text-decoration: none;
    transition: color .15s ease;
}
.avito-summary__all:hover { color: #008f4a; }
.avito-summary__all svg { transition: transform .15s ease; }
.avito-summary__all:hover svg { transform: translateX(2px); }
.product-reviews__ya-widget{
    padding: 0;
    border: none;
}
/* --- Адаптив --- */

@media (max-width: 767px) {
    .avito-summary { gap: 14px 20px; }
    .avito-summary__score { font-size: 36px; }
    .avito-summary__brand-head { font-size: 13px; }

    .avito-review { padding: 16px; border-radius: 14px; gap: 10px; }
    .avito-review__topline { gap: 4px 10px; }
    /* На узком экране название товара переносим, а не обрезаем многоточием */
    .avito-review__item { white-space: normal; overflow: visible; flex-basis: 100%; }

}

@media (max-width: 560px) {

    .avito-summary { justify-content: flex-start; }
    .avito-summary__brand { align-items: flex-start; text-align: left; }

    /*.avito-reviews-block { padding: 12px; }*/
    .avito-review { padding: 14px; }
    .avito-review__avatar { width: 30px; height: 30px; font-size: 13px; }
    .avito-page__more { margin-top: 20px; }
    .avito-page__more .btn { width: 100%; }
}

/* Звёзды с дробным заполнением (наложение золотого ряда поверх серого) */
.stars_lg { position: relative; display: inline-flex; line-height: 0; vertical-align: middle; }
.stars__row { display: inline-flex; gap: 2px; line-height: 0; }
.stars__row_fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    pointer-events: none;
}
.stars__row .star { display: block; }

/* Список отзывов — по одному на строку */
.avito-reviews { display: flex; flex-direction: column; gap: 14px; }
.avito-reviews__empty { color: #8a8f99; font-size: 14px; }

.avito-review {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px;
    border: 1px solid #ececf0;
    border-radius: 18px;
    background: #fff;
    transition: box-shadow .2s ease, border-color .2s ease;
}
.avito-review:hover { border-color: #dfe2e7; box-shadow: 0 6px 22px rgba(20,30,50,.07); }

.avito-review__head { display: flex; align-items: center; gap: 12px; }
.avito-review__avatar {
    flex: 0 0 auto;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
}
.avito-review__meta { min-width: 0; flex: 1 1 auto; }
.avito-review__topline { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; min-width: 0; }
.avito-review__author { font-weight: 700; font-size: 13px; color: #1a1d23; }
.avito-review__sub { font-size: 12px; color: #9aa0a8; margin-top: 2px; }

/* min-width:0 обязателен: без него nowrap-название товара не сжимается
   и распирает карточку (горизонтальный скролл на мобильных). */
.avito-review__rating { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; min-width: 0; }
.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { display: block; }
.star path { fill: #e2e4e9; }
.star.is-active path { fill: url(#avitoStarGrad); }
.avito-review__deal { color: #00aa58; font-weight: 600; white-space: nowrap; }
.avito-review__item {
    color: #9aa0a8;
    min-width: 0;
    flex: 0 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Длинные артикулы/ссылки в тексте не должны рвать вёрстку */
.avito-review__text { margin: 0; font-size: 13px; line-height: 1.5; color: #2b2f36; overflow-wrap: anywhere; }

/* Служебные плашки и кнопка */
.avito-page__note {
    display: inline-block;
    margin: 0 0 20px;
    padding: 8px 14px;
    border-radius: 10px;
    background: #fff6e5;
    color: #8a6d1f;
    font-size: 13px;
}
.avito-page__error {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #fdecec;
    color: #b3261e;
    font-size: 14px;
}
.avito-page__more { display: flex; justify-content: center; margin-top: 28px; }
.avito-page__more [hidden] { display: none; }
.avito-review.is-new { animation: avitoFade .35s ease; }
@keyframes avitoFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}
