* {
  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-checkbox-group-margin: (<length-percentage>+) Controls the outer margin of the checkbox-group host.
 * @prop --tct-checkbox-group-margin-top: (<length-percentage>) Controls the top margin of the checkbox-group host when --tct-checkbox-group-margin is not set.
 * @prop --tct-checkbox-group-margin-bottom: (<length-percentage>) Controls the bottom margin of the checkbox-group host when --tct-checkbox-group-margin is not set.
 * @prop --tct-checkbox-group-fieldset-padding?: (<length-percentage>+) Controls the optional inner padding of the checkbox-group fieldset.
 * @prop --tct-checkbox-group-container-margin: (<length-percentage>+) Controls the margin around the checkbox-group slot container.
 * @prop --tct-checkbox-group-container-padding: (<length-percentage>+) Controls the inner padding of the checkbox-group slot container.
 * @prop --tct-checkbox-group-border-radius: (<length-percentage>) Controls the corner radius of the checkbox-group slot container.
 * @prop --tct-checkbox-group-border-width: (<length>+) Controls the border width of the checkbox-group slot container.
 * @prop --tct-checkbox-group-error-border-color: (<color>) Controls the border color of the checkbox-group slot container in the error state.
 * @prop --tct-checkbox-group-label-column-gap: (<length-percentage>) Controls the column gap between the checkbox-group label text and trailing icon.
 * @prop --tct-checkbox-group-label-font-color?: (<color>) Controls the optional text color of the checkbox-group label.
 * @prop --tct-checkbox-group-label-font-size?: (<length-percentage>) Controls the optional font size of the checkbox-group label.
 * @prop --tct-checkbox-group-label-font-weight: (<number>) Controls the font weight of the checkbox-group label.
 * @prop --tct-checkbox-group-label-letter-spacing?: (<length>) Controls the optional letter spacing of the checkbox-group label.
 * @prop --tct-checkbox-group-label-line-height?: (<length-percentage>) Controls the optional line height of the checkbox-group label.
 * @prop --tct-checkbox-group-label-text-transform?: (<custom-ident>) Controls the optional text transform of the checkbox-group label.
 * @prop --tct-checkbox-group-label-optional-color: (<color>) Controls the text color of the "(optional)" indicator next to the label.
 * @prop --tct-checkbox-group-label-optional-font-size: (<length-percentage>) Controls the font size of the "(optional)" indicator next to the label.
 * @prop --tct-checkbox-group-label-optional-font-weight: (<number>) Controls the font weight of the "(optional)" indicator next to the label.
 * @prop --tct-checkbox-group-label-optional-margin-left: (<length-percentage>) Controls the left margin of the "(optional)" indicator next to the label.
 */
:host {
  --comp-default-checkbox-group-margin: var(--tct-checkbox-group-margin-top, var(--t-checkbox-group-margin-top, var(--app-scale-5x, 25px))) 0 var(--tct-checkbox-group-margin-bottom, var(--t-checkbox-group-margin-bottom, var(--app-scale-5x, 25px)));
  display: block;
  margin: var(--tct-checkbox-group-margin, var(--comp-default-checkbox-group-margin));
}

fieldset {
  padding: var(--tct-checkbox-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-checkbox-group-label-column-gap, var(--app-scale-2x, 10px));
  color: var(--tct-checkbox-group-label-font-color, inherit);
  font-size: var(--tct-checkbox-group-label-font-size, inherit);
  font-weight: var(--tct-checkbox-group-label-font-weight, 600);
  text-transform: var(--tct-checkbox-group-label-text-transform, none);
  letter-spacing: var(--tct-checkbox-group-label-letter-spacing, inherit);
  line-height: var(--tct-checkbox-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;
}

.slot-container {
  --comp-default-container-margin: var(--app-scale-1x, 5px) 0;
  margin: var(--tct-checkbox-group-container-margin, var(--comp-default-container-margin));
  padding: var(--tct-checkbox-group-container-padding, var(--app-scale-1x, 5px));
  border-width: var(--tct-checkbox-group-border-width, 1px);
  border-color: transparent;
  border-style: solid;
  border-radius: var(--tct-checkbox-group-border-radius, var(--app-border-radius-1, 4px));
}
:host([has-error]) .slot-container {
  border-color: var(--tct-checkbox-group-error-border-color, var(--const-stoplight-alert, #d20a0a));
}
:host([has-error=false]) .slot-container {
  border-color: transparent;
}

.optional-tag {
  margin-left: var(--tct-checkbox-group-label-optional-margin-left, var(--app-scale-1x, 5px));
  color: var(--tct-checkbox-group-label-optional-color, var(--t-checkbox-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-checkbox-group-label-optional-font-size, var(--const-px-12, 12px));
  font-weight: var(--tct-checkbox-group-label-optional-font-weight, 400);
}

.flexed {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.flexed.left {
  justify-content: left;
}