.help-faq-page {
  max-width: 840px;
}

.help-faq-section-page .settings-title-card {
  flex-wrap: nowrap;
}

body.helpcenter-page .help-faq-section-page .settings-title-card > .settings-back.help-faq-title-back {
  display: inline-flex !important;
}

.help-faq-section-page .settings-title-card > .settings-title {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.help-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.help-search-form .settings-field {
  min-width: 0;
}

.help-search-form input[type="search"] {
  width: 100%;
}

.help-faq-actions {
  margin-top: 16px;
}

.help-faq-index {
  padding-bottom: 8px;
}

.faq-section-list,
.help-search-result-list {
  border-top: 1px solid #e6e8ec;
}

.faq-section-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 6px;
  border-bottom: 1px solid #e6e8ec;
  color: #111827;
  text-decoration: none;
}

.faq-section-row:hover {
  background: #f8fafc;
}

.faq-section-row:focus-visible,
.faq-accordion-question:focus-visible,
.help-search-result:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.faq-section-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.faq-section-chevron,
.help-search-result-chevron {
  color: #475569;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.faq-accordion-card {
  overflow: hidden;
  border: 1px solid #e6e8ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.faq-accordion-item {
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #e6e8ec;
  border-radius: 0;
  background: transparent;
}

.faq-accordion-item:last-child {
  border-bottom: 0;
}

.faq-accordion-question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 14px 16px;
  color: #111827;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
}

.faq-accordion-question::-webkit-details-marker {
  display: none;
}

.faq-accordion-question:hover {
  background: #f8fafc;
}

.faq-accordion-question-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.faq-accordion-marker {
  color: #475569;
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.faq-accordion-marker--open {
  display: none;
  font-size: 20px;
}

.faq-accordion-item[open] .faq-accordion-marker--closed {
  display: none;
}

.faq-accordion-item[open] .faq-accordion-marker--open {
  display: inline;
}

.faq-accordion-item[open] .faq-accordion-question {
  padding-bottom: 8px;
}

.faq-accordion-answer {
  padding: 0 16px 17px;
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}

.faq-accordion-answer p,
.help-search-empty p {
  margin: 0;
}

.help-search-results {
  padding-bottom: 8px;
}

.help-search-result {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 13px 38px 13px 4px;
  border-bottom: 1px solid #e6e8ec;
  color: #111827;
  text-decoration: none;
}

.help-search-result:hover {
  background: #f8fafc;
}

.help-search-result-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.help-search-result-section {
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.help-search-result-answer {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-search-result-chevron {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
}

@media (max-width: 680px) {
  .help-search-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-search-form .settings-btn,
  .help-faq-actions .settings-card-link {
    width: 100%;
  }

  .help-faq-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .faq-section-row {
    grid-template-columns: minmax(0, 1fr) 22px;
    min-height: 56px;
    gap: 10px;
  }

  .faq-accordion-question {
    min-height: 56px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .faq-accordion-answer {
    padding: 0 14px 15px;
    font-size: 13px;
  }
}
