:root {
  --ilt-chat-right: clamp(16px, 2.2vw, 30px);
  --ilt-chat-bottom: clamp(18px, 2.6dvh, 32px);
  --ilt-chat-icon-size: 118px;
  --ilt-chat-radius: 24px;
  --ilt-chat-shadow: 0 24px 60px rgba(0, 19, 58, 0.26);
}

#sprout-chat-widget-wrapper.chat-widget-container {
  right: var(--ilt-chat-right) !important;
  bottom: var(--ilt-chat-bottom) !important;
  left: auto !important;
  isolation: isolate;
  overflow: visible !important;
  transition:
    transform 0.22s ease,
    filter 0.22s ease,
    width 0.3s ease,
    height 0.3s ease,
    right 0.3s ease,
    bottom 0.3s ease !important;
}

#sprout-chat-widget-wrapper.chat-widget-position-left {
  right: var(--ilt-chat-right) !important;
  left: auto !important;
}

#sprout-chat-widget-wrapper.chat-widget-state-icon,
#sprout-chat-widget-wrapper.chat-widget-state-icon[class*="personas-height"],
#sprout-chat-widget-wrapper.chat-widget-state-icon[class*="grid-width"] {
  width: var(--ilt-chat-icon-size) !important;
  height: var(--ilt-chat-icon-size) !important;
  border-radius: 999px;
  filter: drop-shadow(0 18px 28px rgba(0, 19, 58, 0.22));
  overflow: visible !important;
}

#sprout-chat-widget-wrapper.chat-widget-state-icon .chat-widget-iframe {
  width: var(--ilt-chat-icon-size) !important;
  height: var(--ilt-chat-icon-size) !important;
  border-radius: 999px;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    filter 0.22s ease !important;
}

#sprout-chat-widget-wrapper.chat-widget-state-icon::before {
  content: "Chat with ILT";
  position: absolute;
  z-index: 2;
  right: calc(var(--ilt-chat-icon-size) - 16px);
  bottom: calc(var(--ilt-chat-icon-size) * 0.34);
  padding: 10px 15px 10px 16px;
  border: 1px solid rgba(0, 35, 102, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(0, 19, 58, 0.18);
  color: #002366;
  font: 800 13px/1 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
}

#sprout-chat-widget-wrapper.chat-widget-state-icon::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 18px;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #1fbf75;
  box-shadow: 0 0 0 4px rgba(31, 191, 117, 0.16);
  pointer-events: none;
}

#sprout-chat-widget-wrapper.chat-widget-state-icon:hover .chat-widget-iframe,
#sprout-chat-widget-wrapper.chat-widget-state-icon:focus-within .chat-widget-iframe {
  filter: saturate(1.05);
  transform: translateY(-2px);
}

#sprout-chat-widget-wrapper.chat-widget-state-maximized {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--ilt-chat-radius);
  background: #fff;
  box-shadow: var(--ilt-chat-shadow);
  overflow: hidden !important;
}

#sprout-chat-widget-wrapper.chat-widget-state-maximized .chat-widget-iframe {
  border-radius: inherit;
}

#sprout-chat-widget-wrapper.chat-widget-state-maximized::before,
#sprout-chat-widget-wrapper.chat-widget-state-maximized::after,
#sprout-chat-widget-wrapper.chat-widget-state-fullscreen::before,
#sprout-chat-widget-wrapper.chat-widget-state-fullscreen::after {
  display: none;
}

#sprout-chat-widget-wrapper.chat-widget-state-fullscreen {
  right: 0 !important;
  bottom: 0 !important;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  overflow: hidden !important;
}

@media (max-width: 560px) {
  :root {
    --ilt-chat-right: 14px;
    --ilt-chat-bottom: 14px;
    --ilt-chat-icon-size: 108px;
  }

  #sprout-chat-widget-wrapper.chat-widget-state-icon::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sprout-chat-widget-wrapper.chat-widget-container,
  #sprout-chat-widget-wrapper .chat-widget-iframe {
    transition: none !important;
  }

  #sprout-chat-widget-wrapper.chat-widget-state-icon:hover .chat-widget-iframe,
  #sprout-chat-widget-wrapper.chat-widget-state-icon:focus-within .chat-widget-iframe {
    transform: none;
  }
}
