@import '../../styles/common';

.Choice {
  display: inline-flex;
  justify-content: flex-start;
  padding: var(--p-space-1) 0;
  cursor: pointer;
}

.labelHidden {
  padding: 0;

  > .Label {
    @include visually-hidden;
  }

  .Control {
    margin-top: 0;
    margin-right: 0;
  }
}

.disabled {
  cursor: default;

  > .Label {
    color: var(--p-text-disabled);

    &:hover {
      cursor: default;
    }

    @media (-ms-high-contrast: active) {
      color: grayText;
    }
  }
}

.Control {
  @include when-typography-condensed {
    --p-choice-size: 22px;
  }
  display: flex;
  flex: 0 0 auto;
  align-items: stretch;
  width: var(--p-choice-size);
  height: var(--p-choice-size);
  margin-right: var(--p-space-2);

  > * {
    width: 100%;
  }
}

.Label {
  @include text-style-body;

  -webkit-tap-highlight-color: transparent;

  &:hover {
    cursor: pointer;
  }
}

.Descriptions {
  @include when-typography-condensed {
    --p-choice-size: 22px;
  }
  padding-left: calc(var(--p-space-2) + var(--p-choice-size));
}

.HelpText {
  @include text-style-body;
  @include text-emphasis-subdued;
  margin-bottom: var(--p-space-1);
}
