/* stylelint-disable max-line-length, selector-no-type, max-nesting-depth, declaration-no-important */

@import "~react-day-picker/lib/style.css";

$form-control-height: 33px;

.DayPicker {
    .DayPicker {
        &-Month {
            margin: 0;
        }

        &-NavButton--prev {
            margin-right: calc(100% - 4rem);
        }

        &-Caption {
            display: table-caption !important;
            margin: 0 auto 20px auto;
            padding: 0;
            text-align: center;
            width: 200px;
        }

        &-Footer {
            border-top: 1px solid $gray-200;
            margin-top: 1rem;
            padding-bottom: .75rem;
            padding-top: 1.25rem;
            text-align: center;
        }

        &-Day {
            line-height: normal;
            padding: 14px;

            &--today {
                color: $gray-900;
                font-weight: 500;
            }
        }

        &-Weekday {
            color: $gray-800;
            font-size: 14px;
        }

        &-Month-Picker {
            margin-right: 10px;
        }

        &-Year-Picker,
        &-Month-Picker {
            display: inline-block;
            height: $form-control-height;
        }
    }

    &-left-arrow,
    &-right-arrow {
        background: none;
        border: 0;
        height: $form-control-height;
        position: absolute;
        top: 0;
        width: $form-control-height;

        svg {
            $size: 16px;
            height: $size;
            margin-top: -3px;
            opacity: .6;
            transition: opacity 200ms ease;
            width: $size;

            &:hover {
                opacity: 1;
            }
        }
    }

    &-left-arrow {
        left: 0;
    }

    &-right-arrow {
        right: 0;
    }
}

.DayPickerInput {
    position: relative;

    .Icons-chevron {
        margin-left: 5px;
    }

    .DayPicker {
        &-wrapper {
            padding-bottom: 0;
        }
    }

    &-icon {
        align-items: center;
        bottom: 0;
        display: flex;
        padding: $input-padding-y $input-padding-x;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;

        .Glyph {
            fill: $gray-700;
        }
    }

    &-input:focus + &-icon {

        .Glyph {
            fill: $gray-800;
        }

    }

    .DayPickerInput {
        &-Overlay {
            border-radius: 3px;
            box-shadow: 0 10px 25px 0 rgba(0, 0, 0, .3);
            padding: 20px 20px 10px 20px;
            z-index: 5;
        }
    }
}
