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

.rdg-blocks .rdg-top-winners {
    width: 100%;

    .header {
        min-height: 2.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-top-left-radius: .5rem;
        border-top-right-radius: .5rem;
        border-bottom: .3rem solid;

        .title {
            width: 100%;
            padding: .5rem;
            display: flex;
            align-items: center;
            justify-content: center;

            h1, h2, h3, span {
                margin-bottom: 0;
            }
        }
    }

    .body {
        .legend {
            display: flex;
            text-align: center;
            color: $color-primary-dark-light;
            margin: 0 1rem;

            .legend-logo {
                width: 80%;

                @media (max-width: $breakpoint-xl) {
                    & {
                        width: 76%;
                    }
                }

                @media (max-width: $breakpoint-md) {
                    & {
                        width: 70%;
                    }
                }

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

            .legend-win {
                width: 10%;

                @media (max-width: $breakpoint-xl) {
                    & {
                        width: 12%;
                    }
                }

                @media (max-width: $breakpoint-md) {
                    & {
                        width: 15%;
                    }
                }

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

            .legend-dra {
                width: 10%;

                @media (max-width: $breakpoint-xl) {
                    & {
                        width: 12%;
                    }
                }

                @media (max-width: $breakpoint-md) {
                    & {
                        width: 15%;
                    }
                }

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

        .tops {
            .top {
                margin: .5rem;
                padding-bottom: .3rem;
                border-bottom: 1px solid $color-white;

                &:last-of-type {
                    margin-bottom: 0;
                    border-bottom: none;
                }

                .separator {
                    width: 100%;
                    display: flex;
                    min-height: 3.5rem;
    
                    .top-logo {
                        width: 80%;
                        display: flex;
                        align-items: center;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 76%;
                            }
                        }

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 70%;
                            }
                        }

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

                        .logo {
                            width: 6%;
                            margin-right: .5rem;

                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 8%;
                                }
                            }

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 11%;
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 15%;
                                }
                            }

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

                            img {
                                border-radius: 50%;
                                width: 3rem;
                                height: 3rem;
                            }
                        }

                        .name {
                            width: 94%;

                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 92%;
                                }
                            }

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 89%;
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 85%;
                                }
                            }

                            @media (max-width: $breakpoint-sm) {
                                & {
                                    width: 78%;
                                }
                            }
                        }
                    }
        
                    .top-win {
                        width: 10%;
                        display: flex;
                        text-align: center;
                        align-items: center;
                        justify-content: center;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 12%;
                            }
                        }

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 15%;
                            }
                        }

                        @media (max-width: $breakpoint-sm) {
                            & {
                                width: 22%;
                            }
                        }
                    }
        
                    .top-dra {
                        width: 10%;
                        display: flex;
                        text-align: center;
                        align-items: center;
                        justify-content: center;

                        @media (max-width: $breakpoint-xl) {
                            & {
                                width: 12%;
                            }
                        }

                        @media (max-width: $breakpoint-md) {
                            & {
                                width: 15%;
                            }
                        }

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

            .message {
                display: flex;
                justify-content: center;
                color: $color-danger;
                font-weight: 500;
                padding-bottom: 1rem;
            }
        }

        &.small {
            .legend {
                margin: 0;
                padding: 0 .5rem;
    
                .legend-logo {
                    width: 60%;
    
                    @media (max-width: $breakpoint-xl) {
                        & {
                            width: 52%;
                        }
                    }

                    @media (max-width: $breakpoint-lg) {
                        & {
                            width: 40%;
                        }
                    }
    
                    @media (max-width: $breakpoint-md) {
                        & {
                            width: 70%;
                        }
                    }
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 56%;
                        }
                    }
                }
    
                .legend-win {
                    width: 20%;
    
                    @media (max-width: $breakpoint-xl) {
                        & {
                            width: 24%;
                        }
                    }

                    @media (max-width: $breakpoint-lg) {
                        & {
                            width: 30%;
                        }
                    }
    
                    @media (max-width: $breakpoint-md) {
                        & {
                            width: 15%;
                        }
                    }
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 22%;
                        }
                    }
                }
    
                .legend-dra {
                    width: 20%;
    
                    @media (max-width: $breakpoint-xl) {
                        & {
                            width: 24%;
                        }
                    }

                    @media (max-width: $breakpoint-lg) {
                        & {
                            width: 30%;
                        }
                    }
    
                    @media (max-width: $breakpoint-md) {
                        & {
                            width: 15%;
                        }
                    }
    
                    @media (max-width: $breakpoint-sm) {
                        & {
                            width: 22%;
                        }
                    }
                }
            }

            .tops {
                padding: 0 .5rem;

                .top {
                    margin: 0;
                    padding-top: .7rem;

                    @media (max-width: $breakpoint-md) {
                        & {
                            padding-bottom: .7rem;
                        }
                    }

                    .separator {
                        .top-logo {
                            width: 60%;

                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 52%;
                                }
                            }

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 40%;
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 70%;
                                }
                            }

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

                            .logo {
                                width: 25%;

                                @media (max-width: $breakpoint-lg) {
                                    & {
                                        display: none;
                                    }
                                }

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 15%;
                                        display: inherit;
                                    }
                                }

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

                                img {
                                    width: 2.5rem;
                                    height: 2.5rem;
                                }
                            }

                            .name {
                                width: 75%;
                                font-size: .9rem;

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

                                @media (max-width: $breakpoint-md) {
                                    & {
                                        width: 85%;
                                    }
                                }

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

                        .top-win {
                            width: 20%;
                            font-size: .75rem;

                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 24%;
                                }
                            }

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 30%;
                                    font-size: .7rem;
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 15%;
                                    font-size: .75rem;
                                }
                            }

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

                        .top-dra {
                            width: 20%;
                            font-size: .75rem;

                            @media (max-width: $breakpoint-xl) {
                                & {
                                    width: 24%;
                                }
                            }

                            @media (max-width: $breakpoint-lg) {
                                & {
                                    width: 30%;
                                    font-size: .7rem;
                                }
                            }

                            @media (max-width: $breakpoint-md) {
                                & {
                                    width: 15%;
                                    font-size: .75rem;
                                }
                            }

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

    .footer {
        padding: .5rem;
        min-height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom-left-radius: .5rem;
        border-bottom-right-radius: .5rem;
        border-top: .3rem solid;

        @include link-style('light');
    }
}

.acf-block-preview {
    .rdg-top-winners {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
        
        .header {
            background-color: $color-primary-dark-light;
            border-bottom: .3rem solid $color-primary;

            .title {
                h1, h2, h3, span {
                    color:inherit;
                }
            }
        }

        .body {
            background-color: $color-gray;
        }

        .footer {
            background-color: $color-primary-dark-light;
            border-top: .3rem solid $color-primary;
        }
    }
}
