@import '../../scss/mixin';

.group {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-bottom: 1px solid var(--neutral-400);

  &.open {
    .icon {
      svg {
        transform: rotate(180deg);
      }
    }

    .items {
      display: flex;
    }
  }
}

.head {
  @include btn();
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  padding: 12px;

  @include bp(md) {
    padding: 16px 24px;
  }
}

.title {
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: var(--neutral-700);
}

.actions {
  display: flex;
  gap: 8px;
}

.count {
  color: var(--neutral-600);
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}

.icon {
  color: var(--neutral-700);

  svg {
    width: 24px;
    height: 24px;
    transition: transform ease-in-out 350ms;
  }
}

.items {
  display: none;
  flex-direction: column;
}
