.basket-login {
    text-decoration: none;
    text-align: center;
    font: 400 14px/1.4 var(--font-family-onest);
    color: var(--text-color);
    /*padding-top: 6px;*/
    display: block;
    border-radius: 4px;
    background-color: #FFFFFF;
    padding-left: unset;
    padding-right: unset;
    position: relative;
}

.basket-login:hover {
    color: var(--text-color);
}

.basket-login__button {
    background-color: var(--background-color);
    text-decoration: none;
    text-align: center;
    font: 400 14px/1.4 var(--font-family-onest);
    color: var(--text-color);
    padding: 6px 12px;
    display: block;
    border-radius: 4px;
}

.basket-login__button:hover {
    color: var(--text-color);
    background-color: var(--background-color-hover);
}

.basket-login__text {
    display: none;
}

.basket-login__icon {
    display: inline-block;
    background: center/contain url('images/profile-min.svg');
    width: 18px;
    height: 18px;
}


.menu__login-block {
    position: relative;
}

.menu-dropdown {
    padding: 12px 0;
    width: 182px;
    position: absolute;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #FFFFFF;
    opacity: 0;
    overflow: hidden;
    top: 28px;
    right: 0;
    transition: all .3s linear;
    user-select: none;
    visibility: hidden;
    z-index: -1;
    display: flex;
    flex-direction: column;
    border: 1px solid #CAC9C9;
}

.menu-dropdown__item {
    font: 400 14px/1.4 var(--font-family-onest);
    color: var(--text-color);
    text-decoration: none;
    padding: 12px 63px 12px 24px;
}

.menu-dropdown__item:hover {
    color: var(--text-color);
    text-decoration: none;
    background-color: #F3EEF6;
}

.menu__login-block:hover.main-container {
    background: #201D1E40;
}

.basket-logout {
    text-align: center;
    font: 400 14px/1.4 var(--font-family-onest);
    color: var(--text-color);
    display: block;
    padding: 0 15px;
    border-radius: 4px;
}

.basket-logout:hover {
    color: #000000;
}

.menu__wrapper {
    display: flex;
    flex-direction: row-reverse;
    gap: 18px;
    align-items: center;
}

