.shs-chat {
  --blue: #0a64b3;
  --blue-press: #08579c;
  --ink: #16181b;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --fill: rgba(118, 118, 128, 0.12);
  --line: rgba(0, 0, 0, 0.08);
  --material: rgba(255, 255, 255, 0.78);
  --ease: cubic-bezier(0.32, 0.72, 0, 1); /* critically damped, no overshoot */
  --gap: 24px;
  position: fixed;
  right: calc(var(--gap) + env(safe-area-inset-right));
  bottom: calc(var(--gap) + env(safe-area-inset-bottom));
  z-index: 2147483000;
  font: 400 15px/1.45 "Inter Tight", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.005em;
}

/* Undo theme (Hello/Elementor) styles on our controls */
.shs-chat button, .shs-chat input, .shs-chat textarea {
  all: unset;
  box-sizing: border-box;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.shs-chat *, .shs-chat *::before, .shs-chat *::after { box-sizing: border-box; }
.shs-chat svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shs-chat [hidden] { display: none !important; }
.shs-chat :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.shs-chat a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; word-break: break-word; }

/* Launcher */
.shs-chat .shs-launcher {
  position: relative;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(10, 30, 60, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.shs-chat .shs-launcher::before { /* soft brand glow, the site's "light" motif */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 25%, rgba(120, 180, 255, 0.45), transparent 60%);
}
@media (hover: hover) { .shs-chat .shs-launcher:hover { transform: scale(1.05); } }
.shs-chat .shs-launcher:active { transform: scale(0.92); transition-duration: 0.1s; }
.shs-chat .shs-i { position: absolute; display: grid; transition: transform 0.45s var(--ease), opacity 0.25s var(--ease); }
.shs-chat .shs-i-chat svg { width: 26px; height: 26px; fill: currentColor; stroke: none; }
.shs-chat .shs-i-close { opacity: 0; transform: rotate(-90deg) scale(0.5); }
.shs-chat[data-open="true"] .shs-i-chat { opacity: 0; transform: rotate(90deg) scale(0.5); }
.shs-chat[data-open="true"] .shs-i-close { opacity: 1; transform: none; }

/* Panel: grows out of the launcher and returns into it */
.shs-chat .shs-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  display: flex;
  flex-direction: column;
  width: 384px;
  height: min(640px, calc(100vh - 140px));
  height: min(640px, calc(100dvh - 140px));
  overflow: hidden;
  background: var(--material);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  backdrop-filter: blur(40px) saturate(180%);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 2px 6px rgba(0, 0, 0, 0.05), 0 24px 64px rgba(10, 30, 60, 0.22);
  transform-origin: calc(100% - 30px) calc(100% + 46px);
  opacity: 0;
  transform: scale(0.4);
  filter: blur(8px);
  visibility: hidden;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease), filter 0.4s var(--ease), visibility 0s 0.5s;
}
.shs-chat[data-open="true"] .shs-panel {
  opacity: 1;
  transform: none;
  filter: none;
  visibility: visible;
  transition: transform 0.5s var(--ease), opacity 0.25s var(--ease), filter 0.35s var(--ease), visibility 0s;
}

