.b-basket {
    display: flex;
    justify-content: space-between;
    margin-bottom: 100px;
}
 
#basket-root button {
    text-transform: uppercase;
    border: none;
}

.basket__order {
    min-width: 313px; 
    max-width: 313px;
    padding: 20px;
    border: 1px solid #ededed;
    border-radius: 12px;
    margin-left: 30px;
    height: max-content;
}

.basket__line:nth-child(1) .basket__item {
    color: #999999;
}

.basket__inner {
    width: 100%;
}

.basket__line {
    display: flex;
    position: relative;
    align-items: center;
}

.basket__line:not(:nth-last-child(1)) {
    margin-bottom: 20px;
}

.basket__line:nth-child(1) {
    border-bottom: 1px solid #ededed;
    padding-bottom: 10px;
    justify-content: left;
}

.basket__line:nth-child(1) .basket__item:nth-child(1) {
    flex-basis: 55%;
}

.basket__line:nth-child(1) .basket__item:nth-child(2), .basket__line:nth-child(1) .basket__item:nth-child(6) {
    flex-basis: 0;
}

.basket__line:nth-child(1) .basket__item:nth-child(3), .basket__line:nth-child(1) .basket__item:nth-child(4),
.basket__line:nth-child(1) .basket__item:nth-child(5) {
    flex-basis: 15%;
}

.basket__line:not(:nth-child(1)) .basket__item:nth-child(1) {
    flex-basis: 15%;
}

.basket__line:not(:nth-child(1)) .basket__item:nth-child(2) {
    flex-basis: 40%;
}

.basket__line:not(:nth-child(1)) .basket__item:nth-child(3),
.basket__line:not(:nth-child(1)) .basket__item:nth-child(4),
.basket__line:not(:nth-child(1)) .basket__item:nth-child(5) {
    flex-basis: 15%;
}

.basket__img, .basket__img img {
    max-width: 120px;
    max-height: 120px;
}

.basket__img {
    transition: .3s;
    position: relative;
}

.basket__img:hover {
    cursor: pointer;
}

.basket__img:before {
    position: absolute;
    content:"";
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,.8);
    transition: .3s;
    opacity: 0;
}

.basket__img:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-position: center;
    width: 20px;
    height: 20px;
    background-size: 100%;
    background-repeat: no-repeat;
    background-image: url("./img/eye.svg");
    transition: .3s;
    z-index: 1;
    opacity: 0;
}

.basket__img:hover:before,
.basket__img:hover:after {
    opacity: 1;
}

.basket__item-counter {
    display: flex;
    min-height: 33px;
    max-height: 33px;
    max-width: 109px;
    min-width: 109px;
    background: #F8F8F8;
    border: 1px solid #ECECEC;
    border-radius: 3px;
}

.basket__item-name {
    transition: .1s;
}

.basket__item-counter-minus, .basket__item-counter-plus {
    padding: 0px 9px;
    color: #7a7a7a;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border: none;
    outline: 1px solid transparent;
    background: #fafafa;
}

.basket__item-counter-plus:hover {
    color: #FF6D00;
}

.basket__item-counter input {
    border: none;
    text-align: center;
    max-width: 45px;
}

.basket__item-counter input::-webkit-outer-spin-button,
.basket__item-counter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.basket__item-counter-minus {
    position: relative;
}

.basket__price {
    font-size: 13px;
}

.basket__cost {
    font-size: 16px;
    font-weight: 600;
}

.basket__item-name {
    color: #333333;
}

.basket__item-name:hover {
    color: #FF6D00;
}

.basket__item-counter-minus:before {
    position: absolute;
    content: '';
    height: 1px;
    width: 11px;
    background: #333333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.basket__item-counter-minus:hover:before {
    background: #FF6D00;
}

.basket__item-counter input:hover, .basket__item-counter input:focus, .basket__item-counter input:focus-visible {
    background: #F8F8F8!important;
    border: none!important;
}

