.sk-help-assistant {
  --sk-help-primary: #1976d2;
  --sk-help-deep: #0d47a1;
  --sk-help-ink: #10233d;
  --sk-help-copy: #506782;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1600;
  font-family: "Source Sans 3", "Roboto", Arial, sans-serif;
}

.sk-help-launcher {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--sk-help-primary), var(--sk-help-deep));
  box-shadow: 0 14px 32px rgba(13, 71, 161, 0.3);
  cursor: pointer;
  font-size: 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sk-help-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(13, 71, 161, 0.38);
}

.sk-help-chat-icon {
  width: 30px;
  height: 30px;
  display: block;
  fill: currentColor;
}

.sk-help-icon-dot {
  fill: var(--sk-help-primary);
}

.sk-help-launcher-close {
  display: none;
  font-size: 32px;
  font-weight: 400;
  line-height: 1;
}

.sk-help-launcher[aria-expanded="true"] .sk-help-launcher-chat {
  display: none;
}

.sk-help-launcher[aria-expanded="true"] .sk-help-launcher-close {
  display: inline;
}

.sk-help-launcher:focus-visible,
.sk-help-close:focus-visible,
.sk-help-send:focus-visible,
.sk-help-suggestion:focus-visible,
.sk-help-input:focus-visible {
  outline: 3px solid rgba(25, 118, 210, 0.28);
  outline-offset: 2px;
}

.sk-help-panel {
  width: 390px;
  height: min(560px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid rgba(16, 35, 61, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 35, 61, 0.25);
}

.sk-help-panel[hidden] {
  display: none;
}

.sk-help-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  color: #fff;
  background: linear-gradient(135deg, var(--sk-help-primary), var(--sk-help-deep));
}

.sk-help-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--sk-help-deep);
  background: #fff;
  font-weight: 900;
}

.sk-help-avatar .sk-help-chat-icon {
  width: 23px;
  height: 23px;
}

.sk-help-avatar .sk-help-icon-dot {
  fill: #fff;
}

.sk-help-heading {
  flex: 1;
  min-width: 0;
}

.sk-help-heading strong,
.sk-help-heading span {
  display: block;
}

.sk-help-heading strong {
  font-size: 16px;
  line-height: 1.25;
}

.sk-help-heading span {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.sk-help-close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.sk-help-messages {
  flex: 1;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7faff;
}

.sk-help-message {
  max-width: 88%;
  margin-bottom: 12px;
  padding: 11px 13px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: skHelpMessageIn 0.2s ease-out;
}

.sk-help-message-assistant {
  margin-right: auto;
  color: var(--sk-help-ink);
  background: #fff;
  border: 1px solid #e3edf7;
  border-bottom-left-radius: 5px;
}

.sk-help-message-user {
  margin-left: auto;
  color: #fff;
  background: var(--sk-help-primary);
  border-bottom-right-radius: 5px;
}

.sk-help-message strong {
  display: block;
  margin-bottom: 5px;
}

.sk-help-message p {
  margin: 0;
}

.sk-help-message a {
  display: inline-flex;
  margin-top: 9px;
  color: var(--sk-help-deep);
  font-weight: 700;
  text-decoration: none;
}

.sk-help-message a:hover {
  text-decoration: underline;
}

.sk-help-typing {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.sk-help-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7890aa;
  animation: skHelpTyping 1.1s infinite ease-in-out;
}

.sk-help-typing span:nth-child(2) {
  animation-delay: 0.14s;
}

.sk-help-typing span:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes skHelpTyping {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

@keyframes skHelpMessageIn {
  from {
    transform: translateY(5px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sk-help-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 4px 0 14px;
}

.sk-help-suggestion {
  padding: 7px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--sk-help-deep);
  background: #eff6ff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sk-help-form {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-top: 1px solid #e5edf5;
  background: #fff;
}

.sk-help-input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #cad7e5;
  border-radius: 12px;
  color: var(--sk-help-ink);
  background: #fff;
  font-size: 14px;
}

.sk-help-input::placeholder {
  color: #8292a6;
}

.sk-help-send {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--sk-help-primary);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
}

.sk-help-send:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (max-width: 600px) {
  .sk-help-assistant {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }

  .sk-help-panel {
    width: 100%;
    height: min(600px, calc(100vh - 88px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk-help-message,
  .sk-help-typing span,
  .sk-help-launcher {
    animation: none;
    transition: none;
  }
}
