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

.rdg-blocks .rdg-favorite-cappers {
    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;

        .cappers {
            gap: 1.2rem;
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            
            .capper {
                display: flex;
                width: 25rem;
                height: fit-content;
                border-radius: .8rem;
                flex-direction: column;
                background-color: $color-white;
    
                @media (max-width: 450px) {
                    & {
                        width: 100%;
                        min-width: initial;
                    }
                }
    
                .content {
                    padding: 1rem;
    
                    .capper-header {
                        display: flex;
                        padding-bottom: .5rem;
                        border-bottom: 1px solid var(--color-gray);
        
                        @media (max-width: 400px) {
                            & {
                                flex-direction: column;
                            }
                        }
        
                        .header-avatar {
                            width: 18%;
                            display: flex;
                            min-width: 4.2rem;
                            align-items: center;
                            justify-content: flex-start;
        
                            @media (max-width: 400px) {
                                & {
                                    width: 100%;
                                    justify-content: center;
                                    padding-bottom: .8rem;
                                }
                            }
                            
                            img {
                                max-width: 60px;
                                max-height: 60px;
        
                                @media (max-width: 400px) {
                                    & {
                                        max-width: 80px;
                                        max-height: 80px;
                                    }
                                }
                            }
                        }
        
                        .header-content {
                            width: 82%;
                            display: flex;
                            flex-direction: column;
        
                            @media (max-width: 400px) {
                                & {
                                    width: 100%;
                                    text-align: center;
                                }
                            }
        
                            .title {
                                display: initial;
                                text-align: left;
                                color: var(--color-favorite-cappers-title);
        
                                @media (max-width: 400px) {
                                    & {
                                        width: 100%;
                                        text-align: center;
                                    }
                                }
                            }
                            
                            .sub-title {
                                color: var(--color-favorite-cappers-sub-title);
                            }
        
                            .total {
                                color: var(--color-favorite-cappers-total);
        
                                .picks {
                                    font-size: .7rem;
                                    font-weight: 700;
                                    line-height: 1.1rem;
                                    color: var(--color-favorite-cappers-picks);
                                }
                            }
                        }
                    }
    
                    .picks-available {
                        display: flex;
                        justify-content: center;
                        
                        span {
                            margin-top: 1rem;
                            padding: .5rem 1.8rem;
                            border-radius: .5rem;
                            color: var(--color-favorite-cappers-picks-available-text);
                            background-color: var(--color-favorite-cappers-picks-available);
                        }
                    }
                }
    
                .capper-footer {
                    width: 100%;
                    display: flex;
                    font-size: 1rem;
                    font-weight: 600;
                    color: var(--color-white);
                    padding: .3rem .6rem .4rem .6rem;
                    border-bottom-left-radius: .8rem;
                    border-bottom-right-radius: .8rem;
                    background-color: var(--color-primary-dark-light);
    
                    .footer-link {
                        width: 50%;
    
                        a {
                            text-decoration: none;
                            color: var(--color-white);
    
                            &:hover {
                                color: var(--color-primary);
                            }
                        }
                    }
    
                    .footer-status {
                        width: 50%;
                        display: flex;
                        justify-content: end;
                        text-transform: uppercase;
                    }
                }
            }
        }
    }
}

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