/* Public help pages: help center, topics, articles, search results and FAQs. */

.help-page {
  --help-ink: #17120f;
  --help-muted: #6f6660;
  --help-line: #ebe3dc;
  --help-surface: #ffffff;
  --help-wash: #f7f2ec;
  --help-accent: #cf4d12;
  --help-accent-dark: #9c3509;
  --help-accent-wash: #fff1e8;
  --help-mark: #ffe3b8;
  --help-faq: #2f6b4f;
  --help-faq-wash: #e9f5ee;
  --help-hero-start: #8f2d07;
  --help-hero-end: #e2681c;
  --help-shadow: 0 12px 34px rgba(57, 36, 20, .08);
  --help-radius: 16px;
  display: block;
  padding-bottom: 56px;
  background: var(--help-wash);
  color: var(--help-ink);
}

.night-mode .help-page {
  --help-ink: #f5efe9;
  --help-muted: #b3aaa3;
  --help-line: #34302d;
  --help-surface: #1c1b1f;
  --help-wash: #131215;
  --help-accent: #f07a3c;
  --help-accent-dark: #ff9a63;
  --help-accent-wash: #2f2119;
  --help-mark: #5a3a14;
  --help-faq: #8fdcaa;
  --help-faq-wash: #183324;
  --help-hero-start: #3b1606;
  --help-hero-end: #7a2f0c;
  --help-shadow: 0 12px 34px rgba(0, 0, 0, .4);
}

.help-page [hidden] {
  display: none !important;
}

.help-page a {
  color: inherit;
}

.help-page mark {
  padding: 0 1px;
  border-radius: 3px;
  background: var(--help-mark);
  color: inherit;
}

.help-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.help-section-title {
  margin: 0 0 14px;
  color: var(--help-ink);
  font-size: 17px;
  font-weight: 600;
}

.help-card {
  padding: 20px;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
  box-shadow: var(--help-shadow);
}

.help-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.help-more {
  display: inline-flex;
  margin-top: 12px;
  color: var(--help-accent) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.help-card__head .help-more {
  margin-top: 0;
}

/* Hero with the main search */
.help-hero {
  padding: 40px 0 36px;
  background: linear-gradient(135deg, var(--help-hero-start), var(--help-hero-end));
  color: #fff;
}

.help-hero__inner {
  max-width: 760px;
  text-align: center;
}

.help-hero__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 26px;
  font-weight: 600;
}

/* Search box and suggestions */
.help-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px;
  border: 1px solid var(--help-line);
  border-radius: 14px;
  background: var(--help-surface);
  text-align: left;
}

.help-search:focus-within {
  border-color: var(--help-accent);
  box-shadow: 0 0 0 3px rgba(207, 77, 18, .16);
}

.help-search--hero {
  padding: 8px;
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(30, 10, 0, .28);
}

.help-search__icon {
  margin-left: 10px;
  color: var(--help-muted);
  font-size: 15px;
}

.help-search__input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--help-ink);
  font-size: 16px;
  outline: 0;
}

.help-search__input::placeholder {
  color: var(--help-muted);
  font-size: 16px;
}

.help-search__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.help-search__button {
  display: none;
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--help-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
}

.help-search__button:hover,
.help-search__button:focus-visible {
  background: var(--help-accent-dark);
}

.help-search__list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--help-line);
  border-radius: 14px;
  background: var(--help-surface);
  box-shadow: var(--help-shadow);
}

.help-search__option {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--help-ink) !important;
  text-decoration: none;
}

.help-search__option:hover,
.help-search__option.is-active {
  background: var(--help-wash);
}

.help-search__option-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.help-search__option-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--help-muted);
  font-size: 12px;
}

.help-search__option-all {
  color: var(--help-accent);
  font-size: 14px;
  font-weight: 500;
}

.help-search__badge,
.help-result__type {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--help-accent-wash);
  color: var(--help-accent);
  font-size: 12px;
  font-weight: 500;
}

.help-search__badge--faq,
.help-result__type--faq {
  background: var(--help-faq-wash);
  color: var(--help-faq);
}

.help-search__empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--help-muted);
  font-size: 14px;
}

/* Suggested questions under the hero search */
.help-suggested {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 18px;
}

.help-suggested__label {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 500;
}

.help-suggested__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-chip {
  display: inline-flex;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  color: #fff !important;
  font-size: 14px;
  text-decoration: none;
}

.help-chip:hover,
.help-chip:focus-visible {
  background: rgba(255, 255, 255, .24);
}

/* Sections on the help center */
.help-sections {
  display: grid;
  gap: 32px;
  padding-top: 32px;
}

