/* Super Charged Support by ARPHost. Open Ticket article suggestions.
   Uses the Lattice theme variables with plain fallbacks for other themes. */
.scs-suggest {
  box-sizing: border-box;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.875rem 1rem;
  background: var(--lt-surface-2, #f8fafc);
  color: var(--lt-ink-1, #0f172a);
  border: 1px solid var(--lt-line-1, #d7dee8);
  border-left: 4px solid var(--lt-brand, #0891b2);
  border-radius: var(--lt-radius-card, 12px);
  overflow-wrap: anywhere;
}

.scs-suggest[hidden] {
  display: none;
}

.scs-suggest__heading {
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--lt-ink-1, #0f172a);
}

/* Each kind of article sits in its own card, with its label as a tab on the top left corner. */
.scs-suggest__group {
  position: relative;
  margin: 1.125rem 0 0;
  padding: 1.25rem 0.875rem 0.75rem;
  background: var(--lt-surface-1, #ffffff);
  border: 1px solid var(--lt-line-1, #d7dee8);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.05);
}

.scs-suggest__group[hidden] {
  display: none;
}

.scs-suggest__group + .scs-suggest__group {
  margin-top: 1.375rem;
}

.scs-suggest__tag {
  position: absolute;
  top: -0.7rem;
  left: 0.75rem;
  padding: 0.2rem 0.65rem;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #ffffff;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.scs-suggest__group--kb {
  border-top: 3px solid var(--lt-brand, #0891b2);
}

.scs-suggest__group--kb .scs-suggest__tag {
  background: linear-gradient(135deg, var(--lt-brand, #0891b2), #0e7490);
}

.scs-suggest__group--blog {
  border-top: 3px solid #7c3aed;
}

.scs-suggest__group--blog .scs-suggest__tag {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.scs-suggest__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.scs-suggest__item + .scs-suggest__item {
  margin-top: 0.625rem;
  padding-top: 0.625rem;
  border-top: 1px solid var(--lt-line-1, #e2e8f0);
}

.scs-suggest__link {
  font-weight: 600;
  color: var(--lt-brand-text, #0e7490);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.scs-suggest__link:hover {
  color: var(--lt-brand-hover, #155e75);
}

.scs-suggest__link:focus-visible {
  outline: 2px solid var(--lt-focus, #f59e0b);
  outline-offset: 2px;
  border-radius: 4px;
}

.scs-suggest__excerpt {
  margin: 0.25rem 0 0;
  font-size: 0.9em;
  color: var(--lt-ink-2, #334155);
}

.scs-suggest__note {
  margin: 0.625rem 0 0;
  font-size: 0.85em;
  color: var(--lt-ink-3, #475569);
}

@media (max-width: 576px) {
  .scs-suggest {
    padding: 0.75rem;
  }
}

/* The WordPress knowledgebase replaces the WHMCS one: hide WHMCS's own suggestion list. */
.scs-kb-only #autoAnswerSuggestions {
  display: none !important;
}
