img:is([sizes="auto" i], [sizes^="auto," i]) {
    contain-intrinsic-size: auto none;
}

/* Скрываем блок с копирайтом, если он находится в конце виджета */
.amocrm-widget [class*="styles_footer__"] {
    display: none !important;
}

/* recaptcha v3 */
.grecaptcha-badge {
    visibility: hidden !important;
}

/* Стили для review-lbox */
/* ===== ЛАЙТБОКС ===== */
.review-lbox.is--open {
    display: flex !important;
    background: rgba(0, 0, 0, 0.85);
}

/* ===== КОНТЕНТ В ЛАЙТБОКСЕ ===== */

/* Скрываем ненужное */
.review-lbox--wrapper .review-form__img,
.review-lbox--wrapper .review-form__play {
    display: none !important;
}


/* Стили плейера из медиабиблиотеки */
/* Стили для триггера */
.review-gallery-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
}

.review-gallery-badge svg {
    width: 18px;
    height: 18px;
}

.review-gallery-badge span {
    line-height: 1;
}

.review-video-trigger {
    position: relative;
    display: block;
    cursor: pointer;
    height: 100%;
}

.review-slide__poster {
    height: 100%;
}

.review-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
    height: 3em;
    width: 3em;
}

/* ===== ЛАЙТБОКС - БЕЗ КОНТЕНТА ===== */
/* Если в лайтбоксе нет правой колонки с текстом */
.review-lbox--wrapper .review-form__column.is--left:only-child {
    max-width: 100% !important;
    max-height: 80vh !important;
    height: 90vh !important;
    width: 90vw !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* padding: 20px !important; */
    background-color: transparent !important;
    flex: none !important;
}

/* Контейнер видео/галереи на весь экран */
.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__video,
.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__gallery {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Видео на весь экран */
.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__video video {
    max-width: 90vw !important;
    max-height: 80vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Галерея на весь экран */
.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__gallery {
    max-width: 100vw !important;
    max-height: 80vh !important;
}

/* Стрелки галереи */
.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__slider_arrow {
    display: block;
}

.review-lbox--wrapper .review-form__column.is--left:only-child .w-slider,
.review-lbox--wrapper .review-form__column.is--left:only-child .w-slider-mask {
    height: 80vh !important;
    width: 100% !important;
    max-height: 80vh !important;
}

.review-lbox--wrapper .review-form__column.is--left:only-child .review-form__slider_img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ===== СКРЫВАЕМ ЛИШНЕЕ В ЛАЙТБОКСЕ ===== */
.review-lbox--wrapper .review-form__img,
.review-lbox--wrapper .review-form__play {
    display: none !important;
}

/* ===== ЕСЛИ ЕСТЬ КОНТЕНТ - СТАНДАРТНЫЙ РЕЖИМ ===== */
.review-lbox--wrapper .review-form__column.is--left:not(:only-child) {
    flex: 2 !important;
    min-width: 300px !important;
    min-height: 400px !important;
    padding: 20px !important;
    background: transparent !important;
}

.review-lbox--wrapper .review-form__column.is--left:not(:only-child) .review-form__video video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.review-lbox--wrapper .review-form__column.is--left:not(:only-child) .w-slider-mask {
    height: 100% !important;
    min-height: 300px !important;
}


/* Стили для видео в лайтбоксе Webflow */
.w-lightbox-video {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
}

.w-lightbox-video video {
    max-width: 90vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
}

.w-lightbox-frame,
.w-lightbox-view:before {
    vertical-align: middle;
    display: block;
    width: auto;
    height: auto;
}

.header__button_img {
    width: 2em;
    height: 2em;
}



/* Стили для кнопок + и - */

.input__btn:active {
    transform: scale(0.95);
}

.input__btn:active {
    transform: scale(0.92);
}

/* Стили для контейнера результатов */
.quiz-result {
    animation: slideDown 0.5s ease;
    display: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-result__hint {
    cursor: help;
    border-bottom: 1px dotted #ccc;
}

.quiz-result__footnote {
    border-top: 1px solid #eee;
    padding-top: 8px;
}

/* Для плавного появления блока с ценой */
#price-block {
    transition: all 0.2s ease;
}


/* Стили для выделения цены */
.quiz-result__final {
    font-size: 24px;
    color: #ff6b35;
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}



/* Стиль для неактивной кнопки */
.submit.is--request-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Стиль для ошибки выбора адреса */
.form__radio-wrapper.is--adress.has-error {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    background-color: transparent;
}

.form__radio-wrapper.is--adress.has-error .form__radio-label {
    color: #ccc;
}

/* Стиль когда адрес выбран - убираем ошибку */
.form__radio-wrapper.is--adress:not(.has-error) {
    border: 1px solid var(--cayn);
    background-color: transparent;
}

/*
.form__radio-wrapper.is--adress:not(.has-error) .form__radio-label {
    color: #333;
}
*/

/* Select2 */
/* Базовые стили для Select2, чтобы соответствовали вашим стилям */
.select2-container {
    box-sizing: border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle;
    border: 1px solid var(--cayn);
    border-radius: 0.25em;
    font-weight: 500;
    color: var(--black);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    display: none;
}

.select2-container--default .select2-selection--single {
    height: 2.5em;
    border: 1px solid var(--light-grey);
    border-radius: 0.125em;
    padding: 0.5em 2em 0.5em 0.25em;
    background-color: var(--smokie);
    color: var(--white);
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 2.5em;
    user-select: none;
    -webkit-user-select: none;
    font-size: 0.875em;
    background-color: var(--cayn);
    color: var(--white);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 8px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 0.5em;
    right: 1px;
    width: 3em;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-top-color: var(--white);
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -4px;
    position: absolute;
    top: 50%;
    width: 0;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent var(--black) transparent;
    border-width: 0 6px 6px 6px;
    border-top-color: var(--white);
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #008B8B;
    color: white;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--white);
    line-height: 1.5em;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--smokie);
}

