.wig-form-group {
  &--padding-x {
    margin-right: rem-calc(-10px);
    margin-left: rem-calc(-10px);
    >.cell {
      padding: $form-group-child-padding;
    }
  }
  &--margin-y {
    >.cell {
      margin: $form-group-child-margin;
    }
  }
}

$label-height: rem-calc(24);
.input-label-container {
  &__label {
    &--top-alignment {
      padding-top: ($input-min-height - $label-height) / 2
    }
  }
}

.input-label {
  text-transform: uppercase;
  font-weight: bold;
  text-align: right;
  min-height: $label-height;
  @include breakpoint(small only) {
    justify-content: flex-start;
    margin-bottom: 4px;
  }
  &--is-required {
    font-size: 16px;
    font-weight: bold;
    color: #fb5757;
  }
  &--vertical {
    margin-bottom: 2px;
  }
  &--inline {
    padding-right: rem-calc(16);
  }
  &__text {
    display: inline-block;
  }
  &__img-wrapper {
    width: rem-calc(45);
    height: rem-calc(25);
    padding-left: 10px;
  }
}

.checkbox-group-input {
  @include breakpoint(small only) {
    flex-direction: column;
    padding-top: rem-calc(20);
  }
}

textarea,
textarea:focus {
  min-height: rem-calc(39px);
}

.date-picker-input {
  @extend .text-input--normal;
}

.map-input {
  @extend .text-input--normal;
}

.box-container {
  @include breakpoint(small only) {
    width: 100% !important;
  }
}

.number-pusher {
  &__value-label {
    margin-left: 20px;
    margin-right: 20px;
  }
  &--error{
    position: relative;
    border-color: rgba(255, 0, 0, 0.84);
    background-color: rgba(255, 0, 0, 0.1);
    border-style: solid;
    border-width: 1px;
  }
  &__error-message{
    position: absolute;
    right: 0;
    color: #ff364e;
    font-size: 0.875rem;
    text-align: right;
    height: 10px;
    margin-top: 0px;
  }
  @include breakpoint(small only) {
    padding-top: 20px;
  }
}

.text-input-group {
  border: 1px solid $gray-border-color;
  border-radius: 2px;
  position: relative;
  &__label {
    padding: 0 14px;
    background-color: $light-gray;
    color: $dark-gray;
  }
  &__label-left {
    border-right: 1px solid $gray-border-color;
  }
  &__label-right {
    border-left: 1px solid $gray-border-color;
  }
  .input-container__error-message {
    position: absolute;
    right: 0;
  }
}