@import '../shared/formfields.module.scss';

.radio-group {
  @extend %form-field;
}

.header {
  padding: ru(.5) ru(.75);
  border-bottom: 1px solid color('neutral-4');
}

.label-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label {
  @extend %label;
  padding: 0;
}

.field {
  border-bottom: 1px solid color('neutral-4');
  padding: ru(.5) ru(.75);

  &:last-child {
    border: 0;
  }
}

.tooltip {
  margin-left: auto;
}

.tooltip-icon {
  @extend %tooltip-icon;
}

/* --  state:focus  -- */
.focused {
  border: 1px solid color('secondary-1');
}

/* --  state:error  -- */
.hasError {
  border: 1px solid color('primary-1');
}

@media #{$tablet} {
  .label {
    @include typography-a-8-bold;
  }
}