.shs-chat .shs-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px 14px 18px;
  border-bottom: 0.5px solid var(--line);
}
.shs-chat .shs-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #4b9be6, var(--blue) 55%, #063d70);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.shs-chat .shs-avatar svg { width: 20px; height: 20px; }
.shs-chat .shs-title { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shs-chat .shs-title strong { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.shs-chat .shs-title span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.shs-chat .shs-title i { width: 7px; height: 7px; border-radius: 50%; background: #30d158; box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18); }
.shs-chat .shs-x {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.15s var(--ease), background 0.2s;
}
.shs-chat .shs-x svg { width: 16px; height: 16px; stroke-width: 2.2; }
.shs-chat .shs-x:active { transform: scale(0.88); }

/* Conversation */
.shs-chat .shs-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(transparent, #000 14px);
  mask-image: linear-gradient(transparent, #000 14px);
}
.shs-chat .shs-msg {
  max-width: 86%;
  padding: 9px 14px;
  font-size: 15px;
  overflow-wrap: anywhere;
  animation: shs-in 0.45s var(--ease) both;
}
.shs-chat .shs-msg p { margin: 0; }
.shs-chat .shs-msg p + p { margin-top: 0.6em; }
.shs-chat .shs-assistant { align-self: flex-start; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04); transform-origin: bottom left; }
.shs-chat .shs-user { align-self: flex-end; background: var(--blue); color: #fff; transform-origin: bottom right; }
.shs-chat .shs-user a { color: inherit; }
.shs-chat .shs-error { background: #fff4f2; box-shadow: 0 0 0 0.5px rgba(215, 0, 21, 0.18); }
@keyframes shs-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }

.shs-chat .shs-typing { display: flex; gap: 4px; padding: 14px 16px; }
.shs-chat .shs-typing i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1a6; animation: shs-dot 1.2s ease-in-out infinite; }
.shs-chat .shs-typing i:nth-child(2) { animation-delay: 0.15s; }
.shs-chat .shs-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes shs-dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.shs-chat .shs-options {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
  background: #fff;
  box-shadow: 0 0 0 0.5px var(--line), 0 1px 2px rgba(0, 0, 0, 0.04);
  animation: shs-in 0.45s var(--ease) 0.08s both;
}
.shs-chat .shs-options button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 11px 14px 11px 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.shs-chat .shs-options button + button { box-shadow: inset 0 0.5px 0 var(--line); }
@media (hover: hover) { .shs-chat .shs-options button:hover { background: rgba(118, 118, 128, 0.06); } }
.shs-chat .shs-options button:active { background: rgba(10, 100, 179, 0.1); transition: none; }
.shs-chat .shs-options svg { flex: none; width: 16px; height: 16px; stroke-width: 2.2; color: #c7c7cc; }
.shs-chat .shs-options .shs-cta { color: var(--blue); }
.shs-chat .shs-options .shs-more { color: var(--muted); font-weight: 400; }

/* Inquiry card */
.shs-chat .shs-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0 2px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 0 0 0.5px var(--line), 0 6px 20px rgba(10, 30, 60, 0.08);
  animation: shs-in 0.5s var(--ease) both;
}
.shs-chat .shs-card h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; color: var(--text); }
.shs-chat .shs-sub { margin: -6px 0 4px; font-size: 13.5px; color: var(--muted); }
.shs-chat .shs-card label { display: flex; flex-direction: column; gap: 4px; }
.shs-chat .shs-card label span { font-size: 12.5px; font-weight: 500; color: var(--muted); padding-left: 2px; }
.shs-chat .shs-card em { font-style: normal; opacity: 0.7; font-weight: 400; }
.shs-chat .shs-card :is(input, textarea) {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: rgba(118, 118, 128, 0.08);
  box-shadow: inset 0 0 0 0.5px var(--line);
  font-size: 15px;
  transition: box-shadow 0.2s, background 0.2s;
}
.shs-chat .shs-card textarea { min-height: 72px; resize: none; }
.shs-chat .shs-card :is(input, textarea):focus { background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue), 0 0 0 4px rgba(10, 100, 179, 0.12); outline: none; }
.shs-chat .shs-card :is(input, textarea):user-invalid { box-shadow: inset 0 0 0 1.5px #d70015; }
.shs-chat .shs-hp { position: absolute !important; left: -9999px !important; }
.shs-chat .shs-primary {
  margin-top: 4px;
  padding: 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.2s, opacity 0.2s;
}
.shs-chat .shs-primary:active { transform: scale(0.97); background: var(--blue-press); }
.shs-chat .shs-primary:disabled { opacity: 0.6; cursor: default; }
.shs-chat .shs-fine { margin: 0; font-size: 12px; color: var(--muted); text-align: center; }
.shs-chat .shs-err { margin: 0; font-size: 13px; color: #d70015; }
.shs-chat .shs-done { align-items: center; text-align: center; padding: 22px 18px; }
.shs-chat .shs-done .shs-sub { margin: 0; }
.shs-chat .shs-ok { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #30d158; color: #fff; animation: shs-in 0.5s var(--ease) both; }
.shs-chat .shs-ok svg { stroke-width: 2.6; }

/* Always-visible actions: contact and start over */
.shs-chat .shs-actions {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 0.5px solid var(--line);
}
.shs-chat .shs-act {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s var(--ease), background 0.2s;
}
.shs-chat .shs-act svg { width: 17px; height: 17px; stroke-width: 1.9; }
.shs-chat .shs-contact { background: var(--blue); color: #fff; }
.shs-chat .shs-restart { background: var(--fill); color: var(--text); }
.shs-chat .shs-act:active { transform: scale(0.96); transition-duration: 0.08s; }

/* Composer */
.shs-chat .shs-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px;
  padding: 5px 5px 5px 16px;
  background: #fff;
  box-shadow: 0 0 0 0.5px var(--line), 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s;
}
.shs-chat .shs-composer:focus-within { box-shadow: 0 0 0 1.5px var(--blue), 0 0 0 5px rgba(10, 100, 179, 0.1); }
.shs-chat .shs-composer textarea {
  flex: 1;
  min-height: 24px;
  max-height: 120px;
  padding: 7px 0;
  field-sizing: content;
  resize: none;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.4;
}
.shs-chat .shs-composer textarea::placeholder { color: #a1a1a6; }
.shs-chat .shs-composer :focus-visible { outline: none; }
.shs-chat .shs-send {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease), opacity 0.2s, background 0.2s;
}
.shs-chat .shs-send svg { width: 18px; height: 18px; stroke-width: 2.4; }
.shs-chat .shs-send:disabled { opacity: 0.25; transform: scale(0.9); cursor: default; }
.shs-chat .shs-send:not(:disabled):active { transform: scale(0.88); }
.shs-chat .shs-note { margin: 8px 0 12px; font-size: 11.5px; color: #a1a1a6; text-align: center; letter-spacing: 0; }

/* Phone: a full-height sheet that rises from the bottom */
@media (max-width: 520px) {
  .shs-chat { --gap: 16px; }
  .shs-chat .shs-panel {
    position: fixed;
    inset: auto 0 0 0;
    width: auto;
    height: calc(100vh - 8px);
    height: calc(100dvh - 8px);
    transform-origin: 50% 100%;
    transform: translateY(100%);
    filter: none;
    opacity: 1;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .shs-chat[data-open="true"] .shs-launcher { opacity: 0; pointer-events: none; transform: scale(0.6); }
  .shs-chat .shs-composer textarea, .shs-chat .shs-card :is(input, textarea) { font-size: 16px; } /* no iOS zoom on focus */
}

@media (prefers-reduced-motion: reduce) {
  .shs-chat *, .shs-chat *::before { animation-duration: 0.01ms !important; animation-delay: 0s !important; }
  .shs-chat .shs-panel, .shs-chat[data-open="true"] .shs-panel { transform: none !important; filter: none !important; transition: opacity 0.2s ease, visibility 0s linear 0.2s; }
  .shs-chat[data-open="true"] .shs-panel { transition: opacity 0.2s ease; }
  .shs-chat .shs-panel { opacity: 0; }
}
@media (prefers-reduced-transparency: reduce) {
  .shs-chat .shs-panel { background: #f5f5f7; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .shs-chat { --line: rgba(0, 0, 0, 0.5); --muted: #3a3a3c; }
  .shs-chat .shs-panel { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
