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

@property --color-single-pick-title {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-single-pick-score {syntax: "<color>";inherits: true;initial-value: #111111;}
@property --color-single-pick-available-text {syntax: "<color>";inherits: true;initial-value: #FFFFFF;}
@property --color-single-pick-available {syntax: "<color>";inherits: true;initial-value: #0160ac;}

.rdg-blocks .rdg-single-pick {
    .preview-thumbs {
        background-image: url('../images/rdg-single-pick-template-preview.jpg');
    }
    width: 100%;

    @include title;

        .pick {
            .content {
                .center-header {
                    display: flex;
                    justify-content: center;

                    .pick-header {
                        display: flex;
                        min-height: 4rem;
        
                        @media (max-width: 400px) {
                            & {
                                flex-direction: column;
                            }
                        }
        
                        .header-avatar {
                            width: 25%;
                            display: flex;
                            align-items: flex-start;
                            justify-content: flex-start;
                            min-width: 3.5rem;
        
                            @media (max-width: 400px) {
                                & {
                                    width: 100%;
                                    justify-content: center;
                                    padding-bottom: .8rem;
                                }
                            }
                            
                            img {
                                max-width: 50px;
                                max-height: 50px;
        
                                @media (max-width: 400px) {
                                    & {
                                        max-width: 80px;
                                        max-height: 80px;
                                    }
                                }
                            }
                        }
        
                        .header-content {
                            width: 75%;
                            display: flex;
                            flex-direction: column;
        
                            @media (max-width: 400px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }
        
                            .title {
                                display: initial;
                                text-align: left;
                                color: var(--color-single-pick-title);
        
                                @media (max-width: 400px) {
                                    & {
                                        width: 100%;
                                        text-align: center;
                                    }
                                }
                            }
                        
                            .score {
                                color: var(--color-single-pick-score);
                            }
                        }
                    }
                }

                .pick-available {
                    display: flex;
                    justify-content: center;

                    @media (max-width: 400px) {
                        & {
                            margin-top: .5rem;
                        }
                    }
                    
                    span {
                        padding: .3rem 1.8rem;
                        border-radius: .3rem;
                        color: var(--color-single-pick-available-text);
                        background-color: var(--color-single-pick-available);
                    }
                }
            }
        }
}

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