.header-middle .cart-header {
    padding: 5px 10px;
    gap: 8px;
    /* justify-content: space-around; */
}

.tns-controls {
    position: relative;
    z-index: 1;
}

.configurator__input {
    display: none;
}

.configurator__control {
    margin-top: 8px;
}

.configurator__btn-copy:hover {
    color: #b4b3b3;
    opacity: .7
}

.cart-step-one-sum-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}
.p-10 {
    padding: 10px;
}
/* .items-wrapper section {
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    padding: 16px;
} */
.items-wrapper .cart-items {
    gap: 16px;
    margin-bottom: 16px;
    /* border: 1px solid #d2d2d2; */
    /* border-radius: 10px; */
}
.items-wrapper .cart-items .cart-item {
    padding: 20px;
}
.cart-step-one .cart-actions-wrapper {
    padding: 10px 10px 0;
    margin-bottom: 20px;
}
.contact-form-block__new > .cart-step-one-sum-price {
    border: 1px solid #d2d2d2;
    border-radius: 10px;
    padding: 20px;
}
.contact-form-block__userdata {
    gap: 10px;
}
.cart-app h3 {
    margin: 0 0 10px;
}
.cart-step-contact {
    display: none;
}

.cart-step-delivery {
    display: none;
}

.cart-step-payment {
    display: none;
}

.header-cart-block__minicart::after {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    height: 16px;
    margin: 18px 0px 0 -13px;
    border: 3px solid #ccc;
    border-top-color: #e20714;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}
.price-items .actions__item .compare-icons{
    align-items: center;
    margin-top: 8px;
    width: fit-content;
}

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

    100% {
        transform: rotate(360deg);
    }
}

.header-cart-block__minicart.loading::after {
    display: block;
}

.product-price-block__stock {
    display: flex;
}

.product-price-block__stock_mobile {
    display: none;
}

.warehouses-product {
    display: flex;
}

.warehouses-product_mobile {
    display: none;
}

.product-compare {
    display: flex;
}

.product-compare_mobile {
    display: none;
}

.compare-icon-add__image {
    filter: invert(0%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(0%) contrast(100%);
}

.b24-form-header-title {
    max-width: 80%;
}
.catalog-list__icon {
    filter: invert();
}

.container:has(.catalog-block.catalog-block--show) .catalog-button::before {
    transform: rotate(180deg);
    top: 36%;
}

.container:has(.header-menu--show) .button-more {
    background-image: url(/assets/images/yellow-hamburger-close.svg);
}

.colored-ulogin:hover {
    filter: invert(45%) sepia(93%) saturate(4694%) hue-rotate(3deg) brightness(101%) contrast(101%);
}


/* Базовые стили для контейнера прелоадера */
.preloader {
    min-height: 300px;
    box-sizing: border-box;
}

.preloader .page-title .text-center {
    margin-top: 0;
}

/* Общий стиль для скелетонов с эффектом шима */
.skeleton {
    position: relative;
    overflow: hidden;
    background: #eee;
    border-radius: 4px;
}

/* Псевдоэлемент для анимации шима */
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 150%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, #a49a9a05, rgb(190 189 189 / 60%), transparent);
    animation: shimmer 1.5s infinite;
}

/* Анимация шима */
@keyframes shimmer {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(150%);
    }
}

/* Определение размеров для отдельных скелетон-блоков */
.skeleton-icon {
    width: 20px;
    height: 20px;
    margin: 10px;
}

.skeleton-label {
    width: 60%;
    height: 20px;
    border-radius: 50%;
    margin: 10px auto;
}

.skeleton-input {
    width: 80%;
    height: 40px;
    margin: 10px auto;
}

.skeleton-button {
    width: 50%;
    height: 40px;
    margin: 10px auto;
}

.skeleton-link {
    width: 40%;
    height: 20px;
    margin: 10px auto;
}

body .basket__link {
    color: inherit;
    text-decoration: none;
}
body .basket__link:hover {
    color: #ea5a0c;
}

body .auth__error {
    height: 16px;
    font-size: 14px;
    color: red;
}

.button-favorite:has(path[fill="#ffffff"]) {
    background-color: #f56618;
}

.button-favorite:has(path[fill="#ffffff"]):hover {
    background-color: #e95a0c;
}

.loader-btn {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin-btn 0.8s linear infinite;
    vertical-align: middle;
}
.items-wrapper__basket-frame {
    grid-template-columns: 2fr 1fr;
}

/* 1. Скрываем дефолтный чекбокс */
.cart-side-block__check {
    appearance: none;
    -webkit-appearance: none;
    margin: 0; /* сброс отступов браузера */
    width: 16px;
    height: 16px;
    border: 1px solid #d2d2d2;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
  }
  
  /* 2. Состояние hover/focus для рамки */
  .cart-side-block__check:hover,
  .cart-side-block__check:focus {
    border-color: #b3b3b3;
    outline: none;
  }
  
  /* 3. Стили метки — чтобы текст был рядом с чекбоксом */
  .cart-side-block__label {
    font-weight: 400;
    font-size: 14px;
    color: #000;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    margin-left: 8px;
    user-select: none;
  }
  
  /* 4. Галочка при :checked */
  .cart-side-block__check:checked {
    border-color: #AAAAAA;
  }
  
  /* 5. Рисуем «галочку» псевдоэлементом */
  .cart-side-block__check:checked::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 5px;
    width: 4px;
    height: 8px;
    border-right: 2px solid #ff7f00;
    border-bottom: 2px solid #ff7f00;
    transform: rotate(45deg);
  }
  
  /* 6. Расположим вместе */
  .cart-side-block__item {
    display: flex;
    align-items: center;
  }

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

