.basket {
    margin-top: 35px;
}

.basket__box-2 > div:first-child {
    position: sticky;
    top: 160px;
}

.header-bottom {
    justify-content: flex-end;
}
.favorite-count, .basket-count__footer {
    background: #0085cf;
    color: #747474;
    font-weight: 400;
    font-size: 12px;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    padding: 0 4px;
    line-height: 1;
    position: absolute;
    right: 0;
    top: -10px
}

.actions-header__quantity, .favorite-count {
    background: linear-gradient(white, white) padding-box, /* внутренний фон */ linear-gradient(224.81deg, #06D1FF 13.77%, #02A5FF 85.83%) border-box;
    border: 2px solid transparent;
    width: 22px;
    height: 22px;
}

.actions-header__quantity span {
    color: #747474;
    font-weight: 400;
    font-size: 12px;
}

.actions-header__user svg {
    width: 40px;
    height: 40px;
}

.basket-title {
    background: #F3F5F7;
    margin-bottom: 45px;
}

.basket__wrap-title {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-block: 22px;
}

.basket__buttons, .basket__title {
    margin: 0;
}

.basket__buttons {
    gap: 10px;
}

.basket__buttons button {
    background: white;
    border: 1px solid var(--Line-Generic, #0000001A);
    border-radius: 8px;
    padding: 9px 16px;
    font-size: 13px;
}

.basket-product__img {
    max-width: 93px;
    min-height: unset;
    height: 100%;
    max-height: 64px;
}

.basket-product__sub-title div {
    font-size: 14px;
}

.basket-product__sub-title div:nth-child(2) {
    padding: 7px 10px;
    background: #F0F4F7;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.basket-product {
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F1F1;
}

.basket-product__price, .basket-product__quantity {
    display: flex;
    align-items: center;
    font-size: 12px;
    position: relative;
    justify-content: center;
}

.quantity__quantity--basket-product {
    margin: 0;
    padding: 0 6px;
}

.quantity__quantity--basket-product {
    background: #F0F4F7;
}

.quantity__quantity--basket-product .quantity__input input {
    background: #F0F4F7;
    font-size: 12px;
}

.basket-product__quantity .button-close {
    right: 0;
    position: absolute;
    opacity: 0.2;
}

.basket-product:not(:last-child) {
    max-resolution: 0 0 14px 0;
}

.butafor {
    height: 110px;
}

.order {
    background: none;
    border: 1px solid #0000001A;
    row-gap: 12px;
}

.order__title::after {
    content: unset;
}

.order-result {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 16px;
}

.order-result__summ {
    font-size: 20px;
    font-weight: 900;
}

.order__button {
    max-width: 100%;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile_footer {
    display: none;
}

.link_wrap{
    display: flex;
    gap: 16px;
    padding-right: 50px;
}
.link_wrap a{
    font-weight: 400;
    font-size: 12px;
    leading-trim: NONE;
    line-height: 100%;
    letter-spacing: 0px;
    color: #9d9d9d;
}
.footer-bottom-top__links a{
    font-family: Fira Sans;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: align-items;
    margin-right: 16px;
}

.coop, .coop-mobile {
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #9D9D9D;
}

.coop-mobile {
    display: none;
}

.footer-top__logo {
    font-size: 14px;
}

.footer-bottom-top {
    padding: 40px 0;
}
.footer-bottom-top__links{
    flex-direction: column;
    align-items: flex-start;
}

.footer-bottom-bottom {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.scroll-to-top.show {
    display: flex;
    animation: fadeInUp 0.3s
    ease;
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bigcolor, #0085cf);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s
    ease;
    box-shadow: 0 4px 12px rgba(0, 133, 207, 0.3);
}

.scroll-to-top:hover {
    background: #0073b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 133, 207, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
}

.menu-fuuter {
    justify-content: space-between;
}

.form__appearance {
    margin-bottom: 12px;
}

.form__wrapper.ur .form__line{
    margin-bottom: 12px;
}

.one-click__buy {
    border: 1px solid #CCCCCC
}

.mobile-total-cart-block {
    display: none;
}
@media screen and (max-width: 768px) {
    .header {
        margin: 0;
    }
    .basket-title {
        background: none;
    }
    .basket-product__img {
        display: none;
    }
    .basket__wrap-title {
        flex-direction: column;
        gap: 10px;
    }
    .basket-count__footer {
        background: linear-gradient(white, white) padding-box, /* внутренний фон */ linear-gradient(224.81deg, #06D1FF 13.77%, #02A5FF 85.83%) border-box;
        border: 2px solid transparent;
    }
    .basket-product__sub-title svg {
        display: none;
    }

    .basket-product__sub-title div:nth-child(2) {
        width: max-content;
    }
    .mobile-total-cart-block {
        display: block;
        background: white;
        position: fixed;
        width: 100%;
        left: 0;
        bottom: 60px;
        z-index: 100;
    }
    .buttons-mobile__basket {
        display: flex;
        gap: 9px;
    }

    .order__button {
        font-size: 12px;
    }

    .mobile-total-cart-block .order {
        border-radius: 0;
    }
}

@media (max-width: 550px) {
    .desctop_footer{
        display: none;
    }
    .mobile_footer{
        display: block;
    }
    .footer-bottom-top__text{
        flex-direction: row;
        justify-content: space-between;
    }
    .contact_wrap.mobile_footer{
        display: flex;
        flex-direction: column-reverse;
        gap: 10px;
        align-content: flex-start;
        align-items: flex-start;
        margin-bottom: 0;
    }
    .footer-top__logo img {
        width: 154px;
        height: 32px;
    }
    .contact_wrap.mobile_footer a{
        font-family: Open Sans;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0px;
    }
    .footer-bottom-top{
        flex-direction: column;
        align-items: flex-start;
    }
    .contact_wrap{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .footer-bottom-top__links a{
        font-family: Open Sans;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0px;
    }
    .coop{
        font-family: Open Sans;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0px;
    }
    .wrap_adress{
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .wrap_adress .coop{
        order: 1;
    }
    .wrap_adress b{
        order: 3;
        font-family: Open Sans;
        font-weight: 600;
        font-size: 12px;
        line-height: 100%;
        letter-spacing: 0px;
        margin-top: 31px;
        margin-bottom: 42px;

    }
    .wrap_adress .link_wrap{
        order: 2;
        margin-top: 12px;
    }
    .link_wrap a{
        font-family: Open Sans;
        font-weight: 400;
        font-size: 10px;
        line-height: 100%;
        letter-spacing: 0px;
    }

    .coop {
        color: #000000;
        margin-bottom: 12px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .order-page__order {
        background: #FFFFFF;
    }
    .footer-top__logo {
        display: none;
    }
    .scroll-to-top {
        bottom: 125px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    .mobile-total-order-block {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    }

    /* Добавляем отступ снизу для футера, чтобы он не перекрывался мобильным блоком заказа */
    .footer {
        padding-bottom: 200px; /* Высота мобильного блока заказа + небольшой отступ */
    }
    .payment-methods-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .payment-method-label {
        padding: 15px;
        min-height: 100px;
    }

    .payment-method-title {
        font-size: 15px;
    }

    .payment-method-description {
        font-size: 13px;
    }
    .order-buttons .form__buttons {
        flex-direction: column;
        gap: 15px;
    }
    .order-step .buttons-triger button {
        font-size: 22px;
    }

    .delivery-type {
        flex-direction: column;
        gap: 15px;
    }

    .order-desktop {
        display: none;
    }
    .order-item.result {
        align-items: flex-end;
        flex-direction: row;
    }
    .order-button {
        margin-bottom: 0;
    }
    .order-box {
        padding: 0;
        border: 0;
    }
    .order-content {
        row-gap: 7px;
    }
    .mobile-total-order-block .order {
        max-width: 100%;
        box-shadow: 0px 1px 8px 3px rgba(0, 0, 0, 0.15), 0px 1px 3px rgba(0, 0, 0, 0.3);
    }
    .footer-bottom-bottom {
        flex-direction: column;
    }
    .link_wrap {
        flex-direction: column;
    }
}