.faq-list {
  background-color: var(--primary-main);
  min-height: 257px;

  @media (width >=1024px) {
    min-height: 347px;
  }

  &::before {
    content: '';
    background-color: var(--primary-main);
    width: 100%;
    height: 7px;
    margin-top: -6px;
    position: absolute;
  }

  .faq-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 32px;

    .faq-list-title {
      font-family: var(--body-heading-font-family);
      color: var(--tertiary-white);
      font-size: var(--heading-font-3-mob);
      font-weight: var(--keplar-fw-700);
      line-height: var(--heading-lh-1--mob-display);
      letter-spacing: 0.64px;
      margin-top: 0;
      margin-bottom: 40px;
    }

    .faq-list__disclaimer {
      p {
        margin: 0;
      }

      color: var(--tertiary-white);
      font-size: var(--body-font-size-xxxs);
      font-weight: var(--fw-500);
      line-height: var(--heading-lh-17-mob-text-normal);
      margin-top: 24px;

      a {
        color: var(--anchor-nexa-color);
      }
    }

    .faq-items .faq-items-container {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin: 0;
    }

    .faq-items .faq-items-container .faq-item {
      display: flex;
      flex-direction: column;
      padding: 12px 8px;
      border-bottom: 1px solid var(--tertiary-deep-Grey);
      background: var(--Gradients-Gradient-4---60, linear-gradient(238deg, rgba(56, 79, 110, 0.6) -11.12%, rgba(91, 91, 91, 0.6) 111.5%));

      .faq-item-title {
        display: inline-flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        cursor: pointer;
        background: unset;
        border: unset;
        width: 100%;
        padding: 0;

        @media (width < 768px) {
          display: flex;
          justify-content: space-between;
          align-items: center;
          gap: 12px;
        }

        >span,
        > :is(h1, h2, h3, h4) {
          margin: 0;
          font-family: var(--font-primary-nexa);
          color: var(--tertiary-white);
          font-size: 0.875rem;
          line-height: 1.25rem;
          font-weight: 500;
          text-align: left;

          @media (width < 768px) {
            margin: 0;
          }
        }

        .toggle_icon {
          background-image: url('/icons/plus.svg');
          background-repeat: no-repeat;
          background-position: right;
          background-size: cover;
          height: 16px;
          width: 16px;
          flex-shrink: 0;

          @media (width < 768px) {
            height: 16px;
            width: 16px;
            background-size: contain;
          }
        }

        &.active {
          .toggle_icon {
            background-image: url('/icons/minus.svg');
          }
        }
      }

      .faq-item-description {
        color: var(--tertiary-light-grey);
        max-height: 0;
        overflow: hidden;
        transition:
          max-height 0.2s ease-out,
          padding 0.2s ease-out;
        font-family: var(--font-primary-nexa);
        font-size: 0.75rem;
        line-height: 1.125rem;
        font-weight: var(--fw-400);

        p {
          margin: 0;
          text-align: justify;
          padding-top: 16px;

          strong {
            font-weight: var(--fw-500);
          }

          a {
            color: var(--tertiary-white);
            text-decoration: underline;
            font-weight: var(--fw-500);
          }
        }

        ul {
          li {
            list-style-type: disc;
            margin-left: 26px;
          }
        }

        .faq-table-wrapper {
          margin-top: var(--space-16px);

          .faq-table {
            width: 100%;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--background-color);

            tr {
              display: flex;
              justify-content: flex-start;
              text-align: left;
              border-bottom: 1px solid var(--background-color);
            }

            td,
            th {
              flex: 1;
              text-align: left;
              color: var(--tertiary-white);
              font-family: var(--font-primary-nexa);
              font-style: normal;
              font-weight: var(--fw-500);
              font-size: var(--body-font-size-xxxs);
              line-height: var(--heading-lh-25-mob-text-small);
              padding: 1rem;

              @media (width>=1024px) {
                font-size: var(--body-font-size-xxs);
                line-height: var(--heading-lh-6-des);
              }
            }

            td {
              font-size: var(--body-font-size-xxs);
              line-height: var(--heading-lh-19-mob-text-small);
              font-weight: var(--fw-400);
              padding: 0 1rem;
            }

            tbody {
              tr {
                padding: var(--space-16px) 0;

                @media (width>=1024px) {
                  padding: var(--space-12px) 0;
                }
              }
            }
          }
        }
      }

      .faq-item-description.active {
        opacity: 1;
        height: auto;
      }

      &:first-child {
        .faq-item-description::-webkit-scrollbar {
          display: none;
        }
      }
    }
  }

  .faq-toggle-button {
    height: 42px;
    width: 100%;
    border: none;
    border-bottom: 1px solid var(--tertiary-deep-Grey);
    background: var(--Gradients-Gradient-3---40, linear-gradient(212deg, rgba(157, 207, 218, 0.4) -61.57%, rgba(22, 29, 31, 0.4) 100.57%));
    border-radius: 0px;
    text-align: left;
    font-family: var(--font-primary-nexa);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    padding-top: 12px;
    padding-left: 8px;
    padding-bottom: 14px;
    margin-top: 8px;
    color: var(--tertiary-white);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }

  .arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .faq-item-description {
    table {
      border: 1px solid var(--dark-color);
      border-collapse: collapse;
      margin: 10px 0;
    }

    td {
      padding: 0.525rem;
      border: 1px solid var(--dark-color);
      vertical-align: top;
    }
  }

  @media (width >=1024px) {
    .faq-container {
      padding: 6rem 3.5rem 2rem 3.5rem;
      align-items: flex-start;
      gap: 106px;
      align-self: stretch;

      .faq-list-title  {
        width: 533px;
        font-size: var(--heading-font-5-des);
        font-style: normal;
        line-height: normal;
        letter-spacing: 0.07rem;
      }

      .faq-toggle-button {
        height: 55px;
        width: 100%;
        border: none;
        border-bottom: 1px solid var(--tertiary-deep-Grey);
        background: var(--Gradients-Gradient-3---40, linear-gradient(212deg, rgba(157, 207, 218, 0.4) -61.57%, rgba(22, 29, 31, 0.4) 100.57%));
        border-radius: 0px;
        text-align: left;
        font-family: var(--font-primary-nexa);
        font-size: 0.875rem;
        font-style: normal;
        line-height: 1.25rem;
        padding: 16px;
        padding-bottom: 19px;
        margin-top: 8px;
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
      }

      .arrow-icon {
        margin-left: auto;
        transition: transform 0.3s ease;
        width: 20px;
        height: 20px;
        flex-shrink: 0;
      }

      .faq-items .faq-items-container .faq-item {
        padding: 16px;

        .faq-item-title {
          gap: 24px;
          display: flex;
          justify-content: space-between;
          align-items: center;
          cursor: pointer;

          >span,
          > :is(h1, h2, h3, h4) {
            font-size: 0.875rem;
            font-style: normal;
            line-height: 1.25rem;
            font-weight: 500;
          }

          .toggle_icon {
            width: 20px;
            height: 20px;
            flex-shrink: 0;
          }
        }

        .faq-item-description p {
          font-size: 0.75rem;
          line-height: 1.125rem;
          text-align: justify;
          color: var(--tertiary-white);
        }
      }
    }
  }

  &.service {
    &::before {
      display: none;
    }
  }
}
