.ontime-label {
  &.ontime-input-label_top {
    display: inline-block;
    margin-bottom: 4px;
  }
}

.ontime {
  &-wrapinput {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    width: 100%;

    &-label {
      width: 175px;

      &.is-right {
        text-align: right;
      }
    }

    &-input {
      width: 100%;
    }
  }

  &-input {
    border: 1px solid $color-ghost;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    color: $color-ghost;
    font-size: $input-font-size;

    @include transition(border 0.5s);

    .ontime-label {
      &.ontime-input-label_top {
        margin-bottom: 2px;
      }
    }

    .ontime-input-left_icon {
      margin-left: 8px;
      margin-right: 4px;

      &.is-clickable {
        cursor: pointer;
      }
    }

    .ontime-input-right_icon {
      margin-left: 4px;
      margin-right: 8px;

      &.is-clickable {
        cursor: pointer;
      }
    }

    .ontime-input-input {
      width: 100%;
      height: 100%;
      margin: 0;
      padding: 0 4px;
      border: 0;
      font-size: $input-font-size;
      color: $input-color;
      background-color: transparent;

      &:focus {
        outline: none
      }

      &::placeholder {
        color: rgba($input-color, 0.3);
      }
    }

    &.large   { 
      height: $input-large;

      .ontime-input-input {
        font-size: 18px;
      }
    }

    &.medium  { 
      height: $input-medium;

      .ontime-input-input {
        font-size: 16px;
      }
    }
    
    &.small   { height: $input-small; }
    &.smaller { height: $input-smaller; }

    &.is-focused {
      border: 1px solid $color-primary;
    }

    &.error {
      border: 1px solid $color-danger;
    }

    &.is-disabled {
      border: 1px solid rgba($color-ghost, 0.3);
      background-color: rgba($color-ghost, 0.1);
    }
  }
}