/* Use this file for components that are used across the site moving forward */




/* Accordion section */
.accordion-section { 

  .wrapper {
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
  }

  .accordion-section-header {
    text-align: center;
    margin-bottom: 40px;
    grid-column: 1 / -1;

    p {
      /* @include p; */
      max-width: 600px;
      margin: 0 auto;
    }
  }

  .accordion-item {
    grid-column: 1 / -1; /* Remove to have 2 columns */
    border: 1px solid #dddddd;
    border-radius: 8px;
    background-color: #ffffff;
    height: auto;
    &.active {
      svg:not(.ad-group-link-icon) {
        transform: rotateX(180deg);
      }
      .accordion-header {
        background-color: var(--background);
        border-radius: 8px 8px 0 0;
      }
      .accordion-content {
        background-color: var(--background);
        border-radius: 0 0 8px 8px;
      }
    }

    .accordion-header {
      cursor: pointer;
      padding: 16px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      column-gap: 1rem;
      
      h3 {
        margin: 0;
        font-size: 16px;
        color: var(--text_dark);
        &:hover {
          text-decoration: underline;
          text-underline-offset: 6px;
        }
        
        @media (max-width: 768px) {
          /* @include h6; */
        }
      }
      svg {
        transition: all 0.5s ease;
        min-width: 18px;
        path {
          fill: var(--link_light);
        }
      }

    }
    .accordion-content {
      padding: 0 20px 20px;
    }

  }
}