.cart {
    margin-bottom: 91px;
    display: flex;
    justify-content: space-between;
    gap: 0.5%;

    padding-bottom: 30px;
    border-bottom: 1px solid var(--Black, #101010);
}

.cart-title {
    padding-top: 27px;
    margin-bottom: 30px;

    padding-bottom: 27px;
    border-bottom: 1px solid var(--Black, #101010);
    .title {
        font-size: 64px;
    }

    .checkbox-wrapper {
        margin-right: 34px;
    }
}



.cart-title__amount {
    color: var(--Grey, #b2b2b2);

    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%; /* 27px */
}

.cart-title__header,
.cart-title__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item__cover .new-item__preview {
    max-width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-title__header {
    margin-bottom: 25px;
}

.cart-title__icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-title__ui {
    display: flex;
}

.plus-minus__item {
    width: 24px;
    height: 24px;
    background-position: center;
    background-size: contain;
    align-self: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.plus-minus__minus {
    background-image: url("../images/minus.svg");
}

.plus-minus__plus {
    background-image: url("../images/plus.svg");
}

.plus-minus__content {
    text-align: center;
    input {
        background-color: transparent;
        border: 0;
        outline: none;
        max-width: 100%;
        text-align: center;
        text-overflow: ellipsis;
    }
}

.plus-minus {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
}

.cart__items {
    display: flex;
    flex-direction: column;
    gap: 8.3px;
    max-width: calc(100% / 8 * 6);
    width: 100%;
}

.cart-item {
    display: flex;
    align-items: center;
    border-radius: 5px;
    background: #fff;
    margin-bottom: 10px;
    padding: 10px 11px;

    .purchases-item__value {
        font-size: 24px;
        margin: 0;
        color: #000;
        font-style: normal;
        font-weight: 400;
        line-height: normal;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .purchases-item__key {
        line-height: 80%;
        margin-bottom: 3px;
        margin-top: 0;

        color: var(--Grey, #b2b2b2);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
    }
}

.plus-minus__content {
    width: 100%;
    display: flex;
    justify-content: space-around;
    .purchases-item__key {
        margin-bottom: 4px;
    }
}

.cart-item__span {
    border-right: 1px solid #b2b2b2;
}

.cart-item__span:nth-child(6) {
    border-right: none !important;
}

.cart-item__cover {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.cart-item__toggler {
    width: 4.7%;
}

.cart-item__cover {
    margin-right: 1.9%;
}

.cart-item__name {
    width: 21.1%;
    margin-right: 2.8%;
}

.cart-item__price {
    width: 13.6%;
    /*margin-right: 2.9%;*/
}

.cart-item__amount {
    width: 18.5%;
    margin-right: 2.9%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-item__del-btn {
    margin-left: auto;
    padding-top: 5px;
}

.delete-btn {
    width: 24px;
    height: 24px;
    background-image: url("../images/delete.svg");
    background-position: center;
    background-size: cover;
    background-color: transparent;

    border: none;
}

.cart__promo-code {
    display: flex;
    justify-content: space-between;
    max-width: 100%;
    padding: 24px 31px 30px 30px;
    border-radius: 10px;
    background: #083eff;

    .promo-code__title {
        margin-bottom: 0;
    }

    .form-input {
        padding-top: 7px;
        width: 60%;
        * + input {
            margin-left: 21px;
        }
    }
}

.cart-result__title {
    color: var(--Black, #101010);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    margin: 0;
    margin-bottom: 19px;
}

.cart-result__card {
    padding: 16px 20px 11px 20px;
    border-radius: 5px;
    background: var(--White, #fff);
    margin-bottom: 21px;

    color: #000;
}

.cart-result {
    width: 100%;
}

.cart-result__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 17px;
}

.cart__info {
    width: 100%;
    max-width: calc(100% / 8 * 2);
}

.cart-result__span {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--Grey, #b2b2b2);
    margin-bottom: 15px;
}

.cart-result__span:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cart-result__description {
    color: var(--Grey, #b2b2b2);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
}

.cart-result__key {
    color: var(--Grey, #b2b2b2);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */

    margin: 0;
}

.cart-result__value {
    color: var(--Black, #101010);
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;

    margin: 0;
}

.cart-result__description {
    color: var(--Grey, #b2b2b2);
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 16.8px */
}

.notification-modal__icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.notification-modal {
    width: 665px;
    height: 283px;

    display: flex;
    align-items: center;
    flex-direction: column;

    padding: 51px 52px 50px 55px;

    .modal__title {
        margin-bottom: 13px;
    }

    .modal__subtitle {
        color: var(--Gray_black-background, #57585a);
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%; /* 19.6px */

        max-width: 350px;
        text-align: center;

        margin-bottom: 31px;
    }
}

@media (max-width: 1440px) {
    .cart-item__name {
        width: 25.1%;
        margin-right: 1.8%;
    }

    .cart-item__price {
        width: 16.6%;
    }

    .cart-item__amount {
        margin-right: 0.9%;
    }
}

@media (max-width: 1340px) {
    .cart {
        .container {
            flex-direction: column;
        }
    }

    .cart-title .title {
        font-size: 48px;
    }

    .cart__items {
        max-width: calc(100% / 12 * 8);
        flex-direction: row;
        flex-wrap: wrap;
    }

    .cart__info {
        transform: none;
        max-width: calc(100% / 12 * 4);
    }

    .cart-item__toggler {
        width: auto;
        align-self: center;
    }

    .cart-item {
        width: 100%;
        padding: 8px 8px 8px 8px;
        display: grid;
        grid-template-columns: 32px 86px auto auto 23px;
        grid-template-rows: auto auto;
        align-items: normal;
        column-gap: 6px;
        row-gap: 15px;
        .purchases-item__value {
            font-size: 16px;
        }

        .purchases-item__key {
            font-size: 12px;
        }
    }

    .cart-item__span {
        width: auto;
        align-self: center;
    }

    .cart__promo-code {
        width: 100%;
    }

    .cart-item__cover {
        height: 72px;
    }

    .cart-item__amount {
        position: relative;
        grid-row: 2;
        grid-column: 3;

        .plus-minus {
            padding-top: 8px;
        }
    }

    .cart-item__result {
        grid-row: 2;
        grid-column: 4;
    }

    .plus-minus {
        gap: 19.2px;
    }

    .plus-minus__content {
        width: 32px;
    }

    .plus-minus__content {
        .purchases-item__key {
            padding-left: 0;
            margin-bottom: 0;
            position: absolute;
            top: 0;
            left: 0;
            transform: translateY(-100%);
        }
    }

    .cart__promo-code {
        margin-top: 21px;
        margin-bottom: 23px;
        padding: 12px 16px 16px 16px;
        flex-direction: column;
        gap: 6px;
        & .form-input {
            width: 100%;
            * + input {
                margin-left: 8px;
            }
        }
    }

    .cart-result__card {
        padding: 12px 20px 1px 15px;
    }

    .cart-result__title {
        margin-bottom: 9px;
    }

    .cart-result__span {
        max-width: 46.7%;
        padding-bottom: 10px;
        margin-bottom: 13px;
    }

    .cart-result__key {
        font-size: 10px;
    }

    .cart-result__description {
        max-width: 360px;
    }

    .cart {
        margin-bottom: 27px;
    }
}

@media (max-width: 964px) {
    .cart {
        flex-direction: column;
        gap: 16px;
    }

    .cart-title .title {
        font-size: 32px;
    }

    .cart > * {
        max-width: 100%;
    }

    .cart-item {
        display: flex;
        row-gap: 0;
        column-gap: 0;
    }

    .cart-item__span {
        padding-right: 1.8%;
    }

    .cart-item__span {
        height: auto;
    }

    .cart-item__cover {
        margin-right: 0.9%;
    }

    .cart-title {
        padding-top: 13px;
        margin-bottom: 23px;
        .page-title {
            margin-bottom: 11px;
        }
    }

    .notification-modal {
        width: 343px;
        height: 169px;
        padding: 16px;
        padding-top: 11px;

        .modal__title {
            margin-bottom: 23px;
        }

        .modal__subtitle {
            margin-bottom: 12px;
        }
    }

    .notification-modal__icon svg {
        width: 48px;
        height: 48px;
    }

    .cart-item__del-btn {
        align-self: center;
    }

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

@media (max-width: 712px) {
    .cart-item {
        display: grid;
        grid-template-columns: auto 1fr auto;
        grid-template-rows: repeat(4, auto);
        row-gap: 5px;
    }

    .cart-title .title {
        font-size: 20px;
    }

    .cart-item__cover {
        grid-column: 1;
    }

    .cart-item__span {
        grid-column: 2;
        border-right: none;
    }

    .cart-item__name {
        grid-row: 1;
    }

    .cart-item__price {
        grid-row: 2;
    }

    .cart-item__amount {
        grid-row: 3;
        justify-self: flex-start;
    }

    .cart-item__result {
        grid-row: 4;
    }

    .cart-item__del-btn {
        grid-row: 1;
        grid-column: 3;
    }
}
