.basket {
    margin-top: 120px;
}

    .basket .title {
        margin-bottom: 40px;
        text-align: center;
    }

.basket__wrapper {
    display: flex;
}

.basket__content {
    flex: 0 1 65%;
    padding-right: 20px;
    border-right: 1px solid var(--color-blue);
    margin-right: 20px;
}

.content__item {
    display: flex;
    position: relative;
    padding: 10px;
    border-bottom: 1px solid var(--color-blue);
    margin-bottom: 30px;
    margin-top: 50px;
}


.delete-img {
    position: absolute;
    right: 20px;
    top: -40px;
    cursor: pointer;
}

.content__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.content__accessories {
    display: flex;
    flex-direction: column;
    gap: 0px !important;
}

.content__accessories-header {
    gap: 20px;
    margin-top: 20px;
}

.content__accessories-title {
    font-size: 12px;
    line-height: 140%;
}

.content__accessories img {
    width: 54px;
    height: 54px;
    object-fit: cover;
}

.content__accessories-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.content__img {
    flex: 0 1 36%;
    min-width: 320px;
    margin-right: 20px;
}

    .content__img img {
        width: 100%;
        object-fit: cover;
    }

.content__title {
    display: block;
    font-weight: 600;
    line-height: 140%;
}



.content__price {
    font-weight: 700;
    line-height: 130%;
}

.count-range {
    border-radius: 6px;
    width: 100px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .count-range a {
        background-color: transparent;
        flex: 0 0 33%;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
        color: var(--color-blue);
    }

    .count-range input {
        text-align: center;
        font-size: 18px;
        line-height: 130%;
        max-width: 57px
    }

    .count-range .button {
        font-size: 18px;
        cursor: pointer
    }

.content__info {
    padding-right: 15px;
    flex: 1 1 auto;
}

    .content__info > div {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .content__info .info__item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

        .content__info .info__item span {
            font-size: 14px;
            text-align: right;
            line-height: 145%;
        }

            .content__info .info__item span.content__shortDescription {
                font-size: 12px;
            }

.basket__wrapper form {
    display: flex;
    flex-direction: column;
}

.basket__wrapper .form__title {
    font-size: 20px;
    font-weight: 600;
}

.basket__wrapper form label {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px;
}

    .basket__wrapper form label input {
        transition: box-shadow 0.3s ease;
        border-bottom: 1px solid #1224405e;
    }

    .basket__wrapper form label:hover input {
        box-shadow: 2px 4px #1224405e;
        border-color: transparent;
    }

.basket__wrapper form input {
    padding: 20px;
    background-color: transparent;
    font-size: 20px;
    font-weight: 400;
    line-height: 130%;
    background: #F7F7F9;
    margin-top: 10px;
}

.basket__count {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    line-height: 140%;
    margin-bottom: 10px;
}



.basket__wrapper .order__btn {
    border-radius: 8px;
    background: var(--color-green);
    padding: 15px 30px;
    color: var(--color-white);
    transition: background 0.3s ease 0s;
    width: 100%;
    font-size: 18px;
}

    .basket__wrapper .order__btn:hover {
        background: var(--color-green-hover);
    }

.btn-modal {
    display: none;
}

.order-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 100%;
    height: 100vh;
    background: #fff;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

    .order-success.active {
        display: flex;
    }

.order-success__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 140%;
    max-width: 635px;
    margin-bottom: 30px;
}

.order-success__text, .order-succes__text-bottom span {
    font-size: 20px;
    font-weight: 400;
    line-height: 130%;
    max-width: 500px;
}

    .order-success__text p {
        margin-bottom: 20px;
    }

.order-succes__text-bottom {
    display: flex;
    align-items: center;
}


.basket__empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    margin: 180px auto;
    line-height: 130%;
}

    .basket__empty strong {
        font-weight: 700;
        font-size: 30px;
        margin-bottom: 15px;
    }

    .basket__empty p {
        font-weight: 400;
        font-size: 14px;
        margin: 8px 0 16px 0;
        text-align: center;
    }

    .basket__empty a {
        padding: 16px 50px;
        background-color: var(--color-green);
        color: var(--color-white);
        border-radius: 8px;
    }

@media (min-width: 1024.99px) {
    .basket-modal {
        position: sticky;
        pointer-events: auto;
        opacity: 1;
        max-width: inherit;
        flex: 0 1 33%;
        height: 100%;
        margin: 0;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
        z-index: 0;
        overflow: auto;
        top: 105px;
        transform: translateY(0);
    }

    .modal-close-btn {
        display: none;
    }

    .basket__count.mobile {
        display: none;
    }
}

@media (max-width: 1439.99px) {
    .basket__content {
        margin-right: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 1024.99px) {
    .basket__wrapper {
        flex-direction: column;
    }

    .basket__content {
        margin-right: 0;
        padding: 0;
        border: 0;
    }

    .content__item {
        padding: 10px 0;
        margin-bottom: 10px;
    }

    .modal-content .form__fields {
        display: none;
    }

    .btn-modal {
        display: block;
    }

    .modal.is-visible .form__fields {
        display: block;
    }

    .basket__fixed {
        width: 100%;
        background-color: #fff;
        z-index: 1000;
        margin-top: 10px;
    }

    .basket__count {
        font-size: 14px;
        font-weight: 700;
        line-height: 130%;
    }

    .basket__wrapper .order__btn {
        width: 100%;
    }
}

@media (max-width: 767.99px) {
    .basket {
        margin-top: 90px;
    }

        .basket .title {
            margin-bottom: 20px;
        }

    .content__item {
        margin-bottom: 5px;
        flex-direction: column;
    }



    .content__shortDescription {
        font-size: 14px;
        font-weight: 400;
        line-height: 120%;
    }


        .count-range input {
            font-size: 16px;
        }

    .content__img {
        flex: none;
        margin-right: 0px;
        margin-bottom: 10px;
    }
    .content__item {
        margin-top: 25px;
    }

    .delete-img {
        right: 0;
        width: 16px;
        height: 16px;
    }

    .basket__wrapper .order__btn {
        font-size: 16px;
    }

    .basket__wrapper .modal-content {
        margin-top: 70px;
    }

    .basket__wrapper .form__title {
        font-size: 16px;
    }

    .basket__wrapper form label input {
        font-size: 16px;
    }

    .order-success__title {
        font-size: 16px;
    }

    .order-success__text, .order-succes__text-bottom span {
        font-size: 12px;
        font-weight: 400;
        line-height: 120%;
    }

    .order-succes__text-bottom span {
        margin-bottom: 20px;
    }

    .order-succes__text-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .basket__empty {
        margin: 100px auto 80px auto;
    }

        .basket__empty strong {
            font-size: 20px;
            margin-bottom: 10px;
        }

        .basket__empty a {
            padding: 16px 30px;
        }


    .content__info {
        padding-right: 0;
        display: flex;
        flex-direction: column;
    }


    .content__accessories-header {
        width: auto;
    }
}

@media (max-width: 532.99px) {
    .content__title {
        font-size: 16px;
    }

    .content__price {
        font-size: 14px;
    }

    .content__accessories-item {
        gap: 10px;
    }
}
