.sl-chat {
  --sl-chat-ink: #213c50;
  --sl-chat-pale: #edf7f6;
  --sl-chat-line: #c7d9da;
  font-family: inherit;
}
.sl-chat button, .sl-chat input { font: inherit; letter-spacing: normal; text-transform: none; }
.sl-chat button { cursor: pointer; }
.sl-chat .sl-chat-launch {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9990;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--sl-chat-ink);
  border-radius: 28px;
  background: var(--sl-chat-ink);
  color: #fff;
  box-shadow: 0 4px 17px #152c482f;
  font-size: 16px;
}
.sl-chat .sl-chat-panel {
  box-sizing: border-box;
  position: fixed;
  inset: auto max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(390px, calc(100vw - 30px));
  max-width: calc(100vw - 30px);
  height: min(590px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid var(--sl-chat-line);
  border-radius: 16px;
  background: #fff;
  color: var(--sl-chat-ink);
  box-shadow: 0 8px 45px #14263c40;
  font-size: 16px;
  line-height: 1.4;
}
.sl-chat-panel[open] { display: flex; flex-direction: column; }
.sl-chat-panel:not([open]), .sl-chat-launch[hidden] { display: none; }
.sl-chat-panel::backdrop { background: #152c4830; }
.sl-chat-header { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px 8px 16px; background: var(--sl-chat-ink); color: #fff; }
.sl-chat .sl-chat-header h2 { margin: 0; color: #fff; font: inherit; font-weight: 700; }
.sl-chat .sl-chat-close { min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 26px; }
.sl-chat-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 15px; }
.sl-chat .sl-chat-body p { margin: 0 0 10px; }
.sl-chat-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.sl-chat .sl-chat-topics button { min-height: 40px; padding: 6px 9px; border: 1px solid var(--sl-chat-line); border-radius: 7px; background: #fff; color: var(--sl-chat-ink); font-size: 14px; }
.sl-chat .sl-chat-messages p { overflow-wrap: anywhere; padding: 9px 11px; border-radius: 8px; background: var(--sl-chat-pale); }
.sl-chat .sl-chat-messages .sl-chat-visitor { background: #e7ecf1; margin-left: 22px; }
.sl-chat .sl-chat-messages a { display: inline-block; margin-top: 5px; }
.sl-chat .sl-chat-form { margin: 0; padding: 8px 12px; border-top: 1px solid var(--sl-chat-line); }
.sl-chat-form label { display: block; margin-bottom: 4px; font-size: 14px; }
.sl-chat-input-row { display: flex; gap: 6px; }
.sl-chat .sl-chat-form input { width: 100%; min-width: 0; padding: 7px 8px; border: 1px solid var(--sl-chat-line); border-radius: 7px; background: #fff; color: var(--sl-chat-ink); font-size: 16px; }
.sl-chat .sl-chat-form button { min-height: 44px; padding: 6px 10px; border-radius: 7px; background: var(--sl-chat-ink); color: #fff; }
.sl-chat .sl-chat-contact { margin: 0; padding: 1px 12px 11px; font-size: 14px; }
.sl-chat-panel a { color: var(--sl-chat-ink); text-decoration: underline; }
.sl-chat :focus-visible { outline: 2px solid #00787d; outline-offset: 2px; }
@media (max-width: 470px) {
  .sl-chat .sl-chat-panel { inset: auto 10px max(10px, env(safe-area-inset-bottom)) 10px; width: auto; max-width: none; }
}

.sl-chat .sl-chat-launch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-color: #255b63;
  background: #24555e;
  font-weight: 600;
}
.sl-chat .sl-chat-launch[hidden] { display: none; }
.sl-chat-icon {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: 17px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}
.sl-chat-icon::after {
  position: absolute;
  left: 2px;
  bottom: -4px;
  width: 5px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  transform: skewY(-35deg);
  content: '';
}
.sl-chat-header {
  background: linear-gradient(110deg, #213c50, #26616a);
  padding-inline: 16px 12px;
}
.sl-chat .sl-chat-header h2 { display: flex; align-items: center; gap: 10px; }
.sl-chat .sl-chat-close:hover { background: #ffffff22; border-radius: 8px; }
.sl-chat-body { background: #f9fcfb; }
.sl-chat .sl-chat-welcome { max-width: 33ch; margin-bottom: 13px; }
.sl-chat .sl-chat-topics button { border-radius: 20px; background: #fff; }
.sl-chat .sl-chat-topics button:hover { background: #eaf5f3; border-color: #438b88; }
.sl-chat .sl-chat-messages p { border-radius: 13px 13px 13px 3px; }
.sl-chat .sl-chat-messages .sl-chat-visitor { border-radius: 13px 13px 3px 13px; background: #e2eff1; }
.sl-chat .sl-chat-findings { margin: 0 0 12px; font-size: 15px; }
.sl-chat .sl-chat-findings h3 { margin: 0 0 6px; font: inherit; font-weight: 700; }
.sl-chat .sl-chat-messages .sl-chat-result {
  display: grid;
  gap: 3px;
  margin: 0 0 6px;
  padding: 9px 11px;
  border: 1px solid var(--sl-chat-line);
  border-left: 3px solid #458f8a;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.sl-chat .sl-chat-result:hover { border-color: #458f8a; background: #edf7f6; }
.sl-chat .sl-chat-result strong { text-decoration: underline; font-size: 15px; }
.sl-chat .sl-chat-result span { font-size: 13px; }
.sl-chat .sl-chat-result span:first-child { color: #34625d; font-weight: 600; }
.sl-chat .sl-chat-contact { text-align: center; }
