.md-checkboxgroup {
  font-family: var(--md-typography-family-body);
  font-size: var(--md-typography-size-16);
  border: none;
  padding: 0;
  margin: 0;
}

.md-checkboxgroup .md-checkboxgroup__label-wrapper {
  margin-bottom: var(--md-size-8);
}

.md-checkboxgroup .md-checkboxgroup__label {
  display: flex;
  align-items: center;
  font-weight: var(--md-typography-weight-medium);
  padding: 0;
  color: var(--md-color-text-primary);
}

.md-checkboxgroup .md-checkboxgroup__label > * + * {
  margin-left: var(--md-size-16);
}

.md-checkboxgroup .md-checkboxgroup__help-text {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.15s ease-out;
}

.md-checkboxgroup .md-checkboxgroup__help-text--open {
  padding-top: var(--md-size-8);
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.md-checkboxgroup .md-checkboxgroup__options {
  display: flex;
  flex-direction: row;
  gap: var(--md-size-16);
}

.md-checkboxgroup .md-checkboxgroup__options--vertical {
  flex-direction: column;
}

.md-checkboxgroup .md-checkboxgroup__options--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(max-content, 1fr));
}

.md-checkboxgroup__error {
  color: var(--md-color-attention-error-primary);
  font-size: var(--md-typography-size-14);
  margin-top: var(--md-size-8);
}
