@import "../../styles/config";
@import "../../styles/theme";

.timepicker-backdrop-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 999;
    pointer-events: auto;

    &--transparent {
        background-color: transparent;
    }
}

.timepicker-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    pointer-events: none;
}

.timepicker {
    width: 300px;
    border-radius: 2px;
    box-shadow: rgba(0, 0, 0, 0.25) 0 14px 45px, rgba(0, 0, 0, 0.22) 0 10px 18px;
    outline: none;
    position: static;
    z-index: 999;
    pointer-events: auto;
    &__header {
        padding: 15px 30px;
        background-color: $dial-background-color;
        @supports (background-color: var(--dial-background-color)) {
            background-color: var(--dial-background-color);
        }
    }
    &__body {
        padding: 15px 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: $body-background-color;
        @supports (background-color: var(--body-background-color)) {
            background-color: var(--body-background-color)
        }
    }
    &__actions {
        display: flex;
        justify-content: flex-end;
        padding: 15px;
        background-color: $body-background-color;
        @supports (background-color: var(--body-background-color)) {
            background-color: var(--body-background-color)
        }
    }
}

@media (max-device-width: 1023px) and (orientation: landscape) {
    .timepicker {
        display: flex;
        width: 515px;
        &__header {
            display: flex;
            align-items: center;
        }
        &__main-content {
            display: flex;
            flex-direction: column;
            width: 100%;
        }
        &__actions {
            padding: 5px;
            margin-top: -1px;
        }
    }
}
