.faq-widget-toggle {
  --faq-widget-size: 3.5rem;
  --faq-widget-bg: var(--si-primary, #6366f1);
  --faq-widget-color: #fff;
  --faq-widget-shadow: 0 0.5rem 1.5rem rgba(99, 102, 241, 0.35);
  position: fixed;
  right: 1.25rem;
  bottom: 4.75rem;
  width: var(--faq-widget-size);
  height: var(--faq-widget-size);
  border-radius: 50%;
  background: var(--faq-widget-bg);
  color: var(--faq-widget-color);
  box-shadow: var(--faq-widget-shadow);
  z-index: 1030;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-widget-toggle:hover {
  transform: scale(1.05);
}

.dark-mode .faq-widget-toggle {
  --faq-widget-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.45);
}

.faq-widget-toggle-icon-close {
  display: none;
}

.faq-widget-toggle.is-open .faq-widget-toggle-icon-open {
  display: none;
}

.faq-widget-toggle.is-open .faq-widget-toggle-icon-close {
  display: block;
}

@media (max-width: 575.98px) {
  .faq-widget-toggle {
    right: 1rem;
    bottom: 3.7rem;
  }
}

.faq-widget-panel {
  --bs-offcanvas-width: 26rem;
}

/* Inclusys fade: brand gradient (#fff -> #cac0ff), also used for the widget's hero header */
.faq-widget-hero {
  position: relative;
  padding: 1.5rem 1.25rem 1.75rem;
  background: linear-gradient(135deg, #ffffff 0%, #cac0ff 100%);
}

.dark-mode .faq-widget-hero {
  background: linear-gradient(135deg, #1f1b2e 0%, #4c3f7a 100%);
}

.faq-widget-hero-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.dark-mode .faq-widget-hero-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.faq-widget-hero-badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 0.25rem 0.75rem rgba(17, 17, 17, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 1rem;
}

.faq-widget-hero-badge img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.faq-widget-hero-greeting {
  font-size: 1.25rem;
}

.faq-widget-hero-title {
  font-weight: 700;
  color: var(--si-dark, #111827);
}

.dark-mode .faq-widget-hero-title {
  color: #fff;
}

.faq-widget-article-row {
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.9375rem;
  width: 100%;
  padding: 0.625rem 0.25rem;
  border-radius: 0.5rem !important; /* theme.min.css .offcanvas-body .list-group-flush .list-group-item-action forces 0 otherwise */
  transition: background-color 0.15s ease, padding 0.15s ease;
}

.faq-widget-article-row:hover,
.faq-widget-article-row:focus,
.faq-widget-article-row:active {
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  border-radius: 0.375rem !important;
  background-color: rgba(99, 102, 241, 0.1);
}

.dark-mode .faq-widget-article-row:hover,
.dark-mode .faq-widget-article-row:focus,
.dark-mode .faq-widget-article-row:active {
  background-color: rgba(99, 102, 241, 0.25);
}

.faq-widget-article-answer a {
  color: var(--si-primary, #6366f1);
}
