img {
    max-width: 100%;
    height: auto;
}

.form .error {
    color: #FF6E60;
    border-color: #FF6E60;
}

.form label.error {
    display: block;
    font-size: 90%;
}

.form .error_text {
    color: #FF6E60;
    font-size: 12px;
    line-height: normal;

    margin-top: 6px;
}

.alert {
    border: none;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    padding: 15px;
    margin-bottom: 20px;
}

.alert h4 {
    margin-top: 0;
    color: inherit;
}

.alert a,
.alert .alert-link {
    color: inherit;
    font-weight: bold;
}

.alert > p,
.alert > ul {
    margin-bottom: 0;
}

.alert > p + p {
    margin-top: 5px;
}

.bxe-aleft-title {
    font-weight: bold;
    padding-bottom: 5px;
}

.alert-success {
    color: #3C763D;
    background-color: #DFF0D8;
    border-color: #D6E9C6;
}

.alert-secondary {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-warning {
    color: #8A6D3B;
    background-color: #FCF8E3;
    border-color: #FAEBCC;
}

.alert-danger {
    color: #A94442;
    background-color: #F2DEDE;
    border-color: #EBCCD1;
}

.alert-info {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
}

.alert-dismissable,
.alert-dismissible {
    padding-right: 35px;
}

.alert-dismissable .close,
.alert-dismissible .close {
    float: right;
    position: relative;
    top: -2px;
    right: -21px;
    color: inherit;
    cursor: pointer;
}

.alert font {
    color: inherit;
}

.alert font.errortext {
    color: inherit !important;
}

.bx-soa-tooltip .tooltip-inner {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 3px;
    margin: 4px 0;
    display: inline-block;
}


.btn.loading {
    position: relative;
}

.btn.loading::after {
    content: '';
    display: block;
    position: absolute;
    width: 18px;
    height: 18px;
    border: 3px solid rgb(255 255 255 / 20%);
    border-top-color: rgb(15 94 255);
    border-radius: 50%;
    animation: btnLoading 1s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -9px;
    margin-left: -9px;
    z-index: 10;
}

.btn.loading.btn-blue {
    background: #5990ff;
    color: rgb(255 255 255 / 50%);
}

@keyframes btnLoading {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.form {
    position: relative;
}

.form.loading:before,
.form form[target^="formTarget"]:before,
form.form[target^="formTarget"]:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fafafa;
    z-index: 5;
    opacity: 0.8;
}

.form.loading:after,
.form form[target^="formTarget"]:after,
form.form[target^="formTarget"]:after {
    content: '';
    display: block;
    position: absolute;
    width: 36px;
    height: 36px;
    border: 6px solid rgb(0 0 0 / 25%);
    border-top-color: #F8DE22;
    border-radius: 50%;
    animation: formLoading 1s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -18px;
    margin-left: -18px;
    z-index: 10;
}


@keyframes formLoading {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

.bx-core-window input,
.bx-core-window textarea,
.bx-core-window button {
    appearance: auto;
}

.popup-window-overlay {
    max-width: 100%;
}

.popup-window,
.popup-window.popup-window-with-titlebar {
    width: 350px;
    max-width: 100%;
    padding: 24px 24px 20px;
    border: 0;
    border-radius: 10px;
    background: #FFF;
    box-shadow: var(--shadow-main, 0px 0px 9.9px 0px rgba(13, 30, 42, 0.1));
    font-family: inherit;
    left: 50%;
    top: 50%;
    
    position: fixed;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: none;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

@media (max-width: 767px) {
    .popup-window,
    .popup-window.popup-window-with-titlebar {
        padding: 40px 30px;
    }
}

@media (max-width: 479px) {
    .popup-window,
    .popup-window.popup-window-with-titlebar {
        padding: 60px 15px 30px;
        border-radius: 0;
        min-height: 100%;
    }
}

.popup-window-titlebar-text,
.popup-window-titlebar-text-version {
    display: block;
    font-weight: 400;
    font-size: 21px;
    line-height: 1.4;
    color: #3B3D42;
    margin-bottom: 12px;
    padding: 0;
    text-align: center;
}

@media (max-width: 479px) {
    .popup-window-titlebar-text,
    .popup-window-titlebar-text-version {
        font-size: 19px;
    }
}

.popup-window .popup-window-titlebar {
    height: auto;
}

.popup-window .popup-window-content {
    padding: 0;
    font-size: 14px;
    line-height: 1.4;
}

.popup-window-close-icon,
.popup-window-titlebar-close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #000000;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 18px;
    height: 18px;
    border: none;
    padding: 0;
    border-radius: 0;
    transition: .2s linear;
    opacity: 1;
}

.popup-window-close-icon:before,
.popup-window-close-icon:after,
.popup-window-titlebar-close-icon:before,
.popup-window-titlebar-close-icon:after {
    content: "";
    background: #78909c;
    height: 2px;
    width: 16px;
    margin: 0 auto;
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    display: block;
    transition: background .2s linear;
}
.popup-window-close-icon:hover:before,
.popup-window-close-icon:hover:after,
.popup-window-titlebar-close-icon:hover:before,
.popup-window-titlebar-close-icon:hover:after {
    background: #000000;
}

.popup-window-close-icon:before,
.popup-window-titlebar-close-icon:before {
    transform: translateY(-50%) rotate(-45deg);
}

.popup-window-close-icon:after,
.popup-window-titlebar-close-icon:after {
    transform: translateY(-50%) rotate(45deg);
}

.popup-window .product-info img {
    max-width: 100%;
    object-fit: contain;
}

.popup-window .product-info p {
    font-size: 16px;
    margin-top: 12px;
}

.popup-window div[id*="CatalogSubscribe"] .bx-catalog-popup-content {
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.popup-window div[id*="CatalogSubscribe"] .bx-catalog-popup-message {
    font-weight: 400;
    min-width: 0;
    margin: 10px 0;
    font-size: 16px;
}

.popup-window-buttons {
    padding: 12px 0 0 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.popup-window-buttons .btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 10px;
    height: 50px;
    padding: 0 25px;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 18.2px;
    letter-spacing: 0.14px;
    text-transform: uppercase;
    border: none;
    border-radius: 6px;
    border-radius: var(--small-radius, 6px);
    background-color: #0065DC;
    background-color: var(--blue-color, #0065DC);
    color: #ffffff;
    color: var(--white-color, #ffffff);
}

.popup-window-buttons .btn:hover {
    background-color: #0057BC;
    background-color: var(--blue-dark-color, #0057BC);
}

.popup-window-buttons .btn.disabled,
.popup-window-buttons .btn.disabled:hover,
.popup-window-buttons .btn.disabled:active {
    background-color: rgba(215,215,215,0.50196);
    background-color: var(--disabled-background, rgba(215, 215, 215, 0.5019607843));
    color: rgba(55,71,79,0.4);
    color: var(--disabled-color, rgba(55, 71, 79, 0.4));
    border-color: rgba(55,71,79,0.4);
    border-color: var(--disabled-color, rgba(55, 71, 79, 0.4));
}


.main-user-consent-request-popup-button-acc,
.main-user-consent-request-popup-button-rej {
    color: #fff;
    position: relative;
    display: inline-flex;
    height: auto;
    padding: 14px 15px;
    cursor: pointer;
    transition: .2s linear;
    border: none;
    background: #0f5eff;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    align-items: center;
    border: 1px solid #0f5eff;
    box-shadow: none;
}

.main-user-consent-request-popup-button-rej {
    color: #0f5eff;
    background-color: transparent;
}

.main-user-consent-request-popup-button-acc:hover,
.main-user-consent-request-popup-button-rej:hover {
    color: #fff;
    background: #80BFC9;
    border-color: #80BFC9;
}


@media (max-width: 767px) {
    .main-user-consent-request-popup-button-acc,
    .main-user-consent-request-popup-button-rej {
        font-size: 14px;
        padding: 10px 15px;
    }
}


/* Убираем нативный прелоадер битрикса */
div[id^="wait_"] {
    display: none !important;
    background: none !important;
    border: 0 !important;
    color: #000000;
    font-family: Verdana, Arial, sans-serif;
    font-size: 11px;
    font-style: normal !important;
    font-variant: normal !important;
    font-weight: normal;
    letter-spacing: normal !important;
    line-height: normal;
    padding: 0 !important;
    position: absolute;
    text-align: center !important;
    text-indent: 0 !important;
    width: 0px !important;
    height: 0px !important;
    word-spacing: normal !important;
    z-index: 0;
    content: "";
}

/* Подправить форму параметров компонента */
.adm-workarea input {
    width: initial;
    height: initial;
}

#bx-comp-params-wrap textarea {
    min-width: 87%;
    height: 100px;
    resize: auto;
}
.stocks_img_wrap img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}
.stocks_img_wrap {
    padding: 20px 0;
}
.product-card__mark[data-code="stock"] {
    color: #ff2b2b;
    border: 1px solid #ff2b2b;
}
.product-card__wrapper-icons svg{
    width: 22px;
}
.input-search__icon-search{
    cursor: pointer;
}
/**/
.favorite-icon,
.compare-icon {
    position: relative;
}

.favorite-icon .tooltip,
.compare-icon .tooltip {
    position: absolute;
    top: 106%;
    left: -180px;
    transform: translateX(-50%);
    background: white;
    color: #000;
    padding: 44px 40px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    margin-bottom: 8px;
    pointer-events: none;
    border-radius: var(--small-radius, 6px);
    -webkit-box-shadow: 0px 0px 16px rgba(13, 30, 42, 0.12);
    box-shadow: 0px 0px 16px rgba(13, 30, 42, 0.12);
    -webkit-box-shadow: var(--shadow-third, 0px 0px 16px rgba(13, 30, 42, 0.12));
    box-shadow: var(--shadow-third, 0px 0px 16px rgba(13, 30, 42, 0.12));
}
.tooltip .basket-popup__title{
    margin-bottom: 0;
}
.favorite-icon .tooltip::before,
.compare-icon .tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 30px;
    width: 15px;
    height: 15px;
    border-radius: 2px;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    background-color: #ffffff;
    background-color: var(--white-color, #ffffff);
}

.favorite-icon:hover .tooltip,
.compare-icon:hover .tooltip {
    opacity: 1;
    visibility: visible;
}


.section.categories {
    margin-top: 44px;
}
.swiper-wrapper{
    height: auto;
}
.product-preview__images{
    position: relative;
}
.product-preview__images .product-card__header{
    z-index: 99;
    margin-left: 0;
}
.popup-buy-one-click__wrapper-content .product-card__wrapper-content{
    position: relative;
}
.catalog__list-product_wide .product-card__wrapper-content{
    position: relative;
}
.catalog__list-product_wide .product-card__wrapper-content .product-card__header{
    top: 0;
}

/* favorite, compare */
.basket-icon_mob {
    position: relative;
    --count: attr(data-count);
}

.basket-icon_mob .basket__number_mob {
    display: none;
    position: absolute;
    top: -7px;
    right: -7px;
    width: 19px;
    height: 19px;
    background-color: #E6274D;
    background-color: var(--pink-color, #E6274D);
    border-radius: 50%;
    border-radius: var(--circle-radius, 50%);
    color: #ffffff;
    color: var(--white-color, #ffffff);
    font-family: "Open Sans";
    font-family: var(--main-font-family, "Open Sans");
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.basket-icon_mob .basket__number_mob::before {
    content: var(--count);
    display: inline;
    margin: auto;
    line-height: 1;
}

.basket-icon_mob.active .basket__number_mob{
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.basket-icon_mob.active .button path{
    fill: #E6274D;
    fill: var(--pink-color, #E6274D);
}
.news-block .news-block-card__wrapper-img img{
    object-fit: cover;
    margin: 0;
}
.news-block .news-block-card__wrapper-img{
    padding: 0;
}

@media (max-width: 768px) {
    .popup-select-city__wrapper-content button {
        margin-top: auto;
        min-height: 40px;
    }
}
@media (max-width: 540px) {
    .categories__item {
        height: 200px;
        padding: 5px;
    }
    .news-block .news-block__header button {
        font-size: 11px;
    }
}
.popup-search-result__title-product {
    display: block;
    max-width: 400px;
    white-space: nowrap;
    overflow: unset;
    text-overflow: unset;
}


select.form-control.bx-soa-customer-select {
    width: 100%;
    height: 50px;
    padding-left: 20px;
    font-size: 14px;
    border-radius: 6px;
    border-radius: var(--small-radius, 6px);
    background-color: #F2F3F5;
    background-color: var(--dark-white-color, #F2F3F5);
    outline: none;
    border: none;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
.stocks_img_brand_wrap img {
    width: auto;
}
.header__location {
    min-width: 250px;
}

.count-basket input{
    font-size: 16px;
}
.basket-card__last {
    min-width: 165px;
}
select.form-control.bx-soa-customer-select {
    appearance: none; /* Убираем стандартную стрелку */
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Добавляем свою стрелку через background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 30px; /* Место для стрелки */
}
.compare-details__names-rows{
    max-width: 292px;
}
@media (max-width: 768px) {
    .header__location {
        min-width: unset;
    }
    .subbanner__wrapper-img{
        width: 100%;
    }
    .new-current-product {
        padding: 0;
    }
}

.stocks_img_wrap.stocks_img_brand_wrap img {
    max-width: 400px;
}