.stx-support {
  --stx-support-bg: #F5FAF8;
  --stx-support-chrome: #0f3d31;
  --stx-support-teal: #127264;
  --stx-support-border: #C3DAD3;
  --stx-support-muted: #52736a;
  --stx-support-shadow: 0 18px 48px rgba(15, 61, 49, .2);
  color: var(--stx-support-chrome);
  font: 400 14px/1.45 Archivo, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: .005em;
  z-index: 1000;
}

.stx-support:not(.stx-support--anchored) {
  position: fixed;
  right: 24px;
  bottom: 24px;
}

.stx-support--anchored {
  display: inline-flex;
  position: relative;
}

.stx-support button,
.stx-support input,
.stx-support a {
  font: inherit;
}

.stx-support button,
.stx-support a {
  -webkit-tap-highlight-color: transparent;
}

.stx-support button:focus-visible,
.stx-support input:focus-visible,
.stx-support a:focus-visible,
.stx-support summary:focus-visible {
  outline: 3px solid var(--stx-support-teal);
  outline-offset: 2px;
}

.stx-support__launcher {
  align-items: center;
  background: var(--stx-support-chrome);
  border: 1px solid var(--stx-support-chrome);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(15, 61, 49, .18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  transition: background-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.stx-support__launcher::before {
  border: 1px solid currentColor;
  border-radius: 50%;
  content: '?';
  display: inline-grid;
  font-size: 11px;
  height: 18px;
  line-height: 1;
  place-items: center;
  width: 18px;
}

.stx-support__launcher:hover {
  background: #125443;
  box-shadow: 0 10px 24px rgba(15, 61, 49, .26);
  transform: translateY(-1px);
}

.stx-support__panel {
  background: var(--stx-support-bg);
  border: 1px solid var(--stx-support-border);
  border-radius: 18px;
  bottom: calc(100% + 12px);
  box-shadow: var(--stx-support-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(78vh, 660px);
  overflow: auto;
  padding: 18px;
  position: absolute;
  right: 0;
  width: min(390px, calc(100vw - 32px));
}

.stx-support--anchored .stx-support__panel {
  z-index: 2;
}

.stx-support__heading {
  align-items: start;
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
}

.stx-support__title {
  color: var(--stx-support-chrome);
  font-size: 1.12rem;
  line-height: 1.2;
  margin: 0;
}

.stx-support__eyebrow {
  color: var(--stx-support-teal);
  font-size: .72rem;
  font-weight: 800;
  grid-column: 1;
  letter-spacing: .1em;
  margin: 4px 0 0;
  text-transform: uppercase;
}

.stx-support__close {
  background: transparent;
  border: 1px solid var(--stx-support-border);
  border-radius: 8px;
  color: var(--stx-support-muted);
  cursor: pointer;
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 36px;
  padding: 6px 9px;
}

.stx-support__close:hover {
  background: #fff;
  color: var(--stx-support-chrome);
}

.stx-support__intro,
.stx-support__status,
.stx-support__suggestions-label {
  margin: 0;
}

.stx-support__intro {
  color: var(--stx-support-muted);
  font-size: .86rem;
}

.stx-support__search-label {
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: -5px;
}

.stx-support__search {
  background: #fff;
  border: 1px solid var(--stx-support-border);
  border-radius: 10px;
  box-sizing: border-box;
  color: var(--stx-support-chrome);
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.stx-support__search::placeholder {
  color: #78958d;
}

.stx-support__suggestions-label {
  color: var(--stx-support-muted);
  font-size: .76rem;
  font-weight: 700;
}

.stx-support__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stx-support__suggestion {
  background: #fff;
  border: 1px solid var(--stx-support-border);
  border-radius: 999px;
  color: var(--stx-support-chrome);
  cursor: pointer;
  font-size: .76rem;
  line-height: 1.25;
  padding: 7px 10px;
  text-align: left;
}

.stx-support__suggestion:hover {
  border-color: var(--stx-support-teal);
  color: var(--stx-support-teal);
}

.stx-support__status {
  color: var(--stx-support-muted);
  font-size: .76rem;
}

.stx-support__results {
  display: grid;
  gap: 7px;
}

.stx-support__faq {
  background: #fff;
  border: 1px solid var(--stx-support-border);
  border-radius: 10px;
  overflow: hidden;
}

.stx-support__faq summary {
  color: var(--stx-support-chrome);
  cursor: pointer;
  font-weight: 700;
  list-style-position: inside;
  padding: 11px 12px;
}

.stx-support__answer-label {
  color: var(--stx-support-teal);
  display: block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 0 12px;
  text-transform: uppercase;
}

.stx-support__answer {
  color: #31584e;
  font-size: .86rem;
  margin: 5px 0 0;
  padding: 0 12px 12px;
}

.stx-support__empty {
  background: #fff;
  border: 1px dashed var(--stx-support-border);
  border-radius: 10px;
  color: var(--stx-support-muted);
  margin: 0;
  padding: 12px;
}

.stx-support__empty-link,
.stx-support__link {
  color: var(--stx-support-teal);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stx-support__footer {
  align-items: center;
  border-top: 1px solid var(--stx-support-border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 12px;
}

.stx-support__privacy {
  color: var(--stx-support-muted);
  font-size: .73rem;
  margin-left: auto;
}

.stx-support [hidden] {
  display: none !important;
}

@media (max-width: 540px) {
  .stx-support:not(.stx-support--anchored) {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .stx-support:not(.stx-support--anchored) .stx-support__launcher {
    width: 100%;
    justify-content: center;
  }

  .stx-support__panel {
    bottom: calc(100% + 10px);
    max-height: min(80vh, 620px);
    right: 0;
    width: min(100%, calc(100vw - 24px));
  }

  .stx-support__privacy {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stx-support__launcher {
    transition: none;
  }
}
