header .action-item--icon {
    position: relative;
}

header .count_pc_items {
    background: #023E84;
    color: #fff;
    width: 18px;
    height: 18px;
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    top: -12px;
    left: calc(50% - 7px);
    font-size: 12px;
    font-weight: 500;
}


/**FLY**/

.cart-header-block:has(.loaded) {
    width: 400px;
    height: auto;
    padding: 0;
}

.cart-content-inner {
    display: none;
}

.cart-content-inner.empty {
    display: block;
}

.cart-header-block:not(:has(.loaded)) {
    right: 0;
    top: 141px;
}

.cart-content-inner.loaded {
    display: block;
}

/*  Страховка    */
.cart-header-block:has(.loaded) .empty {
    display: none;
}

/*  Страховка    */

.cart-content:has(.loaded) {
    height: 100%;
}

.cart-content--head {
    display: none;
}

.loaded .cart-content--head {
    display: block;
    padding: 18px 24px 15px 20px;
}

.cart-content--title {
    font-family: 'Source Serif 4 48pt';
    font-weight: 500;
    font-size: 24px;
}

.cart-content--close {
    font-size: 14px;
    font-family: 'Inter', Arial, sans-serif;
    font-weight: 300;

    display: flex;
    gap: 16px;
    align-items: center;
}

.cart-content--close .bi {
    font-size: 20px;
}

.cart-content--body {
    max-height: 275px;
    overflow-y: auto;
    padding: 2px 24px 2px 20px;
}

@media screen and (max-width: 1199px) {
    .phone-header-block, .search-header-block, .cart-header-block {
        top: 70px;
    }
}

@media screen and (max-width: 767px) {
    .phone-header-block, .search-header-block, .cart-header-block {
        top: 70px;
    }

    .cart-header-block:has(.loaded) {
        right: 0;
        width: 100%;
        height: calc(100vh - 70px);
    }

    .cart-content .loaded {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .cart-content--body {
        max-height: calc(100vh - 340px);
    }

    .cart-content--footer {
        margin-top: auto;
    }
}


/**---**/
.basket_fly {
    gap: 5px;
    display: flex;
    flex-direction: column;
}

.basket_fly-item {
    position: relative;
    min-height: 100px;
    height: auto;
    padding: 10px;
    box-shadow: 0 2px 10px 0 #0000001A;
}

.basket_fly-item--inner {
    grid-template-columns: 80px 1fr;
    gap: 3.5%;
}

.basket_fly-item img {
    max-width: 100%;
}

.basket_fly-item-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding-bottom: 12px;
    gap: 10px;
}

.item-info--title {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-wrap-style: balance;
    text-align: left;
}

.basket_fly-counter {
    display: flex;
    align-items: center;
    gap: 20px;
}

.basket_fly-counter .count-select {
    width: 65px;
    height: 100%;
    max-height: 65px;
}

.basket_fly-counter .counter {
    height: 30px;
}

.basket_fly-counter .counter-btn {
    flex-basis: 25px;
}

.basket_fly-counter .counter-field {
    flex-basis: 30px;
}

.basket_fly-counter .counter-field {
    font-size: 14px;
}

.basket_fly-item--action-price {
    gap: 35px;
}

.basket_fly-prices {
    flex-grow: 1;
    gap: 20px;
}

.basket_fly .prices {
    text-align: left;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
}

.basket_fly .prices span {
    font-size: 10px;
}

.basket_fly .prices .old-price {
    font-size: 12px;
    font-weight: 400;
    text-decoration: line-through;
    color: #9E9E9E;
}

.basket_fly .prices .price {
    font-size: 12px;
    font-weight: 500;
}

.basket_fly-action {
    font-size: 13px;
    grid-template: auto / minmax(100px, 100%) 80px;
    gap: 15px;
}

.basket_fly-item--remove {
    display: inline-flex;
    align-items: center;
    justify-content: space-around;
    letter-spacing: -1px;
    font-size: 12px;
    position: absolute;
    width: 34px;
    height: 34px;
    right: 4px;
    top: 0;
}

/**----**/
.cart-content--footer {
    padding: 20px;
}

.cart-content--summary {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 18px;
}

.cart-content--summary-title {
    font-size: 32px;
    line-height: 1.2;
    font-weight: 300;
    font-family: 'Source Serif 4 48pt', serif;
}

.cart-content--summary .prices .old-price {
    font-size: 18px;
    font-weight: 400;
    text-decoration: line-through;
    color: #9E9E9E;
}

.cart-content--summary .prices {
    display: flex;
    align-items: end;
    gap: 12px;
}

.cart-content--summary .prices .price {
    font-size: 22px;
    font-weight: 500;
}

.basket-btn-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.basket-btn-row .btn {
    padding: 10px 0;
}

.basket-btn-row .bi-reply {
    transform: scaleX(-1);
}


    /**OTHER**/
.basket_fly-item-info {
    padding-bottom: 8px;
}


.right-icons .cart-block .basket_fly-item-info a {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-wrap-style: balance;
    text-align: left;
}

.right-icons .cart-block .basket_fly-item-info a,
.right-icons .block-img a {
    margin-left: unset !important;
}

.basket_fly-item--remove {
    position: unset !important;
}

.right-icons .block-img img {
    height: auto !important;
}


.basket-fly_header {
    position: relative;
    top: 0 !important;
}


.block-basket-fly-short {
    position: relative;
}

.cart-link {
    font-size: 12px;
    text-align: center;
    min-width: 50px;
    margin-left: 20px;
}

.cart-block.visible.not-anima {
    animation-name: slideDown_0 !important;
}


@keyframes slideDown_0 {
    from {
        transform: translateY(0); /* Начинаем выше шапки */
        opacity: 1;
    }
    to {
        transform: translateY(0); /* Конечное положение под шапкой */
        opacity: 1;
    }
}