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

.rdg-blocks .rdg-ranking-bookie {
    width: 100%;

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

        @include title;

        .ranking-title {
            margin: 0;
            margin-bottom: .5rem;
            color: var(--color-ranking-bookie-title);
        }

        .ranking-data {
            display: flex;
            flex-wrap: wrap;
            margin-bottom: .5rem;

            .ranking-since {
                color: var(--color-gray-100);
            }

            .stars {
                display: flex;
                margin-left: .5rem;
                justify-content: center;
                align-items: center;
                gap: .2rem;

                &.ml-0 {
                    margin-left: 0;
                }

                .star {
                    width: 16px;
                    height: 16px;

                    &.star-fill {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star-fill.svg');
                        fill: var(--color-ranking-bookie-stars);
                    }

                    &.star-half {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star-half.svg');
                        fill: var(--color-ranking-bookie-stars);
                    }

                    &.star-empty {
                        background-repeat: no-repeat;
                        background-position: center center;
                        background-image: url('../images/star.svg');
                        fill: var(--color-ranking-bookie-stars);
                    }
                }
            }
        }

        .message {
            font-size: 1.2rem;
            text-align: center;
            padding: 1rem;
            color: var(--color-white);
            background-color: var(--color-message-bg);
            border: 1px solid var(--color-message-border);
        }
    }
}

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