@use "../mixins/function.scss" as *;
@use "../mixins/mixins.scss" as *;

@include b(collapse) {
  background-color: getCssVar("color", "bg-2");
  display: flex;
  flex-direction: column;
  width: 100%;

  @include e(item) {
    border-bottom: 1px solid getCssVar("color", "fill-3");

    @include when(disabled) {
      @include be(collapse, header) {
        cursor: not-allowed;
        color: getCssVar("color", "text-3");

        &:hover {
          background-color: transparent;
        }
      }

      @include be(collapse, header-arrow) {
        color: getCssVar("color", "text-3");
      }
    }
  }

  @include e(header) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    color: getCssVar("color", "text-1");
    transition: background-color 0.2s;
  }

  @include e(header-title) {
    flex: 1;
  }

  @include e(header-arrow) {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
    font-size: 18px;
    margin-right: 8px;
  }

  @include e(extra) {
    margin-left: 8px;
  }

  @include e(content) {
    font-size: 14px;
    color: getCssVar("color", "text-1");
    background-color: getCssVar("color", "bg-3");
  }
}
