.switch-chatkit {
  --switch-blue: #003b71;
  --switch-cyan: #00a3c7;
  --switch-cyan-brand: #159dc8;
  --switch-ink: #16324f;
  --switch-muted: #617285;
  --switch-border: rgba(20, 81, 116, 0.18);
  --switch-surface: #f7fbfd;
  --switch-shadow: 0 20px 54px rgba(0, 43, 74, 0.24);
  bottom: 28px;
  font-family: inherit;
  position: fixed;
  right: 28px;
  z-index: 1000;
}

.switch-chatkit__launcher {
  align-items: center;
  background: var(--switch-cyan);
  border: 0;
  border-radius: 999px;
  box-shadow: var(--switch-shadow);
  color: #ffffff;
  cursor: pointer;
  display: none;
  font-weight: 700;
  gap: 10px;
  min-height: 52px;
  padding: 10px 18px 10px 10px;
}

.switch-chatkit__launcher-icon {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  color: var(--switch-blue);
  display: inline-flex;
  font-weight: 800;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.switch-chatkit__panel {
  background: #ffffff;
  border: 1px solid var(--switch-border);
  border-radius: 14px;
  box-shadow: var(--switch-shadow);
  display: flex;
  flex-direction: column;
  height: min(640px, calc(100vh - 56px));
  overflow: hidden;
  width: min(448px, calc(100vw - 32px));
}

.switch-chatkit[data-open="false"] .switch-chatkit__panel {
  display: none;
}

.switch-chatkit[data-open="false"] .switch-chatkit__launcher {
  display: inline-flex;
}

.switch-chatkit__header {
  align-items: center;
  background: #003368;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  min-height: 70px;
  padding: 14px 16px 13px 18px;
}

.switch-chatkit__eyebrow,
.switch-chatkit__title,
.switch-chatkit__fallback {
  margin: 0;
}

.switch-chatkit__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  opacity: 0.86;
  text-transform: uppercase;
}

.switch-chatkit__title {
  font-size: 23px;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.1;
  margin-top: 4px;
}

.switch-chatkit__close {
  align-items: center;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
  width: 36px;
}

.switch-chatkit__close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.switch-chatkit__chat {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
}

.switch-chatkit__fallback {
  color: var(--switch-ink);
  font-size: 14px;
  padding: 16px;
}

.switch-chatkit__guide-card {
  align-items: center;
  background: var(--switch-surface);
  border-top: 1px solid var(--switch-border);
  display: flex;
  gap: 11px;
  justify-content: space-between;
  padding: 12px 14px;
}

.switch-chatkit__guide-card[hidden] {
  display: none;
}

.switch-chatkit__guide-copy {
  color: var(--switch-ink);
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  font-size: 13px;
  gap: 2px;
  min-width: 0;
}

.switch-chatkit__guide-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(21, 157, 200, 0.22);
  border-radius: 8px;
  color: var(--switch-blue);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  letter-spacing: 0.04em;
  width: 40px;
}

.switch-chatkit__guide-icon--loading::before {
  animation: switch-guide-spin 900ms linear infinite;
  border: 2px solid rgba(21, 157, 200, 0.22);
  border-top-color: var(--switch-cyan-brand);
  border-radius: 999px;
  content: "";
  height: 16px;
  width: 16px;
}

.switch-chatkit__guide-copy strong,
.switch-chatkit__guide-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch-chatkit__guide-copy span {
  color: var(--switch-muted);
}

.switch-chatkit__guide-download {
  background: var(--switch-cyan-brand);
  border-radius: 999px;
  color: #ffffff;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 12px;
  text-decoration: none;
}

.switch-chatkit__guide-download:visited,
.switch-chatkit__guide-download:hover {
  color: #ffffff;
  text-decoration: none;
}

.switch-chatkit__guide-download:hover {
  background: #0f7a9c;
}

@keyframes switch-guide-spin {
  to {
    transform: rotate(360deg);
  }
}

.switch-chatkit[data-ready="true"] .switch-chatkit__fallback {
  display: none;
}


.switch-chatkit__disclaimer {
  font-size: 11px;
  line-height: 1.4;
  color: #54585a;
  text-align: center;
  padding: 10px 24px 12px;
  max-width: 480px;
  margin: 0 auto;
}


@media (max-width: 767px) {
  .switch-chatkit {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .switch-chatkit__panel {
    height: min(680px, calc(100dvh - 24px));
    width: 100%;
  }

  .switch-chatkit__guide-card {
    align-items: stretch;
    flex-direction: column;
  }

  .switch-chatkit__guide-copy strong,
  .switch-chatkit__guide-copy span {
    white-space: normal;
  }

  .switch-chatkit__guide-download {
    text-align: center;
  }
``
}