@import '../../../../assets/scss/abstracts/variables';
@import '../../../../assets/scss/abstracts/mixins';

.rdg-blocks .rdg-main-promotions {
    width: calc(var(--vw, 1vw) * 100);
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-width: 99.55vw;

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;

        @include title;

        .body {
            display: flex;
            align-items: center;
            flex-direction: column;

            .promotions {
                width: 100%;
                display: flex;
                justify-content: space-between;
                align-items: center;
                flex-wrap: wrap;
                gap: 2rem 1rem;

                @media (max-width: 1352px) {
                    & {
                        justify-content: space-evenly;
                    }
                }

                @media (max-width: 925px) {
                    & {
                        flex-direction: column;
                    }
                }

                .promotion {
                    width: 406px;
                    height: 186px;
                    display: flex;
                    flex-direction: column;
                    align-items:end;
                    color: $color-white;
                    background-size: cover;
                    background-repeat: no-repeat;

                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 100%;
                            border-radius: .5rem;
                        }
                    }

                    .body {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        padding: 0 .5rem;

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 100% !important;
                            }
                        }

                        .heading {
                            width: 100%;
                            font-weight: 600;
                            padding-top: .5rem;
                            text-align: center;
                            text-shadow: 1px 3px 3px $color-black;

                            .separator-group {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                align-items: center;

                                .separator-line {
                                    width: 18%;
                                    display: flex;
                                    background-color: var(--color-warning);

                                    span {
                                        height: 2px;
                                        background-color: var(--color-warning);
                                    }
                                }

                                .separator-text {
                                    width: 16%;

                                    span {
                                        border-radius: 50%;
                                        padding: .3rem;
                                        background-color: var(--color-warning);
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-main-promotions {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
