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

.rdg-blocks .rdg-picks-vs-categories {
    &.full {
        width: calc(var(--vw, 1vw) * 100);
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        max-width: 99.55vw;

        .container.content {
            padding-left: 20px;
            padding-right: 20px;
        }
    }

    .container.content {
        width: 100%;
        display: flex;
        flex-direction: column;

        @include title;

        .title {
            margin-left: .6rem;
        }

        .picks {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 1.2rem;
            margin-bottom: 2rem;

            .message {
                width: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 1.5rem;
                border-radius: .5rem;
                background-color: var(--color-message-bg);
                border: 1px solid var(--color-message-border);

                span {
                    text-align: center;
                    color: var(--color-message-border);
                }
            }
    
            .pick {
                display: flex;
                flex-direction: column;
                width: 25rem;
                border-radius: .5rem;
                background-color: var(--color-white);
                padding-top: 1rem;
                padding-bottom: 2rem;
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }
    
                .pick-header {
                    display: flex;
                    flex-direction: column;
    
                    .content {
                        width: 100%;
                        display: flex;
                        padding: .5rem;
    
                        .sport {
                            width: 20%;
                        }
    
                        .date-time {
                            width: 60%;
                            display: flex;
                            justify-content: center;
                            text-align: center;
                        }
    
                        .status {
                            width: 20%;
                            display: flex;
                            justify-content: end;
                        }
                    }
                }
    
                .pick-body {
                    display: flex;
                    flex-direction: column;
                    padding: 0 .5rem;
    
                    .teams {
                        display: flex;
    
                        .team {
                            display: flex;
                            align-items: center;
                            justify-content: flex-start;
                            flex-direction: column;
    
                            &:nth-last-of-type(1), &:nth-last-of-type(3) {
                                width: 38%;
                            }
    
                            &:nth-last-of-type(2) {
                                width: 24%;
                            }
    
                            .team-logo {
                                img {
                                    max-width: 90px;
                                    max-height: 90px;
    
                                    @media (max-width: 450px) {
                                        & {
                                            max-width: 70px;
                                            max-height: 70px;
                                        }
                                    }
                                }
                            }
    
                            .team-name {
                                padding: .3rem;
                                text-align: center;
                                height: 100%;
                                display: flex;
                                align-items: center;
                            }
                        }
    
                        .team-vs {
                            display: flex;
    
                            .vs-logo {
                                width: 100%;
                                height: 100%;
                                display: flex;
                                align-items: center;
                                justify-content: center;
    
                                span {
                                    display: flex;
                                    justify-content: center;
                                    align-items: center;
                                    height: 1.7rem;
                                    width: 1.7rem;
                                    font-weight: 500;
                                    color: var(--color-white);
                                    border-radius: 50%;
                                    font-size: .9rem;
                                    background-color: var(--color-picks-vs-categories-picks);
                                }
                            }
    
                            a {
                                width: 100%;
                            }
                            
                            .vs-name {
                                width: 100%;
                                display: flex;
                                justify-content: center;
                                border-radius: .3rem;
                                padding: .4rem;
                                background-color: var(--color-picks-vs-categories-picks);
    
                                span {
                                    text-align: center;
                                    font-weight: 600;
                                    color: var(--color-white);
                                    text-transform: uppercase;
                                    font-size: .9rem;
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

.acf-block-preview {
    .rdg-picks-vs-categories {
        &.full {
            width: 100%;
            position: initial;
            left: initial;
            right: initial;
            margin-left: initial;
            margin-right: initial;
            max-width: initial;
        }
    }
}
