.faq-widget-root {
  --faq-widget-width: 380px;
  --faq-widget-side-offset: 160px;
  --faq-widget-bg: #ffffff;
  --faq-widget-ink: #17212b;
  --faq-widget-muted: #607080;
  --faq-widget-border: #d8e0e7;
  --faq-widget-accent: #0b5f75;
  --faq-widget-accent-dark: #06475a;
  --faq-widget-shadow: 0 18px 46px rgba(10, 26, 39, 0.24);
  color: var(--faq-widget-ink);
  font-family: inherit;
  position: fixed;
  z-index: 2147483000;
}

.faq-widget-root *,
.faq-widget-root *::before,
.faq-widget-root *::after {
  box-sizing: border-box;
}

.faq-widget-root[data-position="bottom-right"],
.faq-widget-root[data-position="bottom-left"] {
  bottom: 18px;
}

.faq-widget-root[data-position="bottom-right"] {
  right: 18px;
}

.faq-widget-root[data-position="bottom-left"] {
  left: 18px;
}

.faq-widget-root[data-position="right"],
.faq-widget-root[data-position="left"] {
  top: var(--faq-widget-side-offset);
}

.faq-widget-root[data-position="right"] {
  right: 0;
}

.faq-widget-root[data-position="left"] {
  left: 0;
}

.faq-widget-launcher,
.faq-widget-close,
.faq-widget-list-button,
.faq-widget-nav button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.faq-widget-launcher {
  align-items: center;
  background: var(--faq-widget-accent);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10, 26, 39, 0.22);
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
}

.faq-widget-static-link {
  align-items: center;
  background: var(--faq-widget-accent);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(10, 26, 39, 0.22);
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  min-height: 46px;
  padding: 0 16px;
  text-decoration: none;
}

.faq-widget-static-link:hover {
  background: var(--faq-widget-accent-dark);
  color: #ffffff;
}

.faq-widget-launcher:hover,
.faq-widget-launcher:focus {
  background: var(--faq-widget-accent-dark);
}

.faq-widget-launcher:focus-visible,
.faq-widget-close:focus-visible,
.faq-widget-list-button:focus-visible,
.faq-widget-nav button:focus-visible,
.faq-widget-action:focus-visible,
.faq-widget-fallback-link a:focus-visible,
.faq-widget-search:focus-visible {
  outline: 3px solid rgba(11, 95, 117, 0.28);
  outline-offset: 2px;
}

.faq-widget-launcher-icon {
  display: none;
}

.faq-widget-root[data-position="right"] .faq-widget-launcher,
.faq-widget-root[data-position="left"] .faq-widget-launcher {
  background: #f6fbfd;
  border: 2px solid var(--faq-widget-accent);
  box-shadow: 0 10px 30px rgba(10, 26, 39, 0.24);
  color: var(--faq-widget-accent-dark);
  font-size: 16px;
  justify-content: center;
  min-height: 72px;
  min-width: 132px;
  padding: 0 18px;
}

.faq-widget-root[data-position="right"] .faq-widget-launcher {
  border-radius: 8px 0 0 8px;
}

.faq-widget-root[data-position="left"] .faq-widget-launcher {
  border-radius: 0 8px 8px 0;
}

.faq-widget-root[data-position="right"] .faq-widget-launcher:hover,
.faq-widget-root[data-position="right"] .faq-widget-launcher:focus,
.faq-widget-root[data-position="left"] .faq-widget-launcher:hover,
.faq-widget-root[data-position="left"] .faq-widget-launcher:focus {
  background: #ffffff;
  color: var(--faq-widget-accent-dark);
}

.faq-widget-panel {
  background: var(--faq-widget-bg);
  border: 1px solid var(--faq-widget-border);
  border-radius: 8px;
  bottom: calc(100% + 12px);
  box-shadow: var(--faq-widget-shadow);
  display: flex;
  flex-direction: column;
  max-height: min(680px, calc(100vh - 42px));
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  right: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: min(var(--faq-widget-width), calc(100vw - 32px));
}

.faq-widget-root[data-position="bottom-left"] .faq-widget-panel {
  left: 0;
  right: auto;
}