.select2-results__option {
    padding: 0.25em;
    font-size: 0.875em;
    user-select: none;
    -webkit-user-select: none;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--cayn);
    color: white;
}



/* Анимация плавного перехода */
.form__radio-wrapper.is--adress {
    transition: all 0.3s ease;
}

/* Стили для выбранного адреса */
.form__radio.is--adress.selected {
    background-color: var(--trasparent);
    border: 0px none var(--trasparent);
    border-radius: 0;
}

.form__radio.is--adress.selected .form__radio-label {
    color: var(--cayn);
}

/* --- */

.review-slide_play {
    pointer-events: none;
    user-select: none;
    /* Запрет выделения */
    -webkit-tap-highlight-color: transparent;
    /* Убирает подсветку на мобильных */
}

.btn-step-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: default;
}

.btn-step {
    display: inline-block;
    text-decoration: none;
    /* остальные стили */
}

.btn-step-next[data-disabled="true"] {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale();
}

/* input file form */
.input-file-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1em;
}

/*.input-file {
	position: relative;
	display: block;
	max-width: 12.5em;
    width: 100%;
}*/
.input-file span:focus {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    text-decoration: none;
    vertical-align: middle;
    border-radius: 4px;
    line-height: 22px;
    border: none;
    margin: 0;
}

.input-file span {
    text-decoration: none;
}

.input-file input[type=file] {
    position: absolute;
    z-index: -1;
    opacity: 0;
    display: block;
    width: 0;
    height: 0;
}

a.input-file-list-remove {
    color: var(--cayn);
    text-decoration: none;
    transition: all .2s;
    margin-left: 0.25em;
    position: relative;
    top: -0.075em;
}

a.input-file-list-remove:hover {
    text-decoration: none;
}


.wp-video {
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}


/* Webflow */
.w-lightbox-backdrop {
    background: rgba(0, 0, 0, 0.75);
    font-family: Inter, sans-serif;
    font-size: 1em;
    font-style: normal;
    font-weight: 400;
    line-height: 1.5em;
}

