/*
Theme Name: Teplosila
Theme URI: https://teplosyla.ru
Description: Каталог теплоизоляции ТЕПЛОСИЛА (форк akkora)
Version: 1.0.0
Author: netranking
Text Domain: teplosila
*/
.single-item__right .single-item__text:before {
    content: '';
    background: linear-gradient(to bottom, rgba(250, 251, 252, 0), #fafbfc);
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 50px;
}

.single-item__right .single-item__text {
    position: relative;
}

.single-item__right .single-item__i-text.expanded .single-item__text:before {
    display: none;
}

span.single-item__item-val {
    text-align: right;
}

.single-item.single-item--text {
    align-items: flex-start;
}

.custom-table__line.disabled {
    opacity: 0.5;
    position: relative;
}

.custom-table__line.disabled:after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.custom-table__line.disabled .item-counter {
    border-color: #ccc;
}

.custom-table__line.disabled .btn-site {
    background: #ccc;
    opacity: 0.5;
}

.widget-item__head:after {
    top: 0;
}
.widget-item__head {
    line-height: 18px;
    padding-top: 4px;
}

.item-checkbox--hidden {
    display: none;
}
.list-products-more {
    margin-top: 30px;
    text-align: center;
}

.add-cart.active {
    background: #068ad0 !important;
    cursor: default !important;
}

.add-cart.active::after {
    background: url('data:image/svg+xml,<svg width="22" height="24" viewBox="0 0 22 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_2127_5633)"><path d="M1.71484 2.66669H3.58441L6.07093 15.6934C6.16214 16.1618 6.39873 16.5805 6.73996 16.8775C7.0812 17.1744 7.50573 17.3311 7.94049 17.3204H17.0827C17.5082 17.3197 17.9207 17.159 18.2521 16.8651C18.5835 16.5712 18.814 16.1615 18.9055 15.7037L20.4479 7.81536H4.58462" stroke="white" stroke-width="1.2329" stroke-linecap="round" stroke-linejoin="round"/><ellipse cx="7.45211" cy="22.4199" rx="1.43453" ry="1.58025" fill="white"/><ellipse cx="17.4951" cy="22.4199" rx="1.43453" ry="1.58025" fill="white"/></g><defs><clipPath id="clip0_2127_5633"><rect width="21.1765" height="24" fill="white" transform="translate(0.412109)"/></clipPath></defs></svg>') no-repeat center center !important;
}

.min-card.active .min-card__in {
    display: flex;
}

.min-card:not(.active) .min-card__in {
    display: none;
}

.min-card.active .min-card__empty {
    display: none;
}

.min-card:not(.active) .min-card__empty {
    display: block;
}

.loading {
    position: relative;
}

.loading:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 25;
}

.loading:before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid #3d3d3d;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin .7s linear infinite;
}

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

.item-cart {
    display: flex;
    flex-direction: column;
}


.item-cart__prices {
    margin-top: auto;
}

.cart-page__total {
    text-align: center;
}

h1.image-line__title {
    margin-top: 0;
}


@media screen and (min-width: 1024px) {
    .cart-order-page__flex {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .cart-order-page__form {
        margin-bottom: 30px;
        width: 45%;
    }
}
.order-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    border-radius: 6px;
}

.order-table th {
    text-align: left;
}

.order-table th,.order-table td {
    padding: 9px 16px;
    border: 1px solid #c7cacf;
    background: #fff;
    border-radius: 6px;
}

label.item-radio {
    display: block;
}

.cart-order-page__order {
    margin-top: 31px;
}

.cart-order-page__order .item-form__label {
    font-weight: bold;
}
@media screen and (min-width: 1024px) {
    .cart-order-page__order {
        width: 51%;
    }
}
@media screen and (min-width: 1024px) {
.sitemap-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.sitemap-flex__item {
    width: 30%;
}
}

.header-site {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: #fff;
}
.header-site.sticky {
    position: fixed;
}
.header-site.sticky .header-site__top {
    display: none;
}

.header-site.sticky .header-site__menu {
    display: none;
}

@media screen and (max-width: 640px) {
    .header-site.sticky .header-site__middle {
        display: none;
    }

    .header-site.sticky .header-site__menu {
        display: flex;
    }
}

.arrow-item--top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none;
    z-index: 9999;
    background: #068ad0;
    transform: rotate(-90deg);
}
.arrow-item--top.active {
    display: flex;
}

.input-style.error {
    border-color: red;
}


.item-checkbox.error::after {
    box-shadow: 0px 1px 8px #fc0000;
    border-radius: 5px;
}

.page-main {
    padding-top: 205px;
}
@media screen and (max-width: 1180px) {
    .page-main {
        padding-top: 245px;
    }
}
@media screen and (max-width: 991px) {
    .page-main {
        padding-top: 214px;
    }
}
@media screen and (max-width: 767px) {
    .page-main {
        padding-top: 173px;
    }
}

.item-form p {
    margin: 0;
    padding: 0;
}

.item-form br {
    display: none;
}

.item-form span.wpcf7-not-valid-tip {
    display: none !important;
}

.item-form .wpcf7-not-valid {
    border-color: red !important;
}

.item-checkbox {
    font-size: 14px;
    line-height: 18px;
    color: rgba(100, 118, 140, .8);
}

.item-checkbox a {
    color: #068ad0;
    position: relative;
    z-index: 5;
}

.item-checkbox a:hover {
    text-decoration: none;
}

