@use 'sass:math';

schedule-page-time-selector-component,
time-selector {
    .wrapper--time-selector {
        padding: 0 $space-xl;
        height: calc(#{$button-height} + 10px);
        display: flex;
        align-items: center;
        flex-direction: row;
        flex-wrap: nowrap;

        .time-selector {
            width: 100%;

            .p-slider {
                background-color: $blue-light2;

                &.p-slider-horizontal {
                    height: 6px;
                }

                .p-slider-range {
                    background-color: $blue-light;
                }

                .p-slider-handle {
                    background-color: $blue-light;
                    height: $slider-handle-size;
                    width: $slider-handle-size;
                    border: 2px solid $white;
                    margin-top: math.div(-$slider-handle-size, 2);
                    transition-duration: 0.2s;
                    cursor: pointer;

                    &:hover,
                    &:focus,
                    &:active {
                        background-color: $blue;
                    }
                }
            }
        }

        .time-selector__label {
            margin-right: $space-xl;
            white-space: nowrap;
            @include font-small($gray);
        }

        .time-selector__value {
            margin-left: $space-xl;
            white-space: nowrap;
            font-size: $font-size-l;
        }

        &.compact-view {
            flex-direction: column;
            height: auto;
            padding: 0;
            margin-top: $space-xl;
            padding-bottom: $space-s;

            .time-selector__label-value {
                @include flex-center-align();
                justify-content: space-between;
                flex-wrap: wrap;
                margin-bottom: $space-m;
                width: 100%;

                .time-selector__value {
                    @include font-small($text-color);
                    margin-bottom: $space-s;
                    margin-left: 0px;
                }

                .time-selector__label {
                    margin-bottom: $space-s;
                }
            }

            .time-selector {
                padding: 0 8px;
            }
        }
    }
}
