ul.summary__list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;

    li.summary__item {
        display: flex;
        column-gap: 12px;
        justify-content: space-between;

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

        .summary__value {
            color: var(--Base-Dark, #171717);
            text-align: right;
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
            line-height: 140%;
            letter-spacing: 0.16px;

            .finespirits-icon {
                vertical-align: text-bottom;
            }
        }
    }
}

.promo__form {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    row-gap: 12px;    

    .promo__field {
        input {
            border-radius: 8px;
            border: 1px solid var(--Gray-4, #D1D1D2);
            background-color: var(--Base-White, #FFF);
            min-height: 48px;
            padding: 8px 16px;
            width: 100%;
        }
    }

    .promo__button {
        .button {
            min-height: auto;
            height: 100%;
            min-width: 126px;
        }
    }
}

.promo__applied {
    margin-top: 12px;

    .promo__item {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 8px;

        .promo__field {
            input {
                border-radius: 8px;
                border: 1px solid var(--Gray-4, #D1D1D2);
                background-color: var(--Base-White, #FFF);
                color: var(--Dark-wine-1, #92111C);
                min-height: 38px;
                padding: 6px 16px;
                width: 100%;
                font-size: 14px;

                &:disabled {
                    background-color: var(--Gray-2, #f2f2f2);
                }
            }
        }

        .promo__button {
            .button {
                min-height: auto;
                height: 100%;
                min-width: 126px;
            }
        }

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

.promo__spoiler {
    grid-column: 1/3;
    margin-top: 20px;
}

ul.promo__description {
    display: flex;
    flex-direction: column;
    row-gap: 8px;

    li {
        display: flex;
        align-items: center;
        column-gap: 12px;

        .promo__description-text {
            color: #000;
            font-size: 16px;
            font-style: normal;
            font-weight: 400;
            line-height: 140%;
            letter-spacing: 0.16px;
        }

        .promo__description-icon {
            border-radius: 8px;
            border: 1px solid var(--Gray-2, #F2F2F2);
            background-color: var(--Base-White, #FFF);
            width: 54px;
            height: 40px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 8px 8px;
        }
    }
}
.promo__item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .promo__code {
        color: var(--Dark-wine-Main, #45080D);
        text-align: right;
        font-size: 16px;
        font-style: normal;
        font-weight: 600;
        line-height: 140%;
        letter-spacing: 0.16px;
    }

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


ul.information__list {
    display: flex;
    flex-direction: column;
    row-gap: 8px;

    li.information__item {
        display: flex;
        column-gap: 12px;
        justify-content: space-between;

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

        .information__value {
            color: var(--Base-Dark, #171717);
            text-align: right;
            font-size: 16px;
            font-style: normal;
            font-weight: 600;
            line-height: 140%;
            letter-spacing: 0.16px;

            .finespirits-icon {
                vertical-align: text-bottom;
            }
        }
    }
}


section.thankyou {
    margin-top: 24px;
    margin-bottom: 56px;

    .thankyou__wrap {
        display: flex;
        column-gap: 40px;
        justify-content: space-between;
    }

    .thankyou__main {
        width: 100%;
        max-width: 650px;
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
    }

    .thankyou__number {
        color: var(--Base-Dark, #171717);
        font-size: 32px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%;
        letter-spacing: 0.64px;
        border-radius: 16px;
        border: 1px solid var(--Gray-3, #E5E5E6);
        background-color: var(--Gray-1, #FAFAFA);
        min-height: 78px;
        display: inline-flex;
        align-items: center;
        padding: 8px 24px;
        margin-bottom: 32px;
    }

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

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

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

    .thankyou__sidebar {
        width: 100%;
        max-width: 520px;

        .sidebar__block {
            border-radius: 12px;
            background-color: var(--Gray-1, #FAFAFA);
            padding: 24px 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;
            }

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

.order__block {
    margin-bottom: 24px;

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

.order__items {
    display: flex;
    column-gap: 8px;
    row-gap: 8px;
    flex-wrap: wrap;

    .order__item {
        width: 58px;
        height: 80px;
        position: relative;

        .order__item-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 8px;
        }

        .order__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: -5px;
            right: -5px;
        }
    }
}

section.failed {
    margin-top: 16px;
    margin-bottom: 56px;

    .failed__wrap {
        display: flex;
        justify-content: space-between;
        column-gap: 24px;
    }

    .failed__main {
        display: flex;
        flex-direction: column;
        align-items: center;
        border-radius: 12px;
        background-color: var(--Gray-1, #FAFAFA);
        padding: 56px 32px;
        width: 100%;
        max-width: 740px;
    }

    .failed__body {
        width: 100%;
        max-width: 570px;
    }

    .failed__header {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 28px;
        width: 100%;
        max-width: 570px;
        margin-bottom: 16px;
    }

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

    
    .failed__image {
        width: 100%;
        max-width: 520px;
        border-radius: 12px;
        overflow: hidden;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
    }
    .failed__timer {
        color: #000000;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.2px;
        display: flex;
        justify-content: center;
        column-gap: 12px;
        margin-top: 24px;

        .failed__timer-text {
            color: #000000;
        }

        .failed__timer-value {
            color: var(--Dark-wine-1, #92111C);
        }
    }

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

    .failed__action-note {
        color: var(--Base-Dark, #171717);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.2px;
        text-align: center;
        margin-top: 24px;
    }

    .failed__number {
        display: flex;
        justify-content: center;
        column-gap: 16px;
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.2px;

        .failed__number-text {
            color: var(--Base-Dark, #171717);
        }

        .failed__number-value {
            color: var(--Gray-7, #7A7A85);
        }
    }

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

    .failed__instructions {
        color: var(--Gray-7, #7A7A85);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 150%;
        letter-spacing: 0.2px;
        text-align: center;
        margin-top: 4px;
    }

    .failed__action {
        margin-top: 60px;

        .failed__action-buttons {
            display: flex;
            column-gap: 16px;
            flex-wrap: wrap;
            margin-top: 30px;
            
            .button {
                flex: 1;
            }
        }

        .failed__action-title {
            color: var(--Base-Dark, #171717);
            text-align: center;
            font-size: 26px;
            font-style: normal;
            font-weight: 600;
            line-height: 130%;
            letter-spacing: 0.52px;
            margin-bottom: 8px;
        }
    }
}
@media (max-width: 992px) {
    .main.thankyou__page {
        padding-top:32px;
        margin-bottom: 60px;

        .thankyou {
            .thankyou__wrap {
                flex-direction:column;
                gap:80px;

                .thankyou__main {
                    max-width:100%;
                    .thankyou__number {
                        font-size: 22px;
                        font-weight: 500;
                        line-height: 150%;
                        letter-spacing: 0.22px;
                        padding:16px 24px;
                    }
                    .thankyou__title {
                        color: var(--Base-Dark, #171717);
                        font-size: 28px;
                        font-weight: 500;
                        line-height: 140%;
                        letter-spacing: 0.56px;
                        margin-bottom:24px;
                    }
                    .thankyou__content {
                        font-size: 16px;
                        line-height: 140%;
                        letter-spacing: 0.16px;
                        margin-top:0;
                        max-width:360px;
                        a {
                            font-size: 16px;
                            line-height: 140%;
                            letter-spacing: 0.16px;
                        }
                    }
                }
                .thankyou__sidebar {
                    max-width:100%;
                    .sidebar__block {
                        padding:24px;
                        .sidebar__header {
                            color: var(--Base-Dark, #171717);
                            font-size: 22px;
                            font-weight: 500;
                            line-height: 150%;
                            letter-spacing: 0.22px;
                            margin-bottom:16px;
                        }
                    }
                    .sidebar__block-order {

                        .sidebar__body {
                            .order__block {
                                margin-bottom:16px;
                                .order__subtitle {
                                    margin-bottom:8px;
                                }
                                .order__items {
                                    .order__item {

                                    }
                                }
                            }
                            .order__information {
                                .information__list {
                                    .information__item {
                                        .information__label {
                                            font-size: 16px;
                                            line-height: 140%;
                                            letter-spacing: 0.16px;
                                        }
                                        .information__value {
                                            font-size: 16px;
                                            font-weight: 600;
                                            line-height: 140%;
                                            letter-spacing: 0.16px;
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}