/**
 * Smort Faq Block Styles
 */

.smort-faq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-10) 0;
  gap: var(--space-8);
}

.smort-faq-subtitle-container {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  .smort-faq-subtitle {
    margin: 0;
  }
}
.smort-faq-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
}
.smort-faq-faq-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
  max-width: 900px;

  .smort-faq-faq-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--space-4);

    .smort-faq-faq-question {
      font-size: var(--text-2xl);
      font-weight: 600;
      margin: 0;
      line-height: 1.2;
    }
  }
  button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: var(--space-4) var(--space-8);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2px 4px rgb(0 0 0 / 0.1);
    backdrop-filter: blur(5px);

    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(172, 172, 172, 0.3);

    &:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    svg {
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }
    &:has(+ .smort-faq-faq-answer[aria-hidden="false"]) {
      svg {
        transform: rotate(180deg);
      }
    }
  }
  .smort-faq-faq-answer {
    height: 0;
    padding: 0 var(--space-8);
    transition: height 0.3s ease;
    overflow: hidden;

    /* Lista-styling */
    ul,
    ol {
      margin: var(--space-3) 0;
      padding-left: var(--space-6);
    }

    ul {
      list-style-type: disc;
    }

    ol {
      list-style-type: decimal;
    }

    li {
      margin-bottom: var(--space-2);
      padding-left: var(--space-2);
      line-height: 1.6;
    }

    li::marker {
      color: currentColor;
    }

    /* Nested lists */
    ul ul,
    ol ol,
    ul ol,
    ol ul {
      margin-top: var(--space-2);
      margin-bottom: var(--space-2);
    }

    p {
      margin: var(--space-3) 0;
      line-height: 1.6;
    }
  }
}
