/* CostBeacon Help Center — faq.html */

#cb-help-root.cb-help-root--loading .cb-help-layout {
  opacity: 0.45;
  pointer-events: none;
}

.cb-help-hero-search {
  max-width: 560px;
  margin: 0 auto 1.25rem;
}

.cb-help-search-wrap {
  position: relative;
}

.cb-help-search-form {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(116, 111, 255, 0.25);
}

.cb-help-search-input {
  flex: 1;
  border: none;
  padding: 0.875rem 1.125rem;
  font-size: 1rem;
  outline: none;
  min-width: 0;
}

.cb-help-search-submit {
  border: none;
  background: var(--primary, #6f61ef);
  color: #fff;
  padding: 0 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.cb-help-search-submit:hover {
  background: var(--color-brand-strong, #5a4ed4);
}

.cb-help-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem;
}

.cb-help-search-results[hidden] {
  display: none !important;
}

.cb-help-search-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
}

.cb-help-search-result:hover,
.cb-help-search-result:focus-visible {
  background: rgba(116, 111, 255, 0.08);
  outline: none;
}

.cb-help-search-result-title {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.9375rem;
}

.cb-help-search-result-badge {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary, #6f61ef);
  font-weight: 600;
}

.cb-help-search-result-snippet {
  font-size: 0.8125rem;
  color: #5c5c6f;
  line-height: 1.4;
}

.cb-help-search-empty {
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.875rem;
  color: #5c5c6f;
}

.cb-page-hero .cb-lead a {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0.2rem;
  vertical-align: middle;
}

.cb-help-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.cb-help-chip {
  min-height: 2.75rem;
  border: 1px solid rgba(116, 111, 255, 0.35);
  background: rgba(116, 111, 255, 0.06);
  color: var(--primary, #6f61ef);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cb-help-chip:hover {
  background: rgba(116, 111, 255, 0.14);
  border-color: var(--primary, #6f61ef);
}

.cb-help-layout {
  align-items: flex-start;
}

.cb-help-sidebar-col {
  position: relative;
}

.cb-help-sidebar {
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.cb-help-nav-group {
  margin-bottom: 1rem;
}

.cb-help-nav-group-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.75rem;
  width: 100%;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary, #6f61ef);
  padding: 0.35rem 0;
  cursor: pointer;
  text-align: left;
}

.cb-help-nav-chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

.cb-help-nav-group-title[aria-expanded="false"] .cb-help-nav-chevron {
  transform: rotate(-45deg);
}

.cb-help-nav-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.25rem;
}

.cb-help-nav-list--collapsed {
  display: none;
}

.cb-help-nav-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.45rem 0.5rem;
  font-size: 0.875rem;
  color: #3d3d4e;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 8px;
  line-height: 1.35;
  transition: color 0.12s ease, border-color 0.12s ease;
}

.cb-help-nav-link:hover {
  color: var(--primary, #6f61ef);
}

.cb-help-nav-link--active {
  color: var(--primary, #6f61ef);
  font-weight: 600;
  border-color: rgba(111, 97, 239, 0.22);
  background: rgba(116, 111, 255, 0.08);
}

.cb-help-mobile-nav-wrap {
  display: none;
  margin-bottom: 1.25rem;
}

.cb-help-mobile-nav {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  font-size: 0.9375rem;
}

.cb-help-section {
  margin-bottom: 3rem;
  scroll-margin-top: 110px;
}

.cb-help-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #1a1a2e;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(116, 111, 255, 0.2);
}

.cb-help-section-desc {
  color: #5c5c6f;
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.cb-help-article {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  scroll-margin-top: 110px;
}

.cb-help-article:last-child {
  border-bottom: none;
}

.cb-help-article--highlight {
  animation: cb-help-highlight 2.4s ease-out;
}

@keyframes cb-help-highlight {
  0% {
    background-color: rgba(116, 111, 255, 0.12);
  }
  100% {
    background-color: transparent;
  }
}

.cb-help-article-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.cb-help-article-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a2e;
  flex: 1 1 200px;
}

.cb-help-open-app {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary, #6f61ef);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.cb-help-open-app:hover {
  background: var(--color-brand-strong, #5a4ed4);
  color: #fff;
}

.cb-help-article-summary {
  font-size: 1rem;
  color: #5c5c6f;
  margin-bottom: 1rem;
  line-height: 1.55;
}

.cb-help-article-body {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3d3d4e;
}

.cb-help-article-body h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: #1a1a2e;
}

.cb-help-article-body p {
  margin-bottom: 0.75rem;
}

.cb-help-article-body ul,
.cb-help-article-body ol {
  margin-bottom: 0.75rem;
  padding-left: 1.35rem;
}

.cb-help-article-body li {
  margin-bottom: 0.35rem;
}

.cb-help-article-body a {
  color: var(--color-brand-strong, #5a4ed4);
  text-decoration: underline;
}

.cb-help-figure {
  margin: 1.25rem 0 1.5rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(116, 111, 255, 0.2);
  background: #fafaff;
  box-shadow: 0 8px 32px rgba(116, 111, 255, 0.1);
}

.cb-help-figure a {
  display: block;
  text-decoration: none;
}

.cb-help-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1920 / 945;
  object-fit: contain;
  object-position: top center;
  background: #f1f4f8;
}

.cb-help-figure figcaption {
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  color: #5c5c6f;
  line-height: 1.45;
  border-top: 1px solid rgba(116, 111, 255, 0.12);
  background: #fff;
}

.cb-help-callout {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  border: 1px solid rgba(111, 97, 239, 0.18);
}

.cb-help-callout--tip {
  background: rgba(116, 111, 255, 0.08);
  border-color: rgba(111, 97, 239, 0.2);
}

.cb-help-callout--note {
  background: #f6f6f8;
  border-color: #d9dde5;
}

.cb-help-callout strong {
  color: #1a1a2e;
}

.cb-help-steps li {
  margin-bottom: 0.5rem;
}

.cb-help-related {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  font-size: 0.8125rem;
}

.cb-help-related-label {
  color: #5c5c6f;
  font-weight: 600;
}

.cb-help-related a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--primary, #6f61ef);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  background: rgba(116, 111, 255, 0.08);
  border-radius: 6px;
}

.cb-help-related a:hover {
  background: rgba(116, 111, 255, 0.16);
}

.cb-help-faq-block {
  margin-top: 2rem;
}

.cb-help-faq-block .it-section-title {
  margin-bottom: 1rem;
}

.cb-help-faq-body p {
  margin-bottom: 0;
}

.cb-help-error {
  padding: 2rem;
  text-align: center;
  color: #5c5c6f;
}

@media (max-width: 991.98px) {
  .cb-help-sidebar-col {
    display: none;
  }

  .cb-help-mobile-nav-wrap {
    display: block;
  }

  .cb-help-sidebar {
    position: static;
    max-height: none;
  }
}