.faq-widget-root[data-position="right"] .faq-widget-panel,
.faq-widget-root[data-position="left"] .faq-widget-panel {
  bottom: auto;
  top: 0;
  transform: translateX(12px);
  width: min(calc(var(--faq-widget-width) + 80px), calc(100vw - 160px));
}

.faq-widget-root[data-position="right"] .faq-widget-panel {
  right: 148px;
}

.faq-widget-root[data-position="left"] .faq-widget-panel {
  left: 148px;
  right: auto;
}

.faq-widget-root[data-open="true"] .faq-widget-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.faq-widget-root[data-position="right"][data-open="true"] .faq-widget-panel,
.faq-widget-root[data-position="left"][data-open="true"] .faq-widget-panel {
  transform: translateX(0);
}

.faq-widget-panel-header {
  align-items: center;
  background: #f4f7f9;
  border-bottom: 1px solid var(--faq-widget-border);
  display: flex;
  justify-content: space-between;
  min-height: 54px;
  padding: 13px 16px;
}

.faq-widget-close {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: var(--faq-widget-muted);
  display: inline-flex;
  font-size: 26px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  width: 34px;
}

.faq-widget-panel-body {
  overflow-y: auto;
  padding: 16px;
}

.faq-widget-panel h3 {
  color: var(--faq-widget-ink);
  font-size: 20px;
  line-height: 1.25;
  margin: 0 0 14px;
}

.faq-widget-greeting {
  font-size: 16px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.faq-widget-search-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.faq-widget-search {
  background: #ffffff;
  border: 1px solid var(--faq-widget-border);
  border-radius: 6px;
  color: var(--faq-widget-ink);
  font: inherit;
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

.faq-widget-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.faq-widget-list-button {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--faq-widget-border);
  border-radius: 6px;
  color: var(--faq-widget-ink);
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.35;
  min-height: 46px;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.faq-widget-list-button:hover {
  border-color: var(--faq-widget-accent);
}

.faq-widget-list-button small {
  color: var(--faq-widget-muted);
  font-size: 12px;
}

.faq-widget-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.faq-widget-nav button {
  background: #eef3f5;
  border-radius: 6px;
  color: var(--faq-widget-accent-dark);
  font-size: 13px;
  font-weight: 700;
  min-height: 34px;
  padding: 7px 10px;
}

.faq-widget-answer {
  color: var(--faq-widget-ink);
  font-size: 15px;
  line-height: 1.55;
}

.faq-widget-answer p:first-child {
  margin-top: 0;
}

.faq-widget-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.faq-widget-action {
  background: var(--faq-widget-accent);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 700;
  line-height: 1.2;
  min-height: 40px;
  padding: 10px 12px;
  text-decoration: none;
}

.faq-widget-action:hover {
  background: var(--faq-widget-accent-dark);
  color: #ffffff;
}

.faq-widget-fallback-link {
  border-top: 1px solid var(--faq-widget-border);
  margin-top: 16px;
  padding-top: 14px;
}

.faq-widget-fallback-link a {
  color: var(--faq-widget-accent-dark);
  font-weight: 700;
}

.faq-widget-empty {
  background: #f4f7f9;
  border: 1px solid var(--faq-widget-border);
  border-radius: 6px;
  margin-top: 14px;
  padding: 14px;
}

.faq-widget-empty p {
  margin: 0;
}

@media (max-width: 767px) {
  .faq-widget-root {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    transform: none !important;
  }

  .faq-widget-launcher {
    border-radius: 999px;
    min-height: 48px;
    min-width: 48px;
    padding: 0 14px;
  }

  .faq-widget-launcher-icon {
    display: inline;
    font-size: 20px;
  }

  .faq-widget-launcher-text {
    display: none;
  }

  .faq-widget-panel,
  .faq-widget-root[data-position="right"] .faq-widget-panel,
  .faq-widget-root[data-position="left"] .faq-widget-panel {
    bottom: 62px;
    left: 0;
    max-height: calc(100vh - 86px);
    right: 0;
    top: auto;
    transform: translateY(12px);
    width: 100%;
  }

  .faq-widget-root[data-open="true"] .faq-widget-panel,
  .faq-widget-root[data-position="right"][data-open="true"] .faq-widget-panel,
  .faq-widget-root[data-position="left"][data-open="true"] .faq-widget-panel {
    transform: translateY(0);
  }
}