.help-topics {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-topic {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
  box-shadow: var(--help-shadow);
  transition: border-color .15s ease, transform .15s ease;
}

.help-topic:hover {
  border-color: var(--help-accent);
}

.help-topic__head {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.help-topic__icon {
  display: inline-flex;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--help-accent-wash);
  color: var(--help-accent);
  font-size: 18px;
}

.help-topic__name {
  display: block;
  color: var(--help-ink);
  font-size: 16px;
  font-weight: 600;
}

.help-topic__count {
  display: block;
  color: var(--help-muted);
  font-size: 13px;
}

.help-topic__articles {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-topic__articles a {
  color: var(--help-ink);
  font-size: 14px;
  text-decoration: none;
}

.help-topic__articles a:hover,
.help-topic__articles a:focus-visible {
  color: var(--help-accent);
  text-decoration: underline;
}

.help-topic__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--help-accent) !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.help-columns {
  display: grid;
  gap: 20px;
}

/* Link lists */
.help-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-links li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--help-line);
}

.help-links li:last-child {
  border-bottom: 0;
}

.help-links a {
  color: var(--help-ink);
  font-size: 15px;
  text-decoration: none;
}

.help-links a:hover,
.help-links a:focus-visible {
  color: var(--help-accent);
}

.help-links__icon {
  width: 22px;
  color: var(--help-muted);
}

.help-links__meta {
  flex: 0 0 auto;
  color: var(--help-muted);
  font-size: 13px;
}

.help-links--numbered {
  counter-reset: help-rank;
}

.help-links--numbered li {
  justify-content: flex-start;
  flex-wrap: wrap;
  counter-increment: help-rank;
}

.help-links--numbered li::before {
  content: counter(help-rank);
  min-width: 22px;
  color: var(--help-accent);
  font-size: 14px;
  font-weight: 600;
}

.help-links--numbered .help-links__meta {
  flex-basis: 100%;
  padding-left: 34px;
}

/* FAQ disclosure */
.help-faq-list {
  display: grid;
}

.help-faq {
  border-bottom: 1px solid var(--help-line);
}

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

.help-faq summary {
  position: relative;
  padding: 14px 32px 14px 0;
  color: var(--help-ink);
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}

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

.help-faq summary::after {
  content: '\f078';
  position: absolute;
  top: 15px;
  right: 4px;
  color: var(--help-muted);
  font-family: 'Font Awesome 6 Free';
  font-size: 12px;
  font-weight: 900;
  transition: transform .15s ease;
}

.help-faq[open] summary::after {
  transform: rotate(180deg);
}

.help-faq__answer {
  padding: 0 0 16px;
}

/* Topic, article, search and FAQ page banner */
.help-banner {
  padding: 22px 0 24px;
  border-bottom: 1px solid var(--help-line);
  background: var(--help-surface);
}

.help-banner__row {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}

.help-banner__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.help-banner__title {
  margin: 0;
  color: var(--help-ink);
  font-size: 22px;
  font-weight: 600;
}

.help-banner__meta {
  margin: 2px 0 0;
  color: var(--help-muted);
  font-size: 14px;
}

.help-banner--compact .help-search {
  margin-top: 12px;
}

.help-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  color: var(--help-muted);
  font-size: 13px;
  list-style: none;
}

.help-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--help-line);
}

.help-breadcrumb a {
  color: var(--help-muted) !important;
  text-decoration: none;
}

.help-breadcrumb a:hover {
  color: var(--help-accent) !important;
}

.help-breadcrumb [aria-current] {
  color: var(--help-ink);
}

/* Main column with a side column */
.help-layout {
  display: grid;
  gap: 24px;
  padding-top: 28px;
  padding-bottom: 32px;
}

.help-layout__side {
  display: grid;
  align-content: start;
  gap: 20px;
}

/* Result and article lists */
.help-results {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-result {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
}

.help-result__title {
  color: var(--help-ink) !important;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

a.help-result__title:hover,
a.help-result__title:focus-visible {
  color: var(--help-accent) !important;
}

.help-result .help-faq {
  width: 100%;
  border: 0;
}

.help-result .help-faq summary {
  padding-top: 0;
  padding-bottom: 0;
  font-size: 16px;
  font-weight: 600;
}

.help-result .help-faq summary::after {
  top: 2px;
}

.help-result .help-faq[open] + .help-result__snippet {
  display: none;
}

.help-result .help-faq__answer {
  padding: 10px 0 0;
}

.help-result__snippet {
  margin: 0;
  color: var(--help-muted);
  font-size: 14px;
  line-height: 1.55;
}

.help-result__meta {
  color: var(--help-muted) !important;
  font-size: 13px;
  text-decoration: none;
}

a.help-result__meta:hover {
  color: var(--help-accent) !important;
}

.help-results__count {
  margin: 0 0 4px;
  color: var(--help-ink);
  font-size: 18px;
  font-weight: 600;
}

.help-results__corrected {
  margin: 0 0 14px;
  color: var(--help-muted);
  font-size: 14px;
}

.help-results__count + .help-results {
  margin-top: 14px;
}

.help-empty {
  padding: 32px 20px;
  border: 1px dashed var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
  color: var(--help-muted);
  font-size: 15px;
  text-align: center;
}

.help-empty__title {
  margin: 0 0 6px;
  color: var(--help-ink);
  font-size: 18px;
  font-weight: 600;
}

.help-empty p {
  margin: 0;
}

/* Article */
.help-article {
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
}

.help-article__title {
  margin: 0;
  color: var(--help-ink);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
}

.help-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 10px 0 18px;
  color: var(--help-muted);
  font-size: 13px;
}

.help-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--help-accent-wash);
  color: var(--help-accent) !important;
  font-weight: 500;
  text-decoration: none;
}

