* {
  box-sizing: border-box;
}

*:active {
  outline: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--const-double-focus-ring, 0 0 0 2px #ffffff, 0 0 0 4px #0066cc);
}

:host {
  box-shadow: none !important;
}

::-moz-focus-inner {
  border: none;
}

input,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  font-stretch: inherit;
}

:host(.sr),
:host(.sr) button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.sr,
.sr button {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.hidden {
  display: none;
}

:host([hidden]) {
  display: none;
}

.invisible {
  visibility: hidden;
}

@container style(--t-prefers-motion: "reduced") {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-delay: 0ms !important;
  }
}
@container (not style(--t-prefers-motion: "normal")) and (not style(--t-prefers-motion: "reduced")) {
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
      animation-delay: 0ms !important;
      transition-delay: 0ms !important;
    }
  }
}
/**
 * @prop --tct-radio-group-margin: (<length-percentage>+) Controls the outer margin of the radio-group host.
 * @prop --tct-radio-group-margin-top: (<length-percentage>) Controls the top margin of the radio-group host when --tct-radio-group-margin is not set.
 * @prop --tct-radio-group-margin-bottom: (<length-percentage>) Controls the bottom margin of the radio-group host when --tct-radio-group-margin is not set.
 * @prop --tct-radio-group-fieldset-padding?: (<length-percentage>+) Controls the optional inner padding of the radio-group fieldset.
 * @prop --tct-radio-group-options-margin: (<length-percentage>+) Controls the margin around the radio options container.
 * @prop --tct-radio-group-options-padding?: (<length-percentage>+) Controls the optional inner padding of the radio options container.
 * @prop --tct-radio-group-border-radius: (<length-percentage>) Controls the corner radius of the radio options container.
 * @prop --tct-radio-group-border-width: (<length>+) Controls the border width of the radio options container.
 * @prop --tct-radio-group-error-border-color: (<color>) Controls the border color of the radio options container in the error state.
 * @prop --tct-radio-group-horizontal-gap: (<length-percentage>) Controls the gap between horizontal non-tile radio options.
 * @prop --tct-radio-group-vertical-gap: (<length-percentage>) Controls the gap between vertical non-tile radio options.
 * @prop --tct-radio-group-justify-content: (<custom-ident>) Controls how non-tile radio options are aligned along the layout direction.
 * @prop --tct-radio-group-separator-color: (<color>) Controls the color of separators between vertical non-tile radio options.
 * @prop --tct-radio-group-separator-width?: (<length>) Controls the optional thickness of separators between vertical non-tile radio options.
 * @prop --tct-radio-group-tile-border-color: (<color>) Controls the border color around the tiled radio group.
 * @prop --tct-radio-group-tile-border-radius: (<length-percentage>) Controls the corner radius of the tiled radio group.
 * @prop --tct-radio-group-label-column-gap: (<length-percentage>) Controls the column gap between the radio-group label text and trailing icon.
 * @prop --tct-radio-group-label-font-color?: (<color>) Controls the optional text color of the radio-group label.
 * @prop --tct-radio-group-label-font-size?: (<length-percentage>) Controls the optional font size of the radio-group label.
 * @prop --tct-radio-group-label-font-weight: (<number>) Controls the font weight of the radio-group label.
 * @prop --tct-radio-group-label-letter-spacing?: (<length>) Controls the optional letter spacing of the radio-group label.
 * @prop --tct-radio-group-label-line-height?: (<length-percentage>) Controls the optional line height of the radio-group label.
 * @prop --tct-radio-group-label-text-transform?: (<custom-ident>) Controls the optional text transform of the radio-group label.
 * @prop --tct-radio-group-label-optional-color: (<color>) Controls the text color of the "(optional)" indicator next to the label.
 * @prop --tct-radio-group-label-optional-font-size: (<length-percentage>) Controls the font size of the "(optional)" indicator next to the label.
 * @prop --tct-radio-group-label-optional-font-weight: (<number>) Controls the font weight of the "(optional)" indicator next to the label.
 * @prop --tct-radio-group-label-optional-margin-left: (<length-percentage>) Controls the left margin of the "(optional)" indicator next to the label.
 */
