.cst-cart {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.cst-cart__overlay {
    background: rgba(49, 54, 58, 0.4);
    -webkit-backdrop-filter: blur(10rem);
    backdrop-filter: blur(10rem);
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.cst-cart__container {
    border-bottom: 2rem solid #eee;
    width: 720rem;
    height: 100%;
    margin-left: auto;
    background: #eff7f8;
    padding-bottom: 30rem !important;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.cst-cart__header {
    border: 1rem solid #eee;
    padding: 30rem;
    background: #fbfbfb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cst-cart__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15rem;
    line-height: 100%;
    letter-spacing: -0.01em;
    color: #000;

    padding: 5rem 0 5rem 38rem;
    background: url('https://fs.getcourse.ru/fileservice/file/download/a/298472/sc/245/h/d1817bd70c9f8a6bde21d618da29912e.webp') no-repeat;
    background-size: 28rem 25rem;
    background-position: left center;

    margin: 0;
}

.cst-cart__close-btn {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 25rem !important;
    height: 25rem !important;
    background: transparent url('https://fs.getcourse.ru/fileservice/file/download/a/298472/sc/405/h/5fee99961b8eced8f28c4ff05da72b1b.webp') no-repeat !important;
    background-size: contain !important;
    background-position: right center !important;
}

.cst-cart__content {
    padding: 30rem;
    overflow: hidden;
    flex-grow: 1;
}

.cst-cart__content-empty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.cst-cart__content-empty {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 30rem;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #007ea8;

    padding-top: 55rem;
    background: url('https://fs.getcourse.ru/fileservice/file/download/a/298472/sc/245/h/d1817bd70c9f8a6bde21d618da29912e.webp') no-repeat;
    background-size: 45rem 40rem;
    background-position: center top;
    margin-bottom: 0;
    text-align: center;
}

.cst-cart__items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30rem 0;
    overflow-y: auto;
    height: 100%;
    align-items: flex-start;
}

.cst-cart-item {
    border-radius: 8rem;
    padding: 20rem;
    box-shadow: 0 0 15rem 0 rgba(0, 0, 0, 0.1);
    background: #fbfbfb;

    display: flex;
    gap: 15rem;

    position: relative;
}

.cst-cart-item__image {
    border-radius: 5rem;
    width: 200rem;
    min-width: 200rem;
    overflow: hidden;
}

.cst-cart-item__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5rem;
}

.cst-cart-item__info {
    flex-grow: 1;
    padding: 15rem 0 0 0;
}

.cst-cart-item__title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15rem;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #000;

    margin: 0;
}

.cst-cart-item__price {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 15rem;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #000;

    margin-top: 15rem;
    padding-top: 15rem;
    margin-bottom: 0;
    border-top: 1rem solid #eee;
}

.cst-cart-item__actions {
    position: absolute;
    bottom: 20rem;
    right: 20rem;
}

.cst-cart-item__remove-btn {
    font-size: 0;
    line-height: 0;
    display: block;
    width: 23rem;
    height: 25rem;
    background: url('https://fs.getcourse.ru/fileservice/file/download/a/298472/sc/338/h/aaf6a185f01e3ad843dae5b8e852d9b6.webp') no-repeat;
    background-size: contain;
    background-position: right bottom;
}

.cst-cart__footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 30rem;
}

.cst-cart__footer-container {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 15rem;
}

.cst-cart__checkout-btn--close {
    border-radius: 5rem !important;
    padding: 0rem 20rem !important;
    height: 44rem !important;
    box-shadow: 0 0 15rem 0 rgba(0, 0, 0, 0.1) !important;
    background: #fbfbfb !important;

    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    font-size: 15rem !important;
    line-height: 100% !important;
    letter-spacing: -0.01em !important;
    color: #007ea8 !important;
    text-align: center !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.cst-cart__checkout-btn--order {
    background: #007ea8 !important;
    border-radius: 5rem !important;
    padding: 0rem 20rem !important;
    height: 44rem !important;

    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    font-size: 15rem !important;
    line-height: 100% !important;
    letter-spacing: -0.01em !important;
    color: #fbfbfb !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

.cst-cart__checkout-btn--order span {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;

    background: url('https://fs.getcourse.ru/fileservice/file/download/a/298472/sc/98/h/23253ec8f35c831752d5e4661d65bd3a.webp') no-repeat;
    background-size: 19rem 16rem;
    background-position: right center;
}

.cst-cart__checkout-btn--buy {
    border-radius: 5rem !important;
    padding: 0rem 20rem !important;
    width: 280rem !important;
    height: 44rem !important;
    background: #007ea8 !important;

    font-family: var(--font-family) !important;
    font-weight: 500 !important;
    font-size: 15rem !important;
    line-height: 100% !important;
    letter-spacing: -0.01em !important;
    color: #fbfbfb !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

.cst-cart__checkout-btn--buy:hover,
.cst-cart__checkout-btn--close:hover,
.cst-cart__checkout-btn--order:hover {
    opacity: .7;
}

.cst-cart__total {
    display: flex;
    justify-content: space-between;
    padding: 15rem 0;
    background-color: transparent;
    border-top: 1rem solid #dadbdd;
    width: 100%;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 15rem;
    line-height: 120%;
    letter-spacing: -0.01em;
    color: #000;
}

.cst-product-item__back-button {
    margin-bottom: 15rem;
    padding: 10rem 20rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4rem;
    cursor: pointer;
}

.cst-product-item__back-button:hover {
    background-color: #5a6268;
}

@media screen and (max-width: 768px) {
    .cst-cart__container {
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-bottom: 30rem !important;
    }

    .cst-cart__header {
        padding: 20rem 20rem;
    }

    .cst-cart__title {
        font-size: 13rem;
        padding: 4rem 0 4rem 32rem;
        background-size: 23rem 20rem;
    }

    .cst-cart__close-btn {
        width: 20rem !important;
        height: 20rem !important;
    }

    .cst-cart__content {
        padding: 20rem;
    }

    .cst-cart__content-empty {
        font-size: 20rem;
        padding-top: 50rem;
        background-size: 45rem 40rem;
    }

    .cst-cart__footer {
        padding: 0 20rem;
    }

    .cst-cart__checkout-btn--buy {
        border-radius: 5rem !important;
        padding: 0rem 10rem !important;
        width: 100% !important;
        height: 40rem !important;
        font-size: 15rem !important;
    }

    .cst-cart-item {
        border-radius: 8rem;
        padding: 15rem 10rem;
        gap: 15rem;
    }

    .cst-cart-item__image {
        border-radius: 5rem;
        width: 154rem;
        min-width: 154rem;
    }

    .cst-cart-item__info {
        flex-grow: 1;
        padding: 0;
    }

    .cst-cart-item__actions {
        bottom: 15rem;
        right: 10rem;
    }

    .cst-cart-item__price {
        font-size: 13rem;
        margin-top: 10rem;
        padding-top: 10rem;
    }

    .cst-cart-item__title {
        font-size: 13rem;
    }

    .cst-cart-item__remove-btn {
        width: 19rem;
        height: 20rem;
    }

    .cst-cart__footer-container {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 15rem;
    }

    .cst-cart__checkout-btn--close {
        padding: 0rem 10rem !important;
        height: 40rem !important;
        font-size: 13rem !important;
    }

    .cst-cart__checkout-btn--order {
        padding: 0rem 10rem !important;
        height: 40rem !important;
        font-size: 13rem !important;
        justify-content: center !important;
    }

    .cst-cart__checkout-btn--order span {
        width: auto !important;
        padding-right: 30rem;
    }
}