.faq-list-section {
  margin: 55px auto 0;
}

.faq-search {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 18px;
}

.faq-search select,
.faq-search input {
  height: 38px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  outline: none;
}

.faq-search select {
  width: 96px;
  padding: 0 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff
    url("data:image/svg+xml;charset=UTF-8,<svg width='15' height='15' xmlns='http://www.w3.org/2000/svg'><polygon points='4,6 8,11 12,6' fill='%23333'/></svg>")
    no-repeat 90% center/16px 16px;
  cursor: pointer;
}

.faq-search input {
  width: 260px;
  padding: 0 12px;
}

.faq-search button {
  width: 64px;
  height: 38px;
  border: 0;
  background: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
}

.faq-summary {
  margin-bottom: 14px;
  color: #555;
  font-size: 15px;
  text-align: right;
}

.faq-summary strong {
  color: #222;
}

.faq-accordion {
  border-top: 2px solid #222;
}

.faq-item {
  border-bottom: 1px solid #e5e5e5;
}

.faq-question {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  border: 0;
  background: #fff;
  padding: 18px 20px;
  color: #222;
  text-align: left;
  cursor: pointer;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
  background: #f8fafc;
}

.faq-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.faq-mark img {
  width: 20px;
}

.faq-mark.answer {
  flex: 0 0 42px;
  background: #f0f4fb;
  color: var(--color-primary);
}

.faq-question-text {
  min-width: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.faq-toggle {
  position: relative;
  width: 24px;
  height: 24px;
}

.faq-toggle::before,
.faq-toggle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: #333;
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] .faq-toggle::after {
  opacity: 0;
}

.faq-answer {
  display: flex;
  gap: 16px;
  padding: 0 20px 28px 20px;
  background: #f8fafc;
}

.faq-answer[hidden] {
  display: none;
}

.faq-answer-body {
  min-width: 0;
  /* padding-top: 8px; */
  color: #333;
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.faq-answer-content {
  min-width: 0;
  flex: 1;
}

.faq-attachments {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #d8dde5;
  color: #222;
  font-size: 16px;
}

.faq-attachments strong {
  white-space: nowrap;
}

.faq-attachment-links {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.faq-attachment-links a {
  width: fit-content;
  max-width: 100%;
  color: #253b5f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.faq-answer-body p:first-child {
  margin-top: 0;
}

.faq-empty {
  margin: 0;
  padding: 35px 16px;
  border-bottom: 1px solid #e5e5e5;
  color: #777;
  text-align: center;
  font-size: var(--font-seciton-title-sm);
}

@media (max-width: 768px) {
  .faq-search {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 58px;
  }

  .faq-search input,
  .faq-search select,
  .faq-search button {
    width: auto;
  }

  .faq-summary {
    text-align: left;
  }

  .faq-question {
    min-height: 66px;
    grid-template-columns: 34px minmax(0, 1fr) 24px;
    gap: 10px;
    padding: 16px 12px;
  }

  .faq-mark {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .faq-mark.answer {
    flex-basis: 34px;
  }

  .faq-question-text {
    font-size: 17px;
  }

  .faq-answer {
    gap: 10px;
    padding: 0 12px 22px 12px;
  }

  .faq-answer-body {
    font-size: 15px;
  }

  .faq-attachments {
    grid-template-columns: 1fr;
    font-size: 14px;
  }
}
