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

@property --color-odd-betting-select {syntax: "<color>";inherits: true;initial-value: #ffffff;}
@property --color-odd-betting-select-bg {syntax: "<color>";inherits: true;initial-value: #0160ac;}
@property --color-odd-betting-select-primary {syntax: "<color>";inherits: true;initial-value: #3a96e0;}

.rdg-blocks .rdg-odd-betting-select {
    .preview-thumbs {
        background-image: url('../images/rdg-odd-betting-select-template-preview.jpg');
    }
    padding: 2rem;

    @include title;

    .select {
        width: 100%;
        display: flex;
        position: relative;
        border-radius: .5rem;
        overflow: hidden;
        box-shadow: 1px 5px 14px 0px rgb(0 0 0 / 15%);
        min-height: 2rem;

        &::after {
            font-family: 'Font Awesome 5 Free';
            content: '\f078';
            display: flex;
            position: absolute;
            align-items: center;
            justify-content: center;
            top: 0;
            right: 0;
            width: 3rem;
            height: calc(100% - .8rem);
            color: var(--color-odd-betting-select);
            background-color: var(--color-odd-betting-select-bg);
            pointer-events: none;
            margin: .4rem;
            border-radius: .5rem;
        }

        select {
            border: 0;
            outline: 0;
            appearance: none;
            box-shadow: none;
            flex: 1;
            padding: 1rem;
            cursor: pointer;
            background-image: none;
            color: var(--color-odd-betting-select-primary);
            background-color: var(--color-odd-betting-select);
    
            /* Remove IE arrow */
            &::-ms-expand {
                display: none;
            }
        }
    }
}

.acf-block-preview {
    .rdg-odd-betting-select {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}
