.app-detail-faq {
  background-color: rgba(var(--color-background));
}

.app-detail-faq__inner {
  max-width: var(--content-width, 1310px);
  margin-inline: auto;
  padding-inline: 28px !important;
  box-sizing: border-box;
  gap: 0 !important;
  row-gap: 0 !important;
  column-gap: 0 !important;
}

.app-detail-faq__inner > :first-child {
  margin-bottom: 40px;
  font-size: 40px;
  font-weight: 700;
  line-height: 49px;
}

.app-faq-item {
  display: block;
  width: 100%;
  border-block-end: 1px solid rgba(0, 0, 0, 0.08);
}

.app-faq-item details {
  width: 100%;
  margin: 0;
}

.app-faq-item summary {
  display: flex;
  align-items: center;
  padding: 24px 12px 24px 24px;
  cursor: pointer;
  list-style: none;
}

.app-faq-item summary::-webkit-details-marker {
  display: none;
}

.app-faq-item summary::marker {
  display: none;
}

.app-faq-item__question {
  flex: 1;
  word-break: break-word;
}

.app-faq-item__question > * {
  margin: 0;
}

.app-faq-item__question,
.app-faq-item__question * {
  font-size: 20px;
  font-weight: 600;
}

.app-faq-item__toggle {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-inline-start: 8px;
  background-image: var(--faq-fold-open);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

details[open] > summary .app-faq-item__toggle {
  background-image: var(--faq-fold-close);
}

.app-faq-item__collapse {
  display: none;
}

details[open] + .app-faq-item__collapse {
  display: block;
}

.app-faq-item__answer {
  padding: 0 24px 24px 24px;
  overflow-x: auto;
  word-break: break-word;
  font-size: 16px;
}

.app-faq-item__answer > *:first-child {
  margin-block-start: 0;
}

.app-faq-item__answer > *:last-child {
  margin-block-end: 0;
}

@media (hover: hover) and (pointer: fine) {
  .app-faq-item summary {
    border-radius: 12px;
  }

  .app-faq-item summary:hover {
    background-color: rgba(14, 20, 36, 0.06);
  }
}

@media (max-width: 991px) {
  .app-detail-faq__inner {
    padding-inline: var(--main-padding, 16px) !important;
  }

  .app-faq-item summary {
    padding: 12px;
  }

  .app-faq-item__answer {
    padding: 0 12px 12px 12px;
  }

  .app-detail-faq__inner > :first-child {
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 34px;
  }

  .app-faq-item__question,
  .app-faq-item__question * {
    font-size: 16px;
  }

  .app-faq-item__answer {
    font-size: 14px;
  }

  .app-faq-item__toggle {
    width: 16px;
    height: 16px;
  }
}