:host {
  --comp-default-radio-group-margin: var(--tct-radio-group-margin-top, var(--t-radio-group-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-radio-group-margin-bottom, var(--t-radio-group-margin-bottom, var(--app-scale-5x, 25px)));
  display: block;
  margin: var(--tct-radio-group-margin, var(--comp-default-radio-group-margin));
}

fieldset {
  padding: var(--tct-radio-group-fieldset-padding, 0);
  margin: 0;
  border: 0;
  position: relative;
}

.label-row {
  display: grid;
  grid-template-columns: 1fr 24px;
  grid-template-areas: "label icon";
  column-gap: var(--tct-radio-group-label-column-gap, var(--app-scale-2x, 10px));
  color: var(--tct-radio-group-label-font-color, inherit);
  font-size: var(--tct-radio-group-label-font-size, inherit);
  font-weight: var(--tct-radio-group-label-font-weight, 600);
  text-transform: var(--tct-radio-group-label-text-transform, none);
  letter-spacing: var(--tct-radio-group-label-letter-spacing, inherit);
  line-height: var(--tct-radio-group-label-line-height, inherit);
}
.label-row q2-icon {
  grid-area: icon;
  margin-top: -2px;
  margin-bottom: -2px;
}

.group-legend {
  font-weight: 600;
}

legend.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  border: 0;
}

.optional-tag {
  margin-left: var(--tct-radio-group-label-optional-margin-left, var(--app-scale-1x, 5px));
  color: var(--tct-radio-group-label-optional-color, var(--t-radio-group-label-optional-color, var(--tct-a11y-color, var(--t-a11y-color, var(--tct-a11y-gray-color, var(--t-a11y-gray-color, var(--tct-gray-7, var(--t-gray-7, var(--tct-gray-d1, var(--t-gray-d1, var(--app-gray-d1, rgba(77, 77, 77, 0.77))))))))))));
  font-size: var(--tct-radio-group-label-optional-font-size, var(--t-radio-group-label-optional-font-size, var(--const-px-12, 12px)));
  font-weight: var(--tct-radio-group-label-optional-font-weight, var(--t-radio-group-label-optional-font-weight, 400));
}

.tile-container,
.tile-container .options-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  flex-grow: 1;
}

.options-container {
  --comp-default-margin: var(--app-scale-1x, 5px) 0;
  --comp-options-margin: var(--tct-radio-group-options-margin, var(--t-radio-group-options-margin, var(--comp-default-margin, 5px 0)));
  margin: var(--comp-options-margin);
  padding: var(--tct-radio-group-options-padding, var(--t-radio-group-options-padding, var(--app-scale-0x, 0px)));
  border-width: var(--tct-radio-group-border-width, 1px);
  border-color: transparent;
  border-style: solid;
  border-radius: var(--tct-radio-group-border-radius, var(--app-border-radius-1, 4px));
}
:host([has-error]) .options-container {
  border-color: var(--tct-radio-group-error-border-color, var(--const-stoplight-alert, #d20a0a));
}
:host([has-error=false]) .options-container {
  border-color: transparent;
}
.options-container.horizontal, .options-container.vertical {
  display: flex;
  flex-wrap: wrap;
  justify-content: var(--tct-radio-group-justify-content, start);
}
.options-container.horizontal {
  flex-direction: row;
  column-gap: var(--tct-radio-group-horizontal-gap, var(--app-scale-4x, 20px));
}
.options-container.vertical {
  flex-direction: column;
  row-gap: var(--tct-radio-group-vertical-gap, 0);
}
.options-container.vertical ::slotted(q2-radio:not(:first-child)) {
  position: relative;
}
.options-container.vertical ::slotted(q2-radio:not(:first-child))::before {
  border-block-start: var(--tct-radio-group-separator-width, 0) solid var(--tct-radio-group-separator-color, var(--t-gray-12, #d9d9d9));
  content: "";
  inset-block-start: calc(var(--tct-radio-group-separator-width, 0) / -2);
  inset-inline: 0;
  pointer-events: none;
  position: absolute;
}

.tile-container.left {
  justify-content: start;
}
.tile-container.right {
  justify-content: end;
}
.tile-container .options-container {
  border-color: var(--tct-radio-group-tile-border-color, var(--t-gray-13, #e6e6e6));
  border-radius: var(--tct-radio-group-tile-border-radius, var(--app-border-radius-2, 8px));
  flex-grow: 0;
  flex-wrap: nowrap;
  justify-content: inherit;
  overflow: visible;
}
:host([has-error]) .tile-container .options-container {
  border-color: var(--tct-radio-group-error-border-color, var(--const-stoplight-alert, #d20a0a));
}