/* Кнопка каталога */



/* Поп-ап Заказать звонок */
#rec781599093 .t-popup__container{
    border-radius:16px;
}
/*Изменение цвета полоски закрытия в формах до 560px*/
@media screen and (min-width: 560px) {
#rec781599093 .t-popup__container > img{
    border-radius:16px 16px 0px 0px;
}
} 

/*Меню на экранах до 980px*/

#rec781598832 .tmenu-mobile{
    border-bottom:1px solid #E7E7E7;
}
#rec781598832 .t-menuburger span{
    border-radius:4px;
}

#rec781598832 .t967 .t967__button{
    padding-left: 24px;
    padding-right: 0px;
    font-size: 20px;
    margin-left: 0px;
    justify-content: space-between;
}
#rec781598832 .t967__additionalwrapper{
    width:100%;
}

#rec781598832 .t967__button-wrap{
    width:100%;
}

#rec781598832 .t967 .t967__button:after {
    content: '';
    background: url(https://static.tildacdn.com/tild3634-3336-4463-b230-323065643535/catalog.svg);
    background-position: center;
    background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    display: inline-block;
    vertical-align: middle;
    margin-right:8px;
    margin-left:8px;
    border-radius: 8px;   
}

svg.t-sociallinks__svg {
    width:40px;
    height:40px;}
    
.t967 .t-sociallinks__item, .t967__additional-social-links__item{
    padding:0px 16px;
}


/*Изменение цвета полоски закрытия в формах до 560px*/
@media screen and (max-width: 560px) {
.t702 .t-popup__block-close{
    background-color: #FFF;
}
}

@media screen and (max-width: 1200px) {
#rec1095210276 .t396__artboard {
    overflow-x: auto;
}
#rec1095210276 .t396__artboard::-webkit-scrollbar {
    height: 0;
    
}}

/*кнопки*/
body .t-btn_sm{
    padding-right: 10px;
    padding-left: 10px;
}

body .t-slds__arrow-withbg{
    border-radius:12px!important;
}

/*Форма подбора*/
#rec785624814 .t-img-select__indicator{
    box-shadow: none;
    border-radius: 16px;
    border: 1px solid #c9c9c9;
}

#rec785624814 .t-img-select__indicator:hover{
    box-shadow: none;
    border-radius: 16px;
    border: 1px solid #004EDF;
}
@media screen and (min-width:1200px){
    #rec785624814 .t-img-select__text{
    text-align: center;
    font-size:14px;
}}
@media screen and (max-width:1200px){
    #rec785624814 .t-img-select__text{
    text-align: center;
    font-size:16px;}
}
 #rec785624814 .t-img-select__text{
    text-align: center;}

#rec785624814 .t-form__screen-btn-prev{
color: #004EDF!important;
background-color: #fff!important;
border:1px solid #004EDF!important;
}
#rec785624814 .t-form__screen-btn-prev:hover{
color: #FFF!important;
border:1px solid #004EDF!important;
}
}
.js-error-control-box .t-img-select__container{
    border-radius:32px;
}

.t-form__successbox{
    border-radius:16px;
}

.t-form__errorbox-wrapper{
    border-radius:16px;
}

.js-error-control-box .t-img-select__container{
        border-radius:32px;
}
.t702 .t-input-title{
    font-size:20px;
    font-weight:500;
    margin-bottom:4px;
}
@media screen and (max-width:460px){
body .t-slds__bgimg{
   border-radius: none!important;
}}

.t389__maincontainer{
    padding:0px;
    max-height:8px;
}

.t706__form-bottom-text{
    margin-bottom:0px;
}

.t706__cartwin{
background-color: rgba(37, 41, 44, 0.6);
}

.t-slds__bgimg{
    border-radius:16px;
}
.js-store-prod-all-text{
    font-size:16px;
}

.t-store__tabs__item-title{
    font-size:18px;
}
.t-typography__characteristics{
    font-size:16px;
}

.t-descr_xxs{
    font-size:16px;
}

.t-store__card__imgwrapper{
    background:#FFFFFF;
    border-radius:24px;
}

.t-align_left .t-store__card__btn{
    margin: 0px 4px 4px 0px;
}
.t-store__card__btn-text{
    font-size:13px;
}

