.help-faq-page .help-search {
  margin-bottom: 1.25rem;
  position: relative;
}

.help-faq-page .help-search__label {
  display: block;
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--violet, #4e2a96);
}

.help-faq-page .help-search__field {
  position: relative;
  max-width: 40rem;
}

.help-faq-page .help-search__input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 44px 12px 16px;
  border: 1px solid var(--line, rgba(72, 42, 131, 0.16));
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--text, #18152a);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.help-faq-page .help-search__input:focus {
  outline: none;
  border-color: var(--violet-3, #8f64e0);
  box-shadow: 0 0 0 3px rgba(78, 42, 150, 0.12);
}

.help-faq-page .help-search__clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #4f4763);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.help-faq-page .help-search__clear:hover {
  background: rgba(78, 42, 150, 0.08);
  color: var(--violet, #4e2a96);
}

.help-faq-page .help-search__clear[hidden] {
  display: none !important;
}

.help-faq-page .help-search__hint {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

.help-faq-page #faq-search-meta {
  margin: 0 0 1rem;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--bg-soft, #f3eef8);
  color: var(--violet, #4e2a96);
  font-size: 0.9rem;
  font-weight: 600;
}

.help-faq-page #faq-search-meta[hidden] {
  display: none !important;
}

.help-faq-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.help-faq-nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-soft, #f3eef8);
  color: var(--violet, #4e2a96);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.help-faq-nav a:hover {
  background: #eae4f4;
}

.help-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}

.help-tag {
  padding: 8px 14px;
  border: 1px solid var(--line, rgba(72, 42, 131, 0.12));
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text, #18152a);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.help-tag:hover {
  border-color: var(--violet-3, #8f64e0);
}

.help-tag.is-active {
  background: var(--violet, #4e2a96);
  border-color: var(--violet, #4e2a96);
  color: #fff;
}

.help-faq-section {
  margin-bottom: 2rem;
}

.help-faq-section__title {
  margin: 0 0 12px;
  font-size: clamp(1.125rem, 2.5vw, 1.35rem);
  font-weight: 700;
  color: var(--violet, #4e2a96);
}

.help-faq-section__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.help-faq-item {
  border: 1px solid var(--line, rgba(72, 42, 131, 0.12));
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.help-faq-item.is-search-hit {
  border-color: rgba(78, 42, 150, 0.28);
  box-shadow: 0 1px 0 rgba(78, 42, 150, 0.06);
}

.help-faq-item[hidden],
.help-faq-section[hidden] {
  display: none !important;
}

.help-faq-item summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.help-faq-item summary::-webkit-details-marker {
  display: none;
}

.help-faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted, #4f4763);
}

.help-faq-item[open] summary::after {
  content: "\2212";
}

.help-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  line-height: 1.55;
  color: var(--muted, #4f4763);
}

.help-faq-list {
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .help-faq-page .help-search__input {
    font-size: 16px; /* avoid iOS zoom */
  }

  .help-faq-page .help-search__field,
  .help-faq-page .help-search__input {
    max-width: none;
  }

  .help-tags {
    margin-bottom: 1rem;
    gap: 6px;
  }

  .help-tag {
    padding: 7px 12px;
    font-size: 0.8125rem;
  }

  .help-faq-nav {
    gap: 6px 8px;
    margin-bottom: 1rem;
  }

  .help-faq-nav a {
    padding: 5px 10px;
    font-size: 0.8125rem;
  }
}