@media screen and (max-width: 980px) {
    .left-block-container-select-wrapper {
        display: block;
    }
}

@media screen and (max-width: 725px) {
    .product-price-block__stock {
        display: none;
    }

    .product-price-block__stock_mobile {
        display: flex;
        padding-top: 20px;
        padding-bottom: 0;
    }
}


@media screen and (max-width: 721px) {
    .product_detail__top-info {
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 720px) {
    .price-sorting-selector {
        margin-right: 10px;
        padding: 10px 2px;
    }

    .price-sorting-filter {
        padding: 10px;
        font-size: 16px;
    }

    .category-header {
        font-size: 1.3em;
    }

    .product-sale__link,
    .product_detail__top-info {
        justify-content: space-between;
    }

    .product-compare {
        display: none;
    }

    .product-compare_mobile {
        display: flex;
        padding: 0 8px;
    }

    .product_detail__identifiers {
        display: flex;
        flex-direction: column;
    }

    .compare-icon-add {
        border-radius: 30px;
        background-color: #ededed;
        padding: 10px;
    }

    .compare-icon-add,
    .compare-icon-get {
        width: 80px;
    }
}

.minicart__count {
    width: 20px;
    height: 20px;
    margin: 18px 0px 0 -13px;
    z-index: 1;
}
.header-cart-block__minicart {
    width: unset;
    height: 30px;
}
.minicart-wrapper__text {
    display: none;
}
@media screen and (max-width: 640px) {

    #login-modal {
        border-radius: 0;
    }

    .header-cart-block__minicart {
        font-size: 10px;
    }

    .header-cart-block__minicart::after {
        left: 80%;
        width: 12px;
        height: 12px;
    }

    .modal-mobile-close {
        width: 26px;
        margin-left: auto;
        width: 15px;
        height: 15px;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center center;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 15 15" fill="none"><path d="M0.314703 0.314703C0.414208 0.214947 0.532416 0.1358 0.662555 0.0817982C0.792695 0.0277962 0.93221 0 1.07311 0C1.21401 0 1.35352 0.0277962 1.48366 0.0817982C1.6138 0.1358 1.73201 0.214947 1.83152 0.314703L7.50028 5.98561L13.169 0.314703C13.2686 0.215108 13.3869 0.136104 13.517 0.0822038C13.6471 0.0283032 13.7866 0.000560843 13.9275 0.000560843C14.0683 0.000560843 14.2078 0.0283032 14.3379 0.0822038C14.468 0.136104 14.5863 0.215108 14.6859 0.314703C14.7855 0.414299 14.8645 0.532535 14.9184 0.662663C14.9723 0.79279 15 0.932261 15 1.07311C15 1.21396 14.9723 1.35343 14.9184 1.48356C14.8645 1.61368 14.7855 1.73192 14.6859 1.83152L9.01495 7.50028L14.6859 13.169C14.7855 13.2686 14.8645 13.3869 14.9184 13.517C14.9723 13.6471 15 13.7866 15 13.9275C15 14.0683 14.9723 14.2078 14.9184 14.3379C14.8645 14.468 14.7855 14.5863 14.6859 14.6859C14.5863 14.7855 14.468 14.8645 14.3379 14.9184C14.2078 14.9723 14.0683 15 13.9275 15C13.7866 15 13.6471 14.9723 13.517 14.9184C13.3869 14.8645 13.2686 14.7855 13.169 14.6859L7.50028 9.01495L1.83152 14.6859C1.73192 14.7855 1.61368 14.8645 1.48356 14.9184C1.35343 14.9723 1.21396 15 1.07311 15C0.932261 15 0.79279 14.9723 0.662663 14.9184C0.532535 14.8645 0.414299 14.7855 0.314703 14.6859C0.215108 14.5863 0.136104 14.468 0.0822038 14.3379C0.0283032 14.2078 0.000560843 14.0683 0.000560843 13.9275C0.000560843 13.7866 0.0283032 13.6471 0.0822038 13.517C0.136104 13.3869 0.215108 13.2686 0.314703 13.169L5.98561 7.50028L0.314703 1.83152C0.214947 1.73201 0.1358 1.6138 0.0817982 1.48366C0.0277962 1.35352 0 1.21401 0 1.07311C0 0.93221 0.0277962 0.792695 0.0817982 0.662555C0.1358 0.532416 0.214947 0.414208 0.314703 0.314703Z" fill="%23D3D3D3"/></svg>');
    }

    .modal-mobile-close:hover {
        cursor: pointer;
    }
}
@media screen and (max-width: 550px) {
    .price-sorting-wrapper__text {
        display: none;
    }
}

@media screen and (max-width: 520px) {

    /* .warehouses-block__shopavailability, .warehouses-block__cell {
        text-align: center;
    }
    .warehouses-product__title {
        padding: 0; width: 30%;
    }
    .warehouses-product__price { padding: 0px; width: 30%; text-align: center;width: 30%;} */
    .warehouses-product__image {
        display: none;
        max-height: auto;
        width: auto;
        max-width: 200px;
        width: 30%;
    }

    .warehouses-product {
        display: none;
    }

    .warehouses-product_mobile {
        display: flex;
    }
}
@media screen and (max-width: 980px) {
    .cart-step-one-sum-price__page2 {
        display: none;
    }
    .items-wrapper__basket-frame {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

@media screen and (min-width: 981px) {
    .left-block-container-select-wrapper {
        display: none;
    }
}