/** * Mobile styles */

.calentim-container-mobile {
    &.calentim-hidden-calendar {
        .calentim-input {
            .calentim-timepickers {
                max-width: 100%;
                border-bottom: none;
                border-top: none;
            }
            .calentim-footer {
                width: 100%;
                background: $calentim-footer-background;
            }
        }
    }
    .calentim-input {
        margin: 0;
        border: 0;
        border-radius: 0;
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        z-index: 999999;
        margin: 6px;
        border-radius: 6px;
        border: $calentim-container-border;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-content: center;
        overflow-y: hidden;
        @media screen and (orientation: landscape) {
            bottom: 0;
            overflow-y: hidden;
            flex-wrap: wrap;
        }
        .calentim-header {
            box-sizing: border-box;
            padding: 12px;
            order: 0;
            display: flex;
            flex: 0 0 auto;
            flex-flow: nowrap;
            background: $calentim-header-background;
            justify-content: space-between;
            align-items: center;
            font-size: 1em;
            @media screen and (orientation: landscape) {
                order: 2;
                border-left: $calentim-container-border;
                font-size: .857em;
            }
            .calentim-header-separator {
                padding: 0;
                margin: 0;
                display: flex;
                color: $calentim-header-separator-color;
                margin-top: 2px;
            }
            .calentim-header-start,
            .calentim-header-end {
                margin: 0;
                .calentim-header-start-day,
                .calentim-header-end-day {
                    font-size: 2.8em;
                    margin: -10px;
                    font-weight: 400;
                }
                .calentim-header-start-date,
                .calentim-header-end-date {
                    font-size: 1em;
                    font-weight: 500;
                }
                .calentim-header-start-weekday,
                .calentim-header-end-weekday {
                    font-size: 0.8em;
                    font-weight: 400;
                    line-height: 10px;
                }
            }
            .calentim-header-start {
                .calentim-header-start-day {
                    margin-right: 8px;
                    margin-left: 0;
                    float: left;
                }
            }
            .calentim-header-end {
                text-align: right;
                .calentim-header-end-day {
                    float: right;
                    margin-left: 8px;
                    margin-right: 0;
                }
            }
        }
        .calentim-calendars {
            order: 2;
            flex: 1 1 auto;
            display: flex;
            flex-direction: column;
            overflow: scroll;
            @media screen and (orientation: landscape) {
                width: 50%;
                order: 0;
            }
            .calentim-month-selector,
            .calentim-year-selector {
                border-bottom: $calentim-container-border;
                .calentim-ms-month {
                    flex: 1 1 33.33%;
                    height: 25%;
                }
                .calentim-ys-year {
                    flex: 1 1 20%;
                    height: 33.33%;
                }
            }
            .calentim-calendar {
                border-right: none;
                display: block;
                @media screen and (orientation: landscape) {
                    border: none;
                }
                &:first-child {
                    .calentim-title {
                        border-top: none;
                    }
                }
                .calentim-title {
                    background: $calentim-calendar-header-background;
                    align-items: center;
                    font-size: 1.25em;
                    justify-content: space-between;
                    display: flex;
                    border-top: $calentim-container-border;
                    color: $calentim-calendar-header-text;
                    @media screen and (orientation: landscape) {
                        box-sizing: border-box;
                        padding: 8px;
                    }
                }
                .calentim-days-container {
                    padding: 10px 4px;
                    .calentim-dayofweek,
                    .calentim-day,
                    .calentim-disabled {
                        min-height: calc((100% - 48px) / 8);
                        @media screen and (orientation: landscape) {}
                        font-size: 0.8572em;
                        position: relative;
                        justify-content: center;
                        align-items: stretch;
                        display: flex;
                        span {
                            flex: 1;
                            align-items: center;
                            justify-content: center;
                            display: flex;
                        }
                    }
                }
            }
        }
        .calentim-ranges {
            background: $calentim-horizontal-ranges-background;
            order: 2;
            flex: 1 0 auto;
            align-items: flex-end;
            margin: 0px;
            padding: 4px;
            border: none;
            text-align: center;
            @media screen and (orientation: landscape) {
                width: 50%;
                box-sizing: border-box;
                flex: 1 1 0;
                border-left: $calentim-container-border;
                overflow-y: scroll;
                min-height: 50px;
            }
            i {
                font-size: 20px;
                display: none;
            }
            .calentim-range-header {
                font-size: 0.9em;
                display: none;
            }
            .calentim-range {
                font-size: 0.85em;
                padding: 4px 8px;
                background: $calentim-vertical-ranges-button-background;
                font-weight: 400;
                color: $calentim-vertical-ranges-button-text;
                border: $calentim-vertical-ranges-button-border;
                border-radius: 21px;
                @media screen and (orientation: landscape) {
                    border-radius: 6px;
                    display: block;
                    margin: 4px;
                }
                &.calentim-range-selected {
                    color: $calentim-vertical-ranges-selected-button-text;
                    border: $calentim-vertical-ranges-selected-button-border;
                    background-color: $calentim-vertical-ranges-selected-button-background;
                }
            }
        }
        .calentim-filler {
            display: none;
            @media screen and (orientation: landscape) {
                display: block;
                box-sizing: border-box;
                flex-grow: 1;
                margin-bottom: auto;
                border-left: $calentim-container-border;
                min-height: 100px;
                order: 3;
            }
        }
        .calentim-ranges+.calentim-filler {
            display: none;
        }
        .calentim-footer {
            order: 3;
            flex: 0 0 auto;
            text-align: center;
            padding: 6px 6px 7px 6px;
            background: $calentim-footer-background;
            border-top: $calentim-container-border;
            @media screen and (orientation: landscape) {
                width: 50%;
                box-sizing: border-box;
                border-left: $calentim-container-border;
                margin-top: auto;
            }
            button {
                font-size: 15px;
                font-family: $calentim-font-family;
                padding: 4px;
                font-weight: 400;
                outline: none;
                border: none;
                border-radius: 4px;
                width: calc((100% - 10px)/2);
                &.calentim-apply {
                    background: $calentim-apply-button-background;
                    color: $calentim-apply-button-text;
                    margin-left: 7px;
                    font-weight: 500;
                    border: $calentim-apply-button-border;
                    &[disabled=disabled],
                    &:disabled {
                        background: $calentim-apply-button-disabled-background;
                        color: $calentim-apply-button-disabled-text;
                        border: $calentim-apply-button-disabled-border;
                    }
                    &:hover {
                        background: $calentim-apply-button-hover-background;
                        color: $calentim-apply-button-hover-text;
                        border: $calentim-apply-button-hover-border;
                    }
                }
                &.calentim-cancel {
                    background: $calentim-cancel-button-background;
                    color: $calentim-cancel-button-text;
                    border: $calentim-cancel-button-border;
                    box-sizing: border-box;
                }
            }
        }
        .calentim-timepickers {
            order: 2;
            flex: 0 0 auto;
            background: $calentim-timepickers-background;
            font-size: 1em;
            border-top: $calentim-container-border;
            border-bottom: $calentim-container-border;
            @media screen and (orientation: landscape) {
                border-top: none;
                border-bottom: $calentim-container-border;
                border-left: $calentim-container-border;
                font-size: 1.125em;
                order: 2;
            }
            .calentim-timepicker {
                .calentim-hour-minute-seperator {
                    margin-top: 0px;
                    color: $calentim-timepickers-separator-color;
                    font-size: 1.8em;
                    font-weight: bold;
                    @media screen and (orientation: landscape) {
                        margin-top: 0px;
                        font-size: 1.4em;
                    }
                }
                .calentim-timepicker-hours-wrapper {
                    .calentim-timepicker-hours {
                        font-size: 21px;
                        border: $calentim-timepickers-picker-border;

                        border-radius: 3px;
                        /*background: linear-gradient(to bottom, #e8e8ef 0%, #fff 45%, #d8d8df 100%); box-shadow: inset 0 2px 10px 1px $calentim-calendar-title;*/
                        .calentim-hour-selected {
                            background: $calentim-timepickers-picker-background;
                            border-radius: 2px;
                            box-shadow: none;
                        }
                    }
                }
                .calentim-timepicker-minutes-wrapper {
                    .calentim-timepicker-minutes {
                        font-size: 21px;
                        border: $calentim-timepickers-picker-border;
                        border-radius: 3px;
                        /*box-shadow: inset 0 2px 10px 1px $calentim-calendar-title; background: linear-gradient(to bottom, #e8e8ef 0%, #fff 45%, #d8d8df 100% );*/
                        .calentim-minute-selected {
                            background: $calentim-timepickers-picker-background;
                            border-radius: 2px;
                            box-shadow: none;
                        }
                    }
                }
                .calentim-timepicker-hour-arrows,
                .calentim-timepicker-minute-arrows {
                    display: none;
                }
            }
        }
    }
}