.basket__remove {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 16px;
    background-position: center;
    background-image: url("./img/close.svg");
    transition: .3s;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.basket__remove:hover {
    background-image: url("./img/close-orange.svg");
}

.basket__order h3 {
    margin-bottom: 15px;
    color: #333333;
}

.basket__order-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.basket__order-line-item:nth-child(1) {
    font-size: 15px;
    color: #999999;
}

.basket__order-line-item:nth-child(2) {
    font-size: 15px;
    color: #222222;
    font-weight: 500;
}

.basket-checkout-section-right {
    min-height: 108px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.basket-checkout-section-right .oneclickbuy {
    border-radius: 8px;
}

.basket-checkout-section-right button {
    width: 100%;
    border-radius: 8px;
}

.basket__order .basket-coupon-block-coupon-btn {
    position: absolute;
    top: 11px;
    right: 19px;
}

.basket__order .basket-coupon-block-field input {
    background: white;
}

@media (max-width: 1400px) {
    .basket__line:not(:nth-child(1)) .basket__item:nth-child(1) {
        flex-basis: 17%;
        margin-right: 15px;
    }

    .basket__line .basket__item:nth-child(1) {
        margin-right: 25px;
    }
}


@media (max-width: 1250px) {
    .b-basket {
        flex-direction: column;
        margin-bottom: 60px;
    }

    .basket__line:not(:nth-child(1)) .basket__item:nth-child(1) {
        flex-basis: 15%;
    }

    .basket__inner {
        margin-bottom: 30px;
    }

    .basket__order {
        min-width: 100%;
        max-width: 100%;
        padding: 20px;
        border: 1px solid #ededed;
        border-radius: 12px;
        margin-left: 0;
        height: max-content;
    }
}

@media (max-width: 991px) {
    .basket__line .basket__item:nth-child(3), .basket__line .basket__item:nth-child(4), .basket__line .basket__item:nth-child(5) {
        margin-left: 15px;
    }

    .basket__line:not(:nth-child(1)) .basket__item:nth-child(2) {
        flex-basis: 37%;
    }

    .basket__line:nth-child(1) .basket__item:nth-child(3), .basket__line:nth-child(1) .basket__item:nth-child(4), .basket__line:nth-child(1) .basket__item:nth-child(5), .basket__line:not(:nth-child(1)) .basket__item:nth-child(3), .basket__line:not(:nth-child(1)) .basket__item:nth-child(4), .basket__line:not(:nth-child(1)) .basket__item:nth-child(5) {
        flex-basis: 20%;
    }
}

@media (max-width: 768px) {

    .basket__aim .basket__item:nth-child(4) {
        margin-right: 10px;
    }

    .basket__remove {
        right: 0;
    }

    .basket__inner .basket__line:nth-child(1) {
        display: none;
    }
    .basket__aim {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        grid-column-gap: 1px;
        grid-row-gap: 1px;
    }

    .basket__aim .basket__item:nth-child(1) {grid-area: 1 / 1 / 8 / 2; margin-right: 20px; margin-bottom: 20px; }
    .basket__aim .basket__item:nth-child(2) {  grid-area: 1 / 2 / 5 / 4; }
    .basket__aim .basket__item:nth-child(3) {grid-area: 5 / 2 / 6 / 4; }
    .basket__aim .basket__item:nth-child(4) {  grid-area: 8 / 1 / 9 / 2; }
    .basket__aim .basket__item:nth-child(5) { grid-area: 8 / 2 / 9 / 4; }
    .basket__remove { grid-area: 8 / 3 / 9 / 4;}

    .basket__line .basket__item:nth-child(3), .basket__line .basket__item:nth-child(4), .basket__line .basket__item:nth-child(5) {
        margin-left: 0px;
    }

    .basket__item-name {
        max-height: 75px;
        min-height: 75px;
        overflow: hidden;
    }

    .basket__img {
        max-width: 100%;
        max-height: 100%;
    }

    .basket__line:not(:nth-last-child(1)) {
        margin-bottom: 35px;
    }

    .b-basket {
        margin-bottom: 50px;
    }
	
}
.basket-back.font_xs {
	display: none;
}