.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}
.accordion__header {
  display: flex;
  flex-direction: row;
  padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-radius 0.05s ease-in-out;
  border-radius: calc(var(--spacing-unit) * 2);

  &.accordion__header--open {
    border-radius: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2)
      var(--spacing-unit) var(--spacing-unit);
  }
}

.accordion__header__label,
.accordion__header__indicators {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  text-transform: capitalize;

  > svg {
    color: currentColor;
  }
}

.accordion__header__indicators {
  color: var(--text-secondary);
}

.accordion__header__indicators__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: currentColor;

  > svg {
    align-items: center;
    justify-content: center;
    color: currentColor;
  }
}

.accordion__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  background-color: var(--surface);
  padding: calc(var(--spacing-unit) * 4);
  border-radius: var(--spacing-unit) var(--spacing-unit)
    calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 2);
}
