.js-store-prod-text a {
    display: inline-block;
    padding: 15px 100px;
    margin-right: 50px;
    margin-top: 10px;
    border-radius: 3px;
    font-weight: 600;
    border:2px solid #8D3782;
}
.js-store-prod-text a:first-of-type {
    background-color: ##e1e2dd;
    color: #8D3782 !important;
}
.js-store-prod-text a:last-of-type {
    background-color: ##e1e2dd;
    color: #8D3782 !important;
}



.js-product-price{
    font-size: 22px;
}

.t-store__card__price-currency {
    margin-right: 10px;
    
}

.js-store-prod-all-text {
    font-size: 20px;
}

.t-store__prod-popup__price-currency {
    margin-right: 10px;
    
}

.js-store-prod-price-val{
    font-size: 22px;
}

.t-slds__bgimg {
     background-size: contain;
}

.t-slds__thumbsbullet-border {
    display: none;
}

.t-store__card__bgimg, .t-store__card__bgimg_second {
    background-size: contain;
}

.t-store__tabs__content {
        font-size: 20px;
}

/* Основной пункт фильтра */
.t-store__filter__item-title {
  font-size: 20px;
}

/* Вложенные пункты фильтра */
.t-store__filter__title {
  font-size: 20px;
}

.t-store__tabs__item-title {
    font-size: 22px;
}


  (function (){ function t_ready(e) { "loading" != document.readyState ? e() : document.addEventListener ? document.addEventListener("DOMContentLoaded", e) : document.attachEvent("onreadystatechange", (function() { "loading" != document.readyState && e() } )) } function loadScript(yaShareBlock) { const oldScript = document.querySelector('.yastatic_script'); if(oldScript) { oldScript.remove(); } const script = document.createElement('script'); script.src = "https://yastatic.net/share2/share.js"; script.classList.add('yastatic_script'); document.body.appendChild(script); const yaShareBlockList = document.querySelectorAll('.ya-share2'); let intForYaShareBlockInited = setInterval(() => { let yaShareBlockInitedList = document.querySelectorAll('.ya-share2_inited'); if(yaShareBlockInitedList.length === yaShareBlockList.length) { clearInterval(intForYaShareBlockInited); yaShareBlockInitedList.forEach((yaBlock) => { function forYaBlockEventListener () { let share = Ya.share2(yaBlock); share.updateContent({ url: window.location.href, }); } if (window.matchMedia('(max-width: 768px)').matches) { yaBlock.addEventListener('click', forYaBlockEventListener, { once: true }); } else { function addEventListenerAgain() { yaBlock.addEventListener('mouseenter', forYaBlockEventListener, { once: true }); } yaBlock.addEventListener('mouseenter', forYaBlockEventListener, { once: true }); yaBlock.addEventListener('mouseleave', addEventListenerAgain); } }); } },100); } function addEventListener(elem, listener, options){ 		elem.addEventListener('mouseenter', listener, options); 		if (window.matchMedia('(max-width: 768px)').matches) { 		elem.addEventListener('click', listener, options); 		}; 	} function removeEventListener(elem, listener){ 		elem.removeEventListener('mouseenter', listener); 		if (window.matchMedia('(max-width: 768px)').matches) { 			elem.removeEventListener('click', listener); 		} } function startMod() { function addShareProperties(newYaShareBlock,idWithoutRec,productLid) { newYaShareBlock.className = "ya-share2"; newYaShareBlock.setAttribute("data-curtain", "true"); newYaShareBlock.setAttribute("data-limit", "0"); newYaShareBlock.setAttribute("data-shape", "normal"); newYaShareBlock.setAttribute("data-size", "m"); newYaShareBlock.setAttribute("data-more-button-type", "short"); newYaShareBlock.setAttribute("data-popup-direction", "auto"); newYaShareBlock.setAttribute("data-popup-position", "outer"); newYaShareBlock.setAttribute( "data-services", "messenger,vkontakte,odnoklassniki,telegram,viber,whatsapp" ); } function createYaShareBlock(idWithoutRec,productLid) { let yaShareBlock = document.createElement("div"); addShareProperties(yaShareBlock,idWithoutRec,productLid); return yaShareBlock; } let buttonLocation = '1'; let a = setInterval( () => { let parentContainerSelector = ".t744, .t776, .t778, .t754, .t-store__prod-snippet__container, .t786"; let jsProduct = document.querySelectorAll(".js-product"); if (jsProduct.length === 0) {return;} clearInterval(a); if (buttonLocation === "0") { let observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if(mutation.type === 'attributes' && mutation.attributeName === 'class') { let elementClasses = mutation.target.classList; if(elementClasses.contains('t-popup') && elementClasses.contains('t-popup_show')) { observer.disconnect(); startMod(); let a=setInterval(()=>{ let yaShareBlockInitedList = document.querySelectorAll('.ya-share2_inited'); if(window.Ya&&yaShareBlockInitedList.length>0){ clearInterval(a); yaShareBlockInitedList.forEach((yaBlock) => { let share = Ya.share2(yaBlock); share.updateContent({ url: window.location.href, }); }); } },50); setTimeout(()=>clearInterval(a),5000); } } }); }); document.querySelectorAll('.t-popup').forEach((element) => { observer.observe(element, { attributes: true}); }); jsProduct.forEach((product) => { const b=setInterval(() => { let jsProductImg = product.querySelector(".t-slds__container, .t-slds__imgwrapper, .t-slds__wrapper"); if(!jsProductImg){ return; } clearInterval(b); const productLid = product.getAttribute('data-product-lid'); const closestParent = product.closest('[id*="rec"]').id; const idWithoutRec = closestParent?.slice(3); let yaShareBlock = createYaShareBlock(idWithoutRec,productLid); if(jsProductImg.querySelector('.ya-share2')) { return; } jsProductImg.appendChild(yaShareBlock.cloneNode(true)); loadScript(); },50); setTimeout(()=>clearInterval(b), 2000); }); } if (buttonLocation === "1") { let observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => { if(mutation.type === 'attributes' && mutation.attributeName === 'class') { let elementClasses = mutation.target.classList; if(elementClasses.contains('t-popup') && elementClasses.contains('t-popup_show')) { observer.disconnect(); startMod(); let a=setInterval(()=>{ let yaShareBlockInitedList = document.querySelectorAll('.ya-share2_inited'); if(window.Ya&&yaShareBlockInitedList.length>0){ clearInterval(a); yaShareBlockInitedList.forEach((yaBlock) => { let share = Ya.share2(yaBlock); share.updateContent({ url: window.location.href, }); }); } },50); setTimeout(()=>clearInterval(a),5000); } } }); }); document.querySelectorAll('.t-popup').forEach((element) => { observer.observe(element, { attributes: true}); }); let btnSelector = " .t-store__prod-popup__btn-wrapper, .t-store__prod-popup__btn-wrapper, .t744__btn-wrapper"; let parentContainers = document.querySelectorAll(parentContainerSelector); parentContainers.forEach((container) => { const closestParent = container.closest('[id*="rec"]')?.id; const idWithoutRec = closestParent?.slice(3); let productLid; let yaShareBlock; container.querySelectorAll('.js-product').forEach((product) => { productLid = product.getAttribute('data-product-lid'); yaShareBlock = createYaShareBlock(idWithoutRec,productLid); let btnContainers = product.querySelectorAll(btnSelector); if (btnContainers.length > 0) { btnContainers.forEach((btnContainer) => { if(btnContainer.querySelector('.ya-share2')) { return; } let intForT1002AddBtn = setInterval(() => { let addToFavoriteButton = btnContainer.querySelector('.t1002__addBtn'); if (addToFavoriteButton) { clearInterval(intForT1002AddBtn); if(btnContainer.querySelector('.ya-share2')) { return; } else { btnContainer.appendChild(yaShareBlock.cloneNode(true)); loadScript(); } } },100); setTimeout(() => { if(intForT1002AddBtn && btnContainer.querySelector('.ya-share2') === null) { clearInterval(intForT1002AddBtn); btnContainer.appendChild(yaShareBlock.cloneNode(true)); loadScript(); } },1000); }); } }); }); } }, 10); setTimeout(() => { clearInterval(a); }, 5000); }; t_ready(function() { startMod(); let gridContainerList = document.querySelectorAll('.js-store-grid-cont'); if(gridContainerList.length !== 0) { gridContainerList.forEach((gridContainer) => { gridContainer.removeEventListener('tStoreRendered', startMod); gridContainer.addEventListener('tStoreRendered', startMod); }); } }); setTimeout(()=>{ 	document.querySelectorAll('[data-record-type="690"]').forEach((element) => { 		element.addEventListener("click", function () { startMod(); }); 	}); },1000 ); })();   .t776__btn-wrapper, .t762__btn-wrapper, .t778__btn-wrapper, .t754__btn-wrapper, .t-store__prod-popup__btn-wrapper, .t744__btn-wrapper { display: flex; align-items:center; * { margin-bottom:0!important; } } .ya-share2__container{ z-index: 99999999999; } @media screen and (min-width: 641px) { .ya-share2__popup { position: relative !important; left: 20px !important; } .ya-share2__badge:hover { transform: scale(1); } .ya-share2__badge { transition: all 0.3s; } } .ya-share2__popup > .ya-share2__list { position: absolute; padding-left: 0 !important; z-index: 99999; display: inline-block!important; margin-bottom:0!important; top: 0px !important; left: 0px !important; } .ya-share2__item.ya-share2__item_more > .ya-share2__link, .ya-share2__item.ya-share2__item_more > .ya-share2__link:hover { opacity: 1 !important; } .ya-share2__container > .ya-share2__list { padding-left: 0 !important; position: static; z-index: 99999; display: inline-block!important; margin-bottom:0!important; top: 0%!important; left: 0px!important; @media screen and (min-width: 641px) { padding-top: 0px !important; padding-bottom: 0px !important; padding-left: 0px !important; padding-right: 0px !important; } @media screen and (max-width: 640px) { top: 0%!important; left: 0px!important; } } 	.ya-share2__link_more-button-type_short{ background: transparent!important; border-radius: 0!important; 	} 	.ya-share2__list.ya-share2__list_direction_horizontal > .ya-share2__item{  margin: 0; 	} 	.ya-share2__list.ya-share2__list_direction_horizontal{  margin-top: -2px; 	} 	.ya-share2__popup ul li {  background-color: #ffffff!important; 	} 	.ya-share2__container_size_m .ya-share2__popup_direction_bottom{  top:0px!important; 	} 	.ya-share2__container_size_m .ya-share2__popup_direction_top{ bottom: 0px!important; 	} .ya-share2__container_size_m .ya-share2__item_more.ya-share2__item_has-pretty-view { pointer-events: none; } .ya-share2__container_size_m .ya-share2__item_more.ya-share2__item_has-pretty-view .ya-share2__link_more.ya-share2__link_more-button-type_short{ pointer-events: auto; padding: 0; border-radius: px!important;  background-color: #ffffff!important;  width: px;  height: px;  border: px solid #ffffff;  display: flex;  justify-content: center;  align-items: center;  @media screen and (max-width: 640px) {  border-radius: px!important; background-color: #ffffff!important; width: px; height: px; border: px solid #ffffff; margin-top: 0px; margin-bottom: 0; margin-left: 0px; margin-right: 0px !important;  } } .ya-share2__badge.ya-share2__badge_more{ border-radius: initial!important; } 	.ya-share2__item_more.ya-share2__item_has-pretty-view .ya-share2__icon_more{  border-radius: initial;  width:px !important;  height:px !important;  ;  background-size:px px !important;  background-position: center;  background-repeat: no-repeat;  @media screen and (max-width: 640px) {  width:px !important;  height:px !important;  background-size:px px !important;  } 	}  
