.cart__page {
    margin-bottom: 64px;
}

section.cart__empty {
    margin-top: 64px;

    .cart__empty-image {
        margin-bottom: 16px;
    }
    
    .cart__empty-title {
        color: #000000;
        font-size: 32px;
        font-style: normal;
        text-align: center;
        font-weight: 500;
        line-height: 140%;
        letter-spacing: 0.64px;
        margin-bottom: 8px;
    }

    .cart__empty-description {
        color: #000000;
        text-align: center;
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 140%;
        letter-spacing: 0.16px;
    }

    .cart__empty-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cart__empty-button {
        margin-top: 40px;
    }
}

.cart__form {
    position: relative;

    .cart__loading {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgb(255 255 255 / 53%);
        backdrop-filter: blur(3px);

        img {
            animation: naturalSway 1s ease-in-out infinite;
            transform-origin: center bottom;
        }
    }
}

section.cart {
    margin-top: 40px;

    .cart__header {
        margin-bottom: 32px;
    }

    .cart__title {
        color: var(--Base-Dark, #171717);
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        letter-spacing: 0.64px;
    }

    .cart__wrap {
        display: flex;
        column-gap: 64px;

        .cart__content {
            flex: 1 0 calc(58% - 64px);
        }
    }
}

.cart__sidebar {
    flex: 1 0 calc(42% - 64px);

    .sidebar__block {
        &.sidebar__block-promo,
        &.sidebar__block-summary {
            border-radius: 10px;
            background-color: var(--Gray-1, #FAFAFA);
            padding: 24px 24px;
        }

        &.sidebar__block-promo {
            margin-bottom: 26px;
        }

        &.sidebar__block-summary {
            margin-bottom: 40px;
        }

        .sidebar__header {
            color: var(--Base-Dark, #171717);
            font-size: 26px;
            font-style: normal;
            font-weight: 600;
            line-height: 130%;
            letter-spacing: 0.52px;
            margin-bottom: 24px;
        }

        &.sidebar__block-button {
            .button {
                width: 100%;
            }
        }

        &.sidebar__block-payment {
            margin-top: 24px;

            .instant__payment {
                display: flex;
                flex-direction: column;
                align-items: center;
                row-gap: 12px;

                .instant__payment-title {
                    color: var(--Gray-6, #9A9AA2);
                    font-size: 12px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 150%;
                    letter-spacing: 0.12px;
                }

                .instant__payment-items {
                    display: flex;
                    flex-wrap: wrap;
                    column-gap: 10px;
                    row-gap: 10px;
                    align-items: center;
                    justify-content: center;

                    img {
                        max-height: 22px;
                    }
                }
            }
        }
    }
}

.cart__items {
    .cart__item {
        border-radius: 12px;
        border: 1px solid var(--Gray-4, #D1D1D2);
        background-color: var(--Base-White, #FFF);
        padding: 24px 24px;
        display: grid;
        grid-template-columns: auto auto 1fr auto;
        grid-template-rows: 1fr auto;
        row-gap: 16px;
        column-gap: 16px;

        .cart__item-discount {
            color: #ffffff;
            font-size: 12px;
            font-style: normal;
            font-weight: 600;
            line-height: 12px;
            border-radius: 4px;
            background-color: var(--Dark-wine-1, #92111C);
            display: inline-flex;
            min-height: 20px;
            align-items: center;
            padding: 6px 8px;
        }

        .cart__item-image {
            width: 120px;
            height: 120px;
            grid-row: 1/3;
            position: relative;

            img {
                width: 100%;
                height: 100%;
                object-fit: contain;
            }

            .cart__item-discount {
                position: absolute;
                top: 0;
                right: 0;
            }
        }

        .cart__item-info {
            align-self: flex-start;
            grid-column: 2/4;

            .cart__item-name {
                a {
                    color: var(--Base-Dark, #171717);
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 140%;
                    letter-spacing: 0.16px;
                }
            }

            .cart__item-sku {
                color: var(--Gray-6, #9A9AA2);
                font-size: 14px;
                font-style: normal;
                font-weight: 400;
                line-height: 140%;
                letter-spacing: 0.14px;
            }
        }

        .cart__item-total {
            color: var(--Gray-6, #9A9AA2);
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%;
            letter-spacing: 0.14px;
        }

        .cart__item-subtotal {
            display: inline-flex;
            align-items: center;
            column-gap: 12px;

            .cart__item-subtotal-regular {
                color: var(--Base-Dark, #171717);
                font-size: 20px;
                font-style: normal;
                font-weight: 600;
                line-height: 150%;
                letter-spacing: 0.2px;
            }

            .cart__item-subtotal-new {
                color: var(--Dark-wine-1, #92111C);
                font-size: 16px;
                font-style: normal;
                font-weight: 600;
                line-height: 150%;
                letter-spacing: 0.2px;
            }

            .cart__item-subtotal-old {
                color: var(--Gray-6, #9A9AA2);
                font-size: 12px;
                font-style: normal;
                font-weight: 400;
                line-height: 20px;
                text-decoration-line: line-through;
            }
        }

        .cart__item-price {
            margin-left: auto;
            text-align: right;
            align-self: flex-end;
        }

        .cart__item-quantity {
            display: flex;
            align-self: self-end;
        }

        .cart__item-message {
            color: var(--Dark-wine-1, #92111C);
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%;
            letter-spacing: 0.14px;
            align-self: self-end;
            margin-bottom: 1.5vh;
        }

        .cart__item-remove {
            display: flex;
            width: 24px;
            height: 24px;
            align-items: center;
            justify-content: center;
            align-self: flex-start;
            fill: #BDBDC2;
            margin-left: auto;
        }

        &:not(:last-child) {
            margin-bottom: 16px;
        }
    }
}

.cart__notification {
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 1px 1px 15px 0 rgba(0, 0, 0, 0.06);
    padding: 24px 24px;
    width: 100%;
    max-width: 380px;
    position: fixed;
    right: 20px;
    top: 150px;
    z-index: 9;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-sizing:border-box;

    &.cart__notification-visible {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .notification__header {
        display: flex;
        column-gap: 12px;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .notification__title {
        color: var(--Base-Dark, #171717);
        font-size: 20px;
        font-style: normal;
        font-weight: 500;
        line-height: 150%;
        letter-spacing: 0.2px;
       
    }

    .notification__close {
        display: flex;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .notification__items {
        .cart__item {
            display: grid;
            grid-template-columns: auto 1fr;
            column-gap: 16px;
            
            .cart__item-image {
                width: 50px;
                height: 70px;
                position: relative;
                
                

                img {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }

            .cart__item-name {
                margin-bottom: 16px;
                a {
                    color: var(--Base-Dark, #171717);
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 140%;
                    letter-spacing: 0.16px;
                }
            }

            .cart__item-discount {
                color: #FFF;
                font-size: 12px;
                font-style: normal;
                font-weight: 600;
                line-height: 12px;
                display: inline-flex;
                align-items: center;
                border-radius: 4px;
                background: var(--Dark-wine-1, #92111C);
                min-height: 22px;
                padding: 2px 8px;
                margin-bottom: 8px;
            }

            .cart__item-price {
                .cart__item-price-regular {
                    color: var(--Base-Dark, #171717);
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: 150%;
                    letter-spacing: 0.2px;
                }

                .cart__item-price-new {
                    color: var(--Dark-wine-1, #92111C);
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: 150%;
                    letter-spacing: 0.2px;
                }

                .cart__item-price-old {
                    color: var(--Gray-6, #9A9AA2);
                    font-size: 14px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 20px;
                    text-decoration-line: line-through;
                    margin-left: 8px;
                }
            }

            .cart__item-count {
                color: #ffffff;
                text-align: center;
                font-size: 10px;
                font-style: normal;
                font-weight: 500;
                line-height: 100%;
                letter-spacing: 0.2px;
                text-transform: uppercase;
                border-radius: 16px;
                background-color: var(--Dark-wine-2, #770E16);
                min-width: 16px;
                height: 16px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                top: 0;
                right: 0;
            }

            &:not(:last-child) {
                margin-bottom: 16px;
                border-bottom: 1px solid var(--Gray-2, #F2F2F2);
                padding-bottom: 16px;
            }
        }
    }

    .notification__footer {
        margin-top: 24px;
    }

    .notification__footer .button {
        width: 100%;
        min-height: 48px;
    }
}

@media (max-width: 992px) {
    .otgs-development-site-front-end {
        display:none;
    }
    .page-template-cart {
        .header {
            .header__checkout {
                .header__checkout-wrap {
                    min-height:64px;
                    padding: 16px 0;

                    .header__contacts {
                        .header__contacts-popup {
                            .header__contacts-trigger-close {
                                display:none;
                            }
                        }
                    }
                }
            }
        }
        .main.cart__page {
            padding-top:32px;

            .page__back {
                margin-top:0;
            }
            .cart {
                .cart__header {
                    margin-bottom:32px;
                    .cart__title {
                        color: var(--Base-Dark, #171717);
                        font-size: 28px;
                        font-weight: 500;
                        line-height: 140%;
                        letter-spacing: 0.56px;
                    }
                }
                .cart__wrap {
                    flex-direction:column;
                    .cart__content {
                        margin-bottom:40px;

                        .cart__items-wrap {
                            .cart__items {
                                .cart__item {
                                    padding:16px;
                                    grid-template-rows: initial;
                                    column-gap:5px;

                                    .cart__item-image {
                                        grid-row: 1 / 1;
                                        height:70px;
                                        width:70px;
                                        img {
                                            max-height:100%;
                                            display:block;
                                        }
                                    }
                                    .cart__item-quantity {
                                        grid-column: 2 / 3;
                                    }
                                    .cart__item-info {
                                        .cart__item-discount {
                                            color: #FFF;
                                            font-size: 12px;
                                            font-style: normal;
                                            font-weight: 600;
                                            line-height: 12px;
                                            margin-bottom:8px;
                                        }
                                        .cart__item-name {
                                            a {
                                                font-size: 14px;
                                                font-weight: 400;
                                                line-height: 140%;
                                                letter-spacing: 0.14px;
                                            }
                                        }
                                    }
                                    .cart__item-price {
                                        .cart__item-total {
                                            color: var(--Gray-6, #9A9AA2);
                                            text-align: right;
                                            font-size: 10px;
                                            font-weight: 400;
                                            line-height: 130%;
                                            letter-spacing: 0.1px;
                                        }
                                        .cart__item-subtotal {
                                            .cart__item-subtotal-regular {
                                                color: var(--Base-Dark, #171717);
                                                text-align: right;
                                                font-size: 16px;
                                                font-style: normal;
                                                font-weight: 400;
                                                line-height: 140%;
                                                letter-spacing: 0.16px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .cart__sidebar {
                        .sidebar__block {
                            margin-bottom:40px;
                            padding:24px 16px;
                            .sidebar__header {
                                color: var(--Base-Dark, #171717);
                                font-size: 20px;
                                font-style: normal;
                                font-weight: 400;
                                line-height: 150%;
                                letter-spacing: 0.2px;
                                margin-bottom:24px;
                            }
                        }
                        .sidebar__block-button {
                            margin-bottom:0;
                        }
                        .sidebar__block-payment {
                            padding:0;
                            background:0;
                            padding-bottom:100px;
                        }
                        .sidebar__block-summary {
                            margin-bottom:16px;

                            .sidebar__body {
                                .cart__summary {
                                    .summary__list {
                                        gap:8px;
                                        .summary__item {
                                            .summary__label {
                                                color: var(--Base-Dark, #171717);
                                                font-size: 14px;
                                                font-weight: 400;
                                                line-height: 150%;
                                                letter-spacing: 0.14px;
                                            }
                                            .summary__value {
                                                font-size: 14px;
                                                font-weight: 600;
                                                line-height: 150%;
                                                letter-spacing: 0.14px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        .sidebar__block-promo {
                            .sidebar__body {
                                .cart__promo {
                                    .promo__form {
                                        display:flex;
                                        flex-direction:column;
                                        gap:8px;

                                        .promo__field {
                                            input {

                                            }
                                        }
                                        .promo__button {
                                            .button {
                                                width:100%;
                                                min-height:48px;
                                                color: var(--Base-White, #FFF);
                                                text-align: center;
                                                font-size: 14px;
                                                font-weight: 500;
                                                line-height: 100%;
                                                letter-spacing: 0.42px;
                                                text-transform: uppercase;
                                            }
                                        }
                                    }
                                    .promo__spoiler {
                                        margin-top:24px;
                                        .spoiler__header {
                                            .spoiler__title {
                                                color: var(--Base-Dark, #171717);
                                                font-size: 14px;
                                                font-weight: 400;
                                                line-height: 140%;
                                                letter-spacing: 0.14px;
                                            }
                                            .spoiler__arrow {

                                            }
                                        }
                                        .spoiler__body {
                                            .promo__description {
                                                row-gap: 14px;
                                                li {
                                                    .promo__description-icon {

                                                    }
                                                    .promo__description-text {
                                                        font-size:12px;
                                                    }
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                        .sidebar__block-button {
                            position:fixed;
                            bottom:75px;
                            left:0;
                            width:100%;
                            background:#fff;
                            padding:24px 18px;
                            border-radius: 15px 15px 0 0;
                            box-shadow: 0 -12px 37px 0 rgba(230, 235, 243, 0.50);
                        }
                    }
                }
            }
        }
        .cart__empty {
            margin-top:130px;
            .cart__empty-wrap {
                padding-bottom:100px;
                .cart__empty-image {
                    width:114px;
                    height:114px;
                    margin-bottom:16px;
                }
                .cart__empty-title {
                    text-align: center;
                    font-size: 26px;
                    font-style: normal;
                    font-weight: 600;
                    line-height: 130%;
                    letter-spacing: 0.52px;
                    margin-bottom:8px;
                }
                .cart__empty-description {
                    color: #000;
                    text-align: center;
                    font-size: 16px;
                    font-weight: 400;
                    line-height: 140%;
                    letter-spacing: 0.16px;
                    max-width:222px;
                    margin-bottom:40px;
                }
                .cart__empty-button {
                    margin-top:0;
                    width:100%;
                    .button {
                        width:100%;
                    }
                }
            }
        }
        .footer__panel {

        }
    }
}