.js-store-prod-popup-buy-btn-txt{
    font-size:14px;
}
.t-slds__imgwrapper{
     border-radius:24px;
}

.t886 {
display: flex;
justify-content: center;
width: 100%;
}

.js-store-load-more-btn{
    color:#004EDF!important;
    background-color:#CEEEF3!important;
    border:none!important;
}

.js-store-load-more-btn:hover{
    color:#FFFFFF!important;
    background-color:#004EDF!important;
    border:none!important;

}

@media screen and (max-width:640px){
.t-name_xs {
    font-size:16px;
}}

.t-checkbox__indicator {
    border:1px solid #11181C!important;
    border-radius:4px;
    
}

@media screen and (min-width:961px){
.t951__sidebar .t-store__filter__item_price .t-store__filter__input {
    border-radius:20px;
}
.t951 .t-store__filter__search .t-store__filter__input {
    border-radius:20px;
}
.t951 .t-store__filter__chosen-bar {
    border-radius:12px!important;
}}

.t-store__sort-select {
    border-radius:20px!important;
}

.categories-hov{
    background-color:#FFFFFF;
    border-radius:24px;
}

.categories-hov:hover{
    background-color:#CEEEF3;
}

.js-store-prod-all-text span{
    padding:4px 16px 4px 4px;
    background-color:#F7F8F8;
    border-radius:0px 16px 16px 0px;
}
.js-store-prod-all-text a{
    padding:4px 0px 4px  16px;
    background-color:#F7F8F8;
    border-radius:16px 0px 0px 16px;
}
@media screen and (max-width:640px){
.t-name_md{
    font-size:16px!important;}
    .t-feed__post-popup__title-wrapper{
    margin-top: 32px;
}
}

.t-text_md {
    font-size:16px!important;
}
}
.t-store__card__mark {
    height:auto;
    padding: 4px 4px;
    font-size:14px;
    font-width:500;
}

.t-col_8{
    max-width:1200px;
}
.t-feed__post-popup__container{
    padding: 32px 0px;
}

.t-feed__post-popup__relevants-bgimg{
    border-radius:24px;
}
.t-col{
    margin-left:16px;
    margin-right:16px;
}








.share-caption {
    color: #212843;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
    margin: 18px 0 10px 0;
}




    document.addEventListener("DOMContentLoaded", function () {
        // Функция для добавления кнопки в контейнер
        function addShareButton(targetElement) {
            if (!targetElement.querySelector('.ya-share2')) {
                // Создаем элемент с текстом "Поделиться в соц. сетях"
                var shareCaption = document.createElement('div');
                shareCaption.className = 'share-caption';
                shareCaption.textContent = 'Поделиться в соц. сетях';

                // Создаем блок Яндекс.Поделиться
                var shareBlock = document.createElement('div');
                shareBlock.className = 'ya-share2';
                shareBlock.setAttribute('data-curtain', '');
                shareBlock.setAttribute('data-limit', '4');
                shareBlock.setAttribute('data-services', 'messenger,vkontakte,odnoklassniki,telegram,viber,whatsapp');

                // Добавляем текст и кнопку в контейнер
                targetElement.appendChild(shareCaption);
                targetElement.appendChild(shareBlock);
            }
        }

        // Наблюдаем за открытием попапа с товаром
        var productPopup = document.querySelector('.t-store__prod-popup__info');
        if (productPopup) {
            addShareButton(productPopup); // Добавляем кнопку сразу, если попап открыт
        }

        // Наблюдение за изменениями в попапе
        var cartPopup = document.querySelector('.t706__cartwin');
        var observer = new MutationObserver(function (mutationsList) {
            mutationsList.forEach(function (mutation) {
                if (mutation.target.classList.contains('t706__cartwin_showed')) {
                    // Ищем контейнер внутри попапа с товаром
                    var productPopupInside = document.querySelector('.t-store__prod-popup__info');
                    if (productPopupInside) {
                        addShareButton(productPopupInside); // Добавляем кнопку в попап
                    }
                }
            });
        });

        // Настроим наблюдатель для изменений в классе попапа
        observer.observe(cartPopup, { attributes: true, attributeFilter: ['class'] });
    });

      