.w-lightbox-caption {
    padding: 1em 0;
    text-align: center;
    white-space: normal;
    background: var(--transparent);
    color: var(--white);
    /* text-align: right; */
    /* padding-right: 1em; */
    font-size: 1em;
    font-weight: 400;
    text-transform: none;
    margin: -3em;
}

.w-lightbox-figure {
    margin: 0;
    position: relative;
    background: var(--transparent);
    padding-bottom: 0;
    justify-content: center;
    align-items: center;
    display: flex;
    position: fixed;
    inset: 0%;
}

.w-lightbox-embed {
    position: relative;
    inset: 0;
}

.w-lightbox-image {
    float: none;
    /* max-width: 100vw; */
    /* max-height: 100vh; */
    display: block;
    position: absolute;
}

.w-lightbox-thumbnail {
    background: var(--transparent);
}

.w-lightbox-close {
    background-image: url("images/lbox-close.svg");
    background-size: 3em;
    height: 3em;
    right: 0;
}

.w-lightbox-left {
    background-image: url(images/lbox-left.svg);
    background-size: 3em;
    display: block;
}

.w-lightbox-right {
    background-image: url(images/lbox-right.svg);
    background-size: 3em;
    display: block;
}

figcaption {
    margin-top: 0;
}

.contact__item_arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Ajax Search*/
#ajaxsearchlite1 .probox,
div.asl_w .probox {
    margin: 0;
    height: 2.5em;
    background-color: var(--white);
    border: 1px solid var(--light-grey);
    border-radius: 0.25em 0.25em 0.25em 0.25em;
    box-shadow: 0 0 0 0 var(--white) inset;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    align-items: center;

}

#ajaxsearchlite1 .probox .proinput input,
div.asl_w .probox .proinput input {
    font-weight: 500;
    font-family: 'Jost';
    color: var(--black) !important;
    font-size: 1.25em;
    line-height: normal !important;
    border: 0;
    box-shadow: none;
    padding: 0.5em 0 !important;
}

div.asl_r .results .item .asl_content h3,
div.asl_r .results .item .asl_content h3 a {
    margin: 0;
    padding: 0;
    line-height: inherit;
    font-weight: normal;
    font-family: 'Jost';
    color: var(--cayn);
    font-size: 1em;
    line-height: 1.25em;
    text-shadow: 0 0 0 rgba(255, 255, 255, 0);
}

div.asl_r .results .item .asl_content h3,
div.asl_r .results .item .asl_content h3 a:hover {
    font-family: 'Jost';
    color: var(--cayn);
    font-size: 1em;
    line-height: 1.25em;
}

div.asl_r.asl_w.vertical .results .item::after {
    background: var(--smokie);
}

div.asl_r .resdrg {
    height: 70vh;
    overflow: auto;
}


/* Wishlist */
.yith-wcwl-add-to-wishlist {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    margin-top: 0;
}

.wishlist_table .add_to_cart.button,
.yith-wcwl-add-button a.add_to_wishlist,
.yith-wcwl-popup-button a.add_to_wishlist,
.wishlist_table a.ask-an-estimate-button,
.wishlist-title a.show-title-form,
.hidden-title-form a.hide-title-form,
.woocommerce .yith-wcwl-wishlist-new button,
.wishlist_manage_table a.create-new-wishlist,
.wishlist_manage_table button.submit-wishlist-changes,
.yith-wcwl-wishlist-search-form button.wishlist-search-button {
    margin: 0;
    padding: 0.5em;
    box-shadow: none;
    text-shadow: none;
    display: flex;
    justify-content: center;
}

.yith-wcwl-add-to-wishlist a.add_to_wishlist>img,
.yith-wcwl-add-to-wishlist a.move_to_another_wishlist>img,
.yith-wcwl-add-to-wishlist a.delete_item>img {
    max-width: 1.25em;
    display: inline-block;
    margin-right: 0;
}