.menu__cart {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.menu__cart:hover {
    color: var(--text-color);
}

.menu__basket-icon {
    display: inline-block;
    width: 17px;
    height: 18px;
    background: center/contain url('/local/templates/market/components/bitrix/sale.basket.basket.line/header_basket/images/basket.svg');
    position: relative;
}

.menu__basket-text {
    font: 400 14px/1.4 var(--font-family-onest);
    color: var(--text-color);
    text-decoration: none;
    margin-top: 2px;
    display: none;
}

.menu__basket-num {
    font: 400 9px/1.4 var(--font-family-onest);
    color: #FFFFFF;
    text-decoration: none;
    background-color: #F5455C;
    border-radius: 26px;
    top: 0;
    right: 0;
    position: absolute;
    width: 10px;
    height: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bx-basket {
}

.basket-line-block-icon-cart {
    position: relative;
    margin-right: 10px;
}

.basket-line-block-icon-cart:after {
    position: absolute;
    top: -1px;
    left: -25px;
    display: block;
    width: 20px;
    height: 20px;
    content: '';
}

.basket-line-block-icon-cart:after {
    background: no-repeat center url('images/cart.svg');
}

.b-graylayer {
    bottom: 0;
    cursor: default;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    background: hsla(215, 8%, 44%, .2);
    opacity: 0;
    transition: visibility 0s linear .15s, opacity .15s ease-out;
    visibility: hidden;
    z-index: -1;
}

.b-graylayer.visible {
    visibility: visible;
    display: block;
    opacity: 1;
    backdrop-filter: blur(4px);
}

@media (max-width: 1023px) {
    .basket-login {
        display: none;
    }

    .menu__login-block.opened .menu-dropdown {
        opacity: 1;
        visibility: visible;
        z-index: 1;
    }

    .menu__login-block.opened .basket-login__icon {
        display: flex;
        background: center/contain url('images/close.svg');
        width: 18px;
        height: 19px;
    }

    .basket-login__icon_mobile {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .menu__wrapper {
        gap: 24px;
        flex-direction: row;
    }

    .menu__basket-icon {
        width: 24px;
        height: 25px;
    }

    .basket-login {
        font-size: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .basket-login__button {
        padding: 6px 30px;
    }

    .menu__basket-text {
        display: block;
    }

    .menu__basket-num {
        width: 14px;
        height: 14px;
    }

    .basket-login__icon,
    .basket-login__icon:hover {
        background-image: url('/local/templates/market/components/bitrix/sale.basket.basket.line/header_basket/images/profile.svg');
        width: 24px;
        height: 25px;
    }

    .basket-login__icon_mobile {
        display: none;
    }

    .bx-basket-fixed {
        position: fixed;
        z-index: 998;
        overflow: hidden;
        padding-top: 10px;
        width: 200px;
        border: 1px solid #F0F0F0;
        border-radius: 1px;
        background: #FFF;
        box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
    }

    .bx-basket-fixed.top {
        top: 10px
    }

    .bx-basket-fixed.right {
        right: 10px
    }

    .bx-basket-fixed.bottom {
        bottom: 10px
    }

    .bx-basket-fixed.left {
        left: 10px
    }

    .bx-basket-fixed.bx-max-height {
        top: 10px;
        bottom: 10px;
    }
}

@media screen and (min-width: 768px) {
    .menu-dropdown {
        top: 31px;
    }
}

@media screen and (min-width: 1024px) {
    .basket-login__text {
        padding-top: 6px;
        padding-bottom: 6px;
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .bx-basket-fixed {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 998;
        overflow: hidden;
        padding-top: 10px;
        border: 1px solid #F0F0F0;
        border-radius: 1px;
        background: #FFF;
        box-shadow: 0 7px 10px rgba(0, 0, 0, 0.15);
    }

    .bx-basket-fixed.vcenter {
        bottom: 10px;
        top: auto !important;
    }

    .bx-basket-item-list {
        display: none;
    }
}

.bx-basket-fixed .basket-line-block {
    margin-left: 10px;
}

.bx-basket-item-list {
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
    border-top: 1px solid #F7F7F7;
}

.bx-opener .bx-basket-item-list {
    padding-bottom: 75px;
}

.bx-max-height .bx-basket-item-list {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
}

.bx-closed .bx-basket-item-list {
    overflow: hidden;
    height: 20px;
}

.bx-basket-item-list-action {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    padding: 3px 0;
    height: 20px;
    background: #F7F7F7;
    color: #4F4F4F;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
    line-height: 14px;
    cursor: pointer;
}

.bx-basket-item-list-button-container {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    padding: 10px 0;
    border-top: 1px solid #F7F7F7;
    background: #FFF;
    text-align: center;
}

.bx-basket-item-list-container {
    overflow-y: auto;
    max-height: 100%
}

.bx-basket-item-list-item {
    position: relative;
    margin-bottom: 15px;
    padding-top: 15px;
    padding-right: 10px;
    padding-left: 10px;
    border-bottom: 1px solid #F7F7F7;
}

.bx-basket-item-list-container .bx-basket-item-list-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.bx-basket-item-list-item-status {
    margin: 0 10px 20px;
    padding: 3px;
    border-radius: 3px;
    background: #EBEBEB;
    text-align: center;
    white-space: normal;
    font-weight: bold;
    font-size: 12px;
    line-height: 16px;
}

.bx-basket-item-list-item-img {
    position: relative;
    padding-bottom: 5px;
    text-align: center;
}

.bx-basket-item-list-item-img img {
    max-width: 90px;
    height: auto;
    border: 1px solid #E6E6E6;
}

.bx-basket-item-list-item-name {
    padding-bottom: 5px;
}

.bx-basket-item-list-item-name a {
    font-size: 13px;
    line-height: 16px;
}

.bx-basket-item-list-item-remove {
    position: absolute;
    top: -7px;
    right: 10px;
    width: 20px;
    height: 20px;
    opacity: .5;
    cursor: pointer;
    transition: 250ms linear all;
}

.bx-basket-item-list-item-remove:after,
.bx-basket-item-list-item-remove:before {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background-color: #333;
    content: '';
    transform: translate(-50%, -50%);
}

.bx-basket-item-list-item-remove:after {
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
    -moz-transform: translate(-50%, -50%) rotate(45deg);
    -ms-transform: translate(-50%, -50%) rotate(45deg);
    -o-transform: translate(-50%, -50%) rotate(45deg);
    transform: translate(-50%, -50%) rotate(45deg);
}

.bx-basket-item-list-item-remove:before {
    -webkit-transform: translate(-50%, -50%) rotate(135deg);
    -moz-transform: translate(-50%, -50%) rotate(135deg);
    -ms-transform: translate(-50%, -50%) rotate(135deg);
    -o-transform: translate(-50%, -50%) rotate(135deg);
    transform: translate(-50%, -50%) rotate(135deg);
}

.bx-basket-item-list-item-remove:hover {
    opacity: .7;
}

.bx-basket-item-list-item-price-block {
    padding-bottom: 5px;
    font-size: 12px;
}

.bx-basket-item-list-item-price {
    display: inline-block;
    margin-right: 5px;
}

.bx-basket-item-list-item-price-old {
    display: inline-block;
    margin-right: 5px;
    color: #B0B0B0;
    text-decoration: line-through
}

.bx_cart_login_top .basket-line {
    line-height: 1.44em;
}