.help-article__image {
  display: block;
  width: 100%;
  max-height: 360px;
  margin-bottom: 18px;
  border-radius: 12px;
  object-fit: cover;
}

.help-prose {
  color: var(--help-ink);
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.help-prose h2,
.help-prose h3 {
  margin: 1.6em 0 .5em;
  color: var(--help-ink);
  font-size: 18px;
  font-weight: 600;
  scroll-margin-top: 90px;
}

.help-prose h3 {
  font-size: 16px;
}

.help-prose p,
.help-prose ul,
.help-prose ol {
  margin: 0 0 1em;
  color: var(--help-ink);
}

.help-prose li {
  margin-bottom: .35em;
}

.help-prose a {
  color: var(--help-accent) !important;
}

.help-prose img,
.help-prose iframe,
.help-prose video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.help-prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

.help-faq__answer.help-prose {
  color: var(--help-muted);
  font-size: 15px;
}

.help-faq__answer.help-prose p:last-child {
  margin-bottom: 0;
}

/* Table of contents: inline on phones, in the side column on wide screens */
.help-toc {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--help-wash);
}

.help-toc__title {
  margin: 0 0 8px;
  color: var(--help-ink);
  font-size: 14px;
  font-weight: 600;
}

.help-toc ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-toc a {
  color: var(--help-muted) !important;
  font-size: 14px;
  text-decoration: none;
}

.help-toc a:hover,
.help-toc a:focus-visible {
  color: var(--help-accent) !important;
}

.help-toc__level-3 {
  padding-left: 14px;
}

.help-toc--side {
  display: none;
  margin: 0;
  background: var(--help-surface);
}

/* Feedback */
.help-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--help-line);
}

.help-feedback__title {
  margin: 0;
  color: var(--help-ink);
  font-size: 15px;
  font-weight: 500;
}

.help-feedback__buttons {
  display: flex;
  gap: 8px;
}

.help-feedback__button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 1px solid var(--help-line);
  border-radius: 999px;
  background: var(--help-surface);
  color: var(--help-ink);
  font-size: 14px;
  font-weight: 500;
}

.help-feedback__button:hover,
.help-feedback__button:focus-visible {
  border-color: var(--help-accent);
  color: var(--help-accent);
}

.help-feedback__status {
  margin: 0;
  color: var(--help-muted);
  font-size: 14px;
}

/* FAQ page */
.help-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.help-tabs__tab {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--help-line);
  border-radius: 999px;
  background: var(--help-surface);
  color: var(--help-muted);
  font-size: 14px;
  font-weight: 500;
}

.help-tabs__tab.is-active {
  border-color: var(--help-accent);
  background: var(--help-accent);
  color: #fff;
}

.help-tabs__count {
  font-size: 12px;
  opacity: .8;
}

.help-faq-group {
  scroll-margin-top: 90px;
}

.help-faq-group .help-faq {
  scroll-margin-top: 90px;
}

/* Contact options */
.help-contact {
  margin-top: 8px;
}

.help-contact__grid {
  display: grid;
  gap: 12px;
}

.help-contact__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--help-line);
  border-radius: var(--help-radius);
  background: var(--help-surface);
  text-decoration: none;
}

.help-contact__card:hover,
.help-contact__card:focus-visible {
  border-color: var(--help-accent);
}

.help-contact__icon {
  display: inline-flex;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--help-accent-wash);
  color: var(--help-accent);
  font-size: 17px;
}

.help-contact__label {
  flex: 1 1 auto;
  color: var(--help-ink);
  font-size: 15px;
  font-weight: 500;
}

.help-contact__arrow {
  color: var(--help-muted);
  font-size: 13px;
}

/* WhatsApp shortcut */
.help-whatsapp {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff !important;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
}

.help-whatsapp i {
  font-size: 18px;
}

.help-whatsapp:hover,
.help-whatsapp:focus-visible {
  background: #168746;
}

@media (max-width: 575px) {
  .help-whatsapp span {
    display: none;
  }

  .help-whatsapp {
    padding: 12px;
  }
}

@media (min-width: 576px) {
  .help-search__button {
    display: inline-flex;
    align-items: center;
  }

  .help-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .help-contact__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (min-width: 768px) {
  .help-hero {
    padding: 64px 0 56px;
  }

  .help-hero__title {
    font-size: 34px;
  }

  .help-sections {
    gap: 40px;
    padding-top: 44px;
  }

  .help-banner__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    align-items: center;
  }

  .help-banner__title {
    font-size: 24px;
  }

  .help-article {
    padding: 32px;
  }

  .help-article__title {
    font-size: 24px;
  }
}

@media (min-width: 992px) {
  .help-topics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .help-columns {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .help-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }

  .help-layout__side {
    position: sticky;
    top: 84px;
  }

  .help-toc--inline {
    display: none;
  }

  .help-toc--side {
    display: block;
  }
}