.item-checkbox .wpcf7-form-control-wrap {
    position: static !important;
}

.item-checkbox span.wpcf7-list-item {
    display: block;
    margin: 0;
}

.item-checkbox label {
    display: block;
}

.item-checkbox input {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 4;
    cursor: pointer;
}

.item-checkbox input:checked +span.wpcf7-list-item-label:before {
    content: "";
    width: 20px;
    height: 20px;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.5" y="0.5" width="19" height="19" rx="3.5" fill="%23068AD0"/><rect x="0.5" y="0.5" width="19" height="19" rx="3.5" stroke="%23068AD0"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5101 6.32815C15.7802 6.59682 15.7802 7.03398 15.5101 7.30266L9.32701 13.4524C8.93693 13.8404 8.3067 13.8404 7.91662 13.4524L4.48989 10.0442C4.21976 9.77549 4.21976 9.33834 4.48989 9.06966C4.75797 8.80303 5.19108 8.80303 5.45915 9.06966L8.62181 12.2153L14.5408 6.32815C14.8089 6.06152 15.242 6.06152 15.5101 6.32815Z" fill="white"/></svg>') no-repeat center center;
    position: absolute;
    left: 0;
    top: 2px;
    z-index: 3;
}

.wpcf7 form .wpcf7-response-output {
    display: none !important;
}

.article-page--products {
    padding-top: 50px;
}

.content-text.image-line__text {
    color: #fff;
    max-width: 1115px;
    margin: auto;
    margin-bottom: 30px;
    font-size: 18px;
    margin-top: -10px;
}

.ajax-content-cart {
    min-height: 150px;
}

/* === Header address & contacts === */

.item-address__lines {
    padding-left: 24px;
    background: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9 1.5C6.515 1.5 4.5 3.515 4.5 6C4.5 9.375 9 16.5 9 16.5C9 16.5 13.5 9.375 13.5 6C13.5 3.515 11.485 1.5 9 1.5ZM9 7.875C7.965 7.875 7.125 7.035 7.125 6C7.125 4.965 7.965 4.125 9 4.125C10.035 4.125 10.875 4.965 10.875 6C10.875 7.035 10.035 7.875 9 7.875Z" fill="%2364768C"/></svg>') no-repeat left 3px;
    line-height: 1.6;
}

.item-address__lines p {
    margin: 0;
    padding: 0;
}

.item-address__dost {
    display: block;
    font-size: 13px;
    color: #64768C;
    padding-top: 4px;
    padding-left: 24px;
}

.item-contact__tg {
    display: block;
    text-decoration: none;
    color: #394E67;
    padding: 2px 0;
    padding-left: 26px;
    line-height: 22px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 48 48" fill="none"><path d="M41.4193 7.30899C41.4193 7.30899 45.3046 5.79399 44.9808 9.47328C44.8729 10.9883 43.9016 16.2908 43.1461 22.0262L40.5559 39.0159C40.5559 39.0159 40.3401 41.5048 38.3974 41.9377C36.4547 42.3705 33.5408 40.4227 33.0011 39.9898C32.5694 39.6652 24.9068 34.7955 22.2086 32.4148C21.4531 31.7655 20.5897 30.4669 22.3165 28.9519L33.6487 18.1305C34.9438 16.8319 36.2389 13.8019 30.8426 17.4812L15.7331 27.7616C15.7331 27.7616 14.0063 28.8437 10.7686 27.8698L3.75342 25.7055C3.75342 25.7055 1.16321 24.0823 5.58815 22.459C16.3807 17.3729 29.6555 12.1786 41.4193 7.30899Z" fill="%2364768C"/></svg>') no-repeat left center;
}

.item-contact__tg:hover,
.item-contact__max:hover {
    color: #068AD0;
}

.item-contact__max {
    display: block;
    text-decoration: none;
    color: #394E67;
    padding: 2px 0;
    padding-left: 26px;
    line-height: 22px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 720 720"><path fill="%2364768C" d="M350.4,9.6C141.8,20.5,4.1,184.1,12.8,390.4c3.8,90.3,40.1,168,48.7,253.7,2.2,22.2-4.2,49.6,21.4,59.3,31.5,11.9,79.8-8.1,106.2-26.4,9-6.1,17.6-13.2,24.2-22,27.3,18.1,53.2,35.6,85.7,43.4,143.1,34.3,299.9-44.2,369.6-170.3C799.6,291.2,622.5-4.6,350.4,9.6h0ZM269.4,504c-11.3,8.8-22.2,20.8-34.7,27.7-18.1,9.7-23.7-.4-30.5-16.4-21.4-50.9-24-137.6-11.5-190.9,16.8-72.5,72.9-136.3,150-143.1,78-6.9,150.4,32.7,183.1,104.2,72.4,159.1-112.9,316.2-256.4,218.6h0Z"/></svg>') no-repeat left center;
}

/* Артикул: перенос длинных значений */
.custom-table__line-td.custom-table__td--2 {
    word-break: break-all;
}

/* Кнопка "В корзину" — зелёная после добавления */
/* Зелёная кнопка при добавлении в корзину */
.btn-site.add-cart.active {
    background: #27AE60 !important;
}
.btn-site.add-cart.active:hover {
    background: #219a52 !important;
}

/* Убираем стрелки у input[type=number] */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Toast-уведомление корзины */
#cart-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 14px 22px;
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
}
#cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}
#cart-toast.toast-add    { background: #27AE60; }
#cart-toast.toast-remove { background: #E74C3C; }
