section.checkout__login {
    .checkout__login-wrap {
        display: grid;
        grid-template-columns: auto auto;
        justify-content: space-between;
        column-gap: 24px;
        row-gap: 24px;
    }

    .checkout__login-form {
        max-width: 522px;
        grid-row: 1/3;

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

        .login__fast {

            .login__fast-header {

                .login__fast-title {
                    background-color: #ffffff;
                }
            }
        }
    }

    .checkout__login-block {
        border-radius: 12px;
        background-color: var(--Gray-1, #FAFAFA);
        padding: 40px 40px;
        max-width: 630px;

        .checkout__login-title {
            color: #000;
            font-size: 32px;
            font-style: normal;
            font-weight: 500;
            line-height: 140%;
            letter-spacing: 0.64px;

            mark {
                color: var(--Dark-wine-2, #770E16);
            }
        }

        .checkout__login-content ul li {
            position: relative;
            padding-left: 32px;
            color: #000;
            font-size: 20px;
            font-style: normal;
            font-weight: 400;
            line-height: 150%;
            letter-spacing: 0.2px;

            b {
                font-weight: 700;
            }

            &:before {
                content: "";
                display: block;
                width: 8px;
                height: 8px;
                border-radius: 50%;
                position: absolute;
                left: 0;
                top: 12px;
                background-color: var(--Dark-wine-1, #92111C);
            }

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

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

        .checkout__login-icon {
            margin-bottom: 32px;
        }
    }

    .checkout__login-join {
        .checkout__login-title {
            margin-bottom: 24px;
        }

        .checkout__login-button {
            margin-top: 40px;
            .button {
                width: 100%;
            }
        }
    }

    .checkout__login-safe {
        .checkout__login-title {
            margin-bottom: 16px;
        }
    }
}


section.checkout {

    .checkout__wrap {
        display: grid;
        grid-template-columns: 1fr 1fr;
        column-gap: 36px;

        .checkout__back {
            margin-bottom: 40px;
            display: flex;
            align-items: center;
        }

        .checkout__header {
            margin-bottom: 40px;
        }

        .checkout__title {
            color: var(--Base-Dark, #171717);
            font-size: 40px;
            font-style: normal;
            font-weight: 500;
            line-height: 130%;
            letter-spacing: 0.8px;
        }

        .checkout__data {
            margin-left: auto;
            max-width: 660px;
            width: 100%;
            padding-top: 40px;
            padding-bottom: 56px;
            padding-left: 40px;
        }
    }
    .checkout__sidebar-wrap {
        min-height: calc(100vh - 96px);
        background-color: var(--Gray-1, #FAFAFA);
        

        .checkout__sidebar-block {
            padding: 72px 40px 48px 64px;
            position: sticky;
            top: 0;
        }

        .sidebar__block {
            max-width: 490px;
            padding-top: 24px;
            padding-bottom: 24px;

            .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;
            }
        }
    }

    .checkout__step {
        border-radius: 12px;
        border: 1px solid var(--Gray-2, #F2F2F2);
        background-color: var(--Gray-1, #FAFAFA);

        .checkout__step-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 40px 36px;
            transition: all .3s ease;

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

        &.checkout__step-open {
            .checkout__step-header {
                padding-bottom: 0;
            } 
        }

        .checkout__step-body {
            display: none;
            padding: 32px 36px 40px 36px;
        }

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

        .step__buttons {
            display: flex;
            flex-direction: column;
            row-gap: 16px;
            margin-top: 32px;
            
            
            
            

            .button {
                width: 100%;
            }
        }

        .signup__fast {
            margin-top: 32px;
        }

        .verification__header {
            margin-bottom: 32px;
            

            .verification__title {
                font-size: 20px;
                font-style: normal;
                font-weight: 400;
                line-height: 150%;
                letter-spacing: 0.2px;
            }

            .verification__description {
                color: var(--Gray-7, #7A7A85);
                font-size: 16px;
                font-style: normal;
                font-weight: 400;
                line-height: 140%;
                letter-spacing: 0.16px;
            }
        }
    }
}

.checkout__form {
    position: relative;

    .checkout__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);
        z-index: 1;
        

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

.delivery__methods,
.payment__methods {
    margin-bottom: 32px;

    .delivery__method,
    .payment__method {
        
        .delivery__method-block,
        .payment__method-block {
            border-radius: 12px;
            border: 1px dashed var(--Gray-4, #D1D1D2);
            background-color: #ffffff;
            display: flex;
            align-items: center;
            padding: 24px 20px;
            column-gap: 16px;
            cursor: pointer;

            .delivery__method-indicator,
            .payment__method-indicator {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                width: 20px;
                height: 20px;
                border-radius: 50%;
                border: 1.25px solid var(--Gray-7, #7A7A85);

                &:before {
                    content: "";
                    display: block;
                    width: 12px;
                    height: 12px;
                    background-color: var(--Dark-wine-2, #770E16);
                    border-radius: 50%;
                    transform: scale(2);
                    opacity: 0;
                    transition: all .3s ease;
                }
            }

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

            .delivery__method-cost {
                color: var(--Gray-8---Main, #383838);
                font-size: 20px;
                font-style: normal;
                font-weight: 700;
                line-height: 150%;
                letter-spacing: 0.2px;
                margin-left: auto;
            }
        }

        label.delivery__method-label,
        label.payment__method-label {
            input[type="radio"] {
                display: none;

                &:checked + .delivery__method-block,
                &:checked + .payment__method-block {
                    .delivery__method-indicator,
                    .payment__method-indicator {
                        &:before {
                            opacity: 1;
                            transform: scale(1);
                        }
                    }
                }
            }
        }

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

@media (max-width: 992px) {
    section.page__back {
        margin-top:0;
        margin-bottom:40px;
    }
    .header {
        .header__checkout {

            .header__checkout-wrap {
                min-height:64px;
                padding: 16px 0;

                .header__contacts {
                    .header__contacts-popup {
                        .header__contacts-trigger-close {
                            display:none;
                        }
                    }
                }
            }
        }
    }
    section.checkout__login {
        .checkout__login-wrap {
            display:flex;
            flex-direction:column;
            gap:0;

            .checkout__login-title {
                color: var(--Base-Dark, #171717);
                font-size: 22px;
                font-weight: 500;
                line-height: 150%;
                letter-spacing: 0.22px;
                margin-bottom:40px;
            }

            .checkout__login-form {
                margin-bottom:40px;
                .login__form {
                    .form__buttons {
                        margin-top:40px;
                        margin-bottom:40px;
                        display:flex;
                        flex-direction:column;
                        gap:16px;

                        .button {
                            width:100%;
                        }
                    }
                }
                .login__fast {
                    .login__fast-links {
                        justify-content:center;

                        .login__fast-link {
                            width:54px;
                            height:54px;
                            flex:none;
                            box-sizing:border-box;

                            .login__fast-name {
                                display:none;
                            }
                        }
                    }
                }
            }
            .checkout__login-block {
                padding:24px 16px;
                max-width: 100%;
            }
            .checkout__login-join {
                .checkout__login-title {
                    color: var(--Base-Dark, #171717);
                    font-size: 22px;
                    font-weight: 500;
                    line-height: 150%;
                    letter-spacing: 0.22px;
                    margin-bottom:24px;
                }
                .checkout__login-content {
                    li {
                        font-size: 14px;
                        line-height: 140%;
                        letter-spacing: 0.14px;
                        b {
                            font-size: 16px;
                            font-weight: 600;
                            line-height: 150%;
                            letter-spacing: 0.16px;
                        }
                        &:not(:last-child) {
                            margin-bottom:16px;
                         }
                    }
                }
            }
            .checkout__login-safe {
                margin-top:16px;
                margin-bottom:100px;

                .checkout__login-title {
                    margin-top:32px;
                    margin-bottom:8px;
                }
                .checkout__login-text {
                    color: #000;
                    font-size: 14px;
                    font-weight: 400;
                    line-height: 140%;
                    letter-spacing: 0.14px;
                }
            }
        }
    }
    section.checkout {
        .checkout__header {
            padding:0 16px;
            .checkout__back {
                margin-bottom:40px;

                .page__back-link {
                    a {
                        color: var(--Base-Dark, #171717);
                        font-size: 14px;
                        font-weight: 500;
                        line-height: 100%;
                        letter-spacing: 0.42px;
                        text-transform: uppercase;
                    }
                }
            }
            .checkout__title {
                color: var(--Base-Dark, #171717);
                font-size: 22px;
                font-weight: 500;
                line-height: 150%;
                letter-spacing: 0.22px;
                margin-bottom:32px;
            }
        }
        .checkout__wrap {
            .checkout__data {
                padding:0 16px 100px 16px;
                max-width:100%;
                .checkout__steps {
                    .checkout__step-open {
                        .checkout__step-header {
                            padding:0;

                            .checkout__step-title {
                                color: var(--Base-Dark, #171717);
                                font-size: 16px;
                                font-weight: 600;
                                line-height: 140%;
                                letter-spacing: 0.16px;
                                margin-bottom: 32px;
                            }
                            .checkout__step-help {
                                display:none;
                            }
                        }
                    }
                    .checkout__step {
                        padding: 24px 16px;
                        position:relative;
                        .checkout__step-header {
                            padding:0;
                            .checkout__step-title {
                                color: var(--Base-Dark, #171717);
                                font-size: 20px;
                                font-weight: 400;
                                line-height: 150%;
                                letter-spacing: 0.2px;
                            }
                            .checkout__step-help {
                                .help {
                                    position:static;

                                    .help__text {
                                        transform:translateY(30px);
                                        width:100%;
                                        right:0;
                                        &:after {
                                             right: 21px;
                                         }
                                    }
                                }

                            }
                        }

                        .checkout__step-body {
                            padding:0;
                            .payment__methods {
                                .payment__method {
                                    .payment__method-label {
                                        .payment__method-block {
                                            .payment__method-content {
                                                .payment__method-title {
                                                    color: var(--Base-Dark, #171717);
                                                    font-size: 16px;
                                                    font-weight: 600;
                                                    line-height: 150%;
                                                    letter-spacing: 0.16px;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                            .form__content {
                                .form__description {
                                    color: var(--Base-Dark, #171717);
                                    font-size: 16px;
                                    font-weight: 400;
                                    line-height: 140%;
                                    letter-spacing: 0.16px;
                                    margin-bottom:8px;
                                }
                                .form__notice {
                                    color: var(--Gray-7, #7A7A85);
                                    font-size: 14px;
                                    font-weight: 400;
                                    line-height: 140%;
                                    letter-spacing: 0.14px;
                                    margin-bottom:24px;
                                }
                            }
                            .form__data {
                                margin-bottom: 24px;
                                .form__options {
                                    .radio__label {
                                        column-gap: 8px;
                                    }
                                }
                                .input__code {
                                    justify-content:space-between;
                                    gap: 8px;
                                    .input {
                                        width:40px;
                                    }
                                }
                            }
                            .signup__fast {
                                margin-top:24px;
                                .signup__fast-header {
                                    margin-bottom:24px;
                                }
                                .signup__fast-links {
                                    justify-content:center;
                                    .signup__fast-link {
                                        flex: none;
                                        width:54px;
                                        height:54px;
                                        box-sizing:border-box;
                                        display:flex;
                                        align-items:center;
                                        justify-content:center;

                                        .signup__fast-name {
                                            display:none;
                                        }
                                    }
                                }
                            }
                            .delivery__methods {
                                .delivery__method {
                                    .delivery__method-label {
                                        .delivery__method-block {
                                            .delivery__method-content {
                                                .delivery__method-title {
                                                    color: var(--Gray-8---Main, #383838);
                                                    font-size: 16px;
                                                    font-weight: 700;
                                                    line-height: 140%;
                                                    letter-spacing: 0.16px;
                                                }
                                            }
                                            .delivery__method-cost {
                                                color: var(--Gray-8---Main, #383838);
                                                font-size: 16px;
                                                font-style: normal;
                                                font-weight: 700;
                                                line-height: 140%;
                                                letter-spacing: 0.16px;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .checkout__sidebar-wrap {
                padding:0 16px;
                background:#fff;
                margin-bottom:32px;

                .checkout__sidebar-block {
                    padding:0;
                    .sidebar__block-summary-products {
                        padding-top:0;
                        .sidebar__header {
                            display:none;
                        }

                        .sidebar__body {
                            .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;
                                            leading-trim: both;
                                            text-edge: cap;
                                            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;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    .sidebar__block {
                        max-width:100%;
                        padding-bottom:16px;
                        margin-bottom: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-promo {
                        background:#FAFAFA;
                        border-radius: 12px;
                        padding:24px 16px;

                        .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-summary-bottom {
                        background:#FAFAFA;
                        border-radius: 12px;
                        padding:24px 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;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
    .main.checkout__page {
        padding-top:32px;
        .checkout {
            .checkout__wrap {
                display:flex;
                flex-direction: column-reverse;
            }
        }
    }
}
