﻿.time-input {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  max-width: 37.5rem;
  > div,
  > span {
    display: inline-block;
    position: relative;
    align-self: baseline;
  }
  display: inline-flex !important;
  align-items: center;
  // justify-content: center;
  // border-bottom: none !important;
  // width: initial !important;
  .input-padding {
    margin: 10px 5px 10px 5px;
    position: relative;
  }
  input {
    padding: 0;
    color: $input-text-color;
    outline: 0;
    border: none;
    width: 100%;
    text-align: center;
    border: 1px solid $input-border-color;
    height: 26px;
    line-height: 0;
    background-color: transparent;
  }
  .highlight {
    position: absolute;
    left: 3px;
    right: 3px;
    top: 3px;
    bottom: 3px;
    width: initial;
    height: initial;
    pointer-events: none;
    opacity: 0.5;
  }
  input[type='number'] {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
  }
  input[type='number']::-webkit-inner-spin-button,
  input[type='number']::-webkit-outer-spin-button {
    -webkit-appearance: none;
  }
  .time-input__arrows__container {
    position: relative;
    display: inline-block;
  }
  input:focus ~ label,
  input.filled ~ label,
  select:focus ~ label,
  select.filled ~ label,
  label.label--focused {
    top: -17px;
    font-size: 14px;
    color: $primary-color;
  }
  button {
    &.plus {
      top: -12px;
      svg {
        transform: rotate(180deg);
      }
    }
    &.minus {
      bottom: -12px;
    }
    padding: 0 5px;
    line-height: 0;
    overflow: hidden;
    border: none;
    background: transparent;
    position: absolute;
    left: 1px;
    /* Styling the down arrow */
    border: none;
    cursor: pointer;
    &:focus {
      outline: 0;
    }
    &:focus-visible {
      outline: 1px dotted;
      outline: 5px auto -webkit-focus-ring-color;
    }
    svg {
      transition: 0.2s all;
      fill: $input-label-color;
    }
    &:hover,
    &:active,
    &:focus {
      svg {
        fill: $primary-color;
      }
    }
  }
  .time-input__time {
    width: 26px;
    display: inline-block;
  }
  .time-input__am-pm {
    color: $input-label-color;
  }
}
