.custom-accordion {
  background: #FFFFFF;
  box-shadow: 0 0 3px 0 rgba(0, 0, 0, 0.25);
  padding: 1.2rem 2rem;
}

.custom-accordion.open {
  padding: 1.2rem 2rem 2rem 2rem;

  .custom-accordion__header {
    margin-bottom: 1.2rem;

    svg {
      transform: rotate(180deg);
    }

    &:before {
      inset: -1.2rem -2rem -2rem -2rem;
    }
  }
}

.custom-accordion__header {
  color: #000000;
  font-family: flanders-sans, sans-serif;
  font-size: 2.2rem;
  font-weight: 300;
  line-height: normal;
  padding: 0;
  border: unset;
  display: flex;
  gap: 1.6rem;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
  position: relative;
  transition: all 0.4s cubic-bezier(0.5, 0, 0, 1);

  &:before {
    content: '';
    position: absolute;
    inset: -1.2rem -2rem;
  }

  span {
    text-align: start;
  }

  svg {
    flex-shrink: 0;
    height: 2.4rem;
    width: 2.4rem;
    transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
  }
}

.custom-accordion__tag {
  margin-left: auto;
  color: #FFFFFF;
  background: #000000;
  font-size: 1.2rem;
  line-height: 18px;
  border-radius: 0.4rem;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
}

.custom-accordion__content-wrapper {
  height: 0;
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.5, 0, 0, 1);
}
