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

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

.rdg-blocks .rdg-odd-betting-date {
    padding: 2rem;

    @include title;

    .date {
        width: 100%;
        display: flex;
        padding: 1rem;
        border-radius: .5rem;
        box-shadow: 1px 5px 14px 0px rgb(0 0 0 / 15%);
        min-height: 2rem;
        background-color: var(--color-odd-betting-date-bg);

        i {
            color: var(--color-odd-betting-date-i);
            cursor: pointer;
        }

        .date-left {
            display: flex;
            align-items: center;
            justify-content: center;
            width: calc(100% - calc(100% - 1rem));
        }

        .date-center {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;

            input[type=date] {
                border: 0;
                color: var(--color-odd-betting-date-input);
                background-color: var(--color-odd-betting-date-input-bg);
            }

            input[type="date"]::-webkit-inner-spin-button,
            input[type="date"]::-webkit-calendar-picker-indicator {
                display: none;
                -webkit-appearance: none;
            }
        }

        .date-right {
            display: flex;
            align-items: center;
            justify-content: center;
            width: calc(100% - calc(100% - 1rem));
        }
    }
}

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