@use '../../styles/theming';

.icon {
  padding-top: 0.35em;
  padding-left: 0.5em;
  padding-right: 0.5em;
}

.accordion {
  border: 1px solid theming.$panelAccentColor;
  border-radius: 2px;
}

.item + .item {
  border-top: 1px solid theming.$panelAccentColor;
}

.heading {
  font-size: inherit;
  padding: 0;
  margin: 0;
}

.button {
  box-sizing: border-box;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
  padding: 0.75em 1em;
  border: none;
  background-color: theming.$panelBackgroundColor;
  color: theming.$panelTextColor;
  cursor: pointer;
  text-align: left;

  &:hover,
  &:focus {
    background-color: theming.$panelAccentColor;
  }
}

.chevron {
  transform-origin: center center;
  transition: transform 0.2s linear;

  .button[aria-expanded='true'] & {
    transform: rotate(90deg);
  }
}

.content {
  padding: 1.25em;
}
