/*!
 * InsightTech widget v1.0.0 - styles
 * Everything is scoped under .itw and resets inherited host styles, so the
 * widget renders identically in every InsightTech product. Do not edit per
 * project; see docs/insighttech-widget.md.
 */

.itw {
  --itw-navy: #0b1437;
  --itw-blue: #3758f9;
  --itw-blue-hover: #2440d8;
  --itw-green: #13c296;
  --itw-text: #111928;
  --itw-text-2: #3b4556;
  --itw-muted: #637381;
  --itw-line: #e3e7ee;
  --itw-soft: #f4f6fb;
  --itw-shadow: 0 24px 60px -20px rgba(11, 20, 55, .45), 0 2px 6px rgba(11, 20, 55, .08);

  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9000;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--itw-text);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.itw--left { right: auto; left: 20px; }

/* Reset host styles inside the widget. */
.itw *, .itw *::before, .itw *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: inherit;
  background: none;
  box-shadow: none;
  list-style: none;
}
.itw strong { font-weight: 700; color: var(--itw-text); }
.itw img, .itw svg { display: block; max-width: none; }
.itw button { cursor: pointer; -webkit-appearance: none; appearance: none; }
.itw a:focus-visible, .itw button:focus-visible { outline: 2px solid var(--itw-blue); outline-offset: 2px; }
.itw-svg { width: 16px; height: 16px; flex: none; }

/* Launcher */
.itw-launcher {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--itw-line);
  box-shadow: var(--itw-shadow);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.itw .itw-launcher { background: #fff; border: 1px solid var(--itw-line); box-shadow: var(--itw-shadow); }
.itw .itw-launcher:hover { transform: translateY(-2px); border-color: var(--itw-blue); }
.itw-launcher-icon { width: 30px; height: 30px; }
.itw-launcher-close { display: none; color: #fff; }
.itw-launcher-close .itw-svg { width: 22px; height: 22px; }
.itw .itw-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  background: var(--itw-green);
  border: 2px solid #fff;
}
.itw .itw-tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  padding: 6px 10px;
  background: var(--itw-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  transition: opacity .15s ease, transform .15s ease;
  pointer-events: none;
}
.itw--left .itw-tip { right: auto; left: calc(100% + 10px); transform: translate(-6px, -50%); }
.itw-launcher:hover .itw-tip, .itw-launcher:focus-visible .itw-tip { opacity: 1; transform: translate(0, -50%); }

.itw--open .itw-launcher { background: var(--itw-navy); border-color: var(--itw-navy); }
.itw--open .itw-launcher-icon, .itw--open .itw-dot, .itw--open .itw-tip { display: none; }
.itw--open .itw-launcher-close { display: block; }

/* Panel */
.itw-panel {
  position: absolute;
  right: 0;
  bottom: 68px;
  display: flex;
  flex-direction: column;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 110px);
  overflow: auto;
  overscroll-behavior: contain;
  animation: itw-in .16s ease-out;
}
.itw .itw-panel {
  background: #fff;
  border: 1px solid var(--itw-line);
  border-top: 3px solid var(--itw-blue);
  box-shadow: var(--itw-shadow);
}
.itw .itw-panel[hidden] { display: none !important; }
.itw--left .itw-panel { right: auto; left: 0; }

@keyframes itw-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.itw .itw-head {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--itw-navy);
  color: #fff;
}
.itw .itw-logo { width: 40px; height: 40px; padding: 4px; background: #fff; }
.itw .itw-title { font-size: 16px; font-weight: 700; line-height: 1.2; color: #fff; }
.itw .itw-legal { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .7); }
.itw .itw-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
}
.itw .itw-close:hover { background: rgba(255, 255, 255, .12); }
.itw .itw-close .itw-svg { width: 18px; height: 18px; }

.itw .itw-body { padding: 18px 16px 16px; }
.itw .itw-intro { font-size: 14px; line-height: 1.55; color: var(--itw-text-2); }

.itw .itw-actions { display: grid; gap: 8px; margin: 16px 0 6px; }
.itw .itw-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid var(--itw-line);
  font-size: 14px;
  font-weight: 600;
  color: var(--itw-text);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.itw .itw-btn:hover { border-color: var(--itw-blue); color: var(--itw-blue); }
.itw .itw-btn--primary { background: var(--itw-blue); border-color: var(--itw-blue); color: #fff; }
.itw .itw-btn--primary:hover { background: var(--itw-blue-hover); border-color: var(--itw-blue-hover); color: #fff; }

.itw .itw-contact li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--itw-line);
}
.itw .itw-contact li:first-child { margin-top: 10px; }
.itw .itw-ico {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: var(--itw-soft);
  color: var(--itw-blue);
}
.itw .itw-ico .itw-svg { width: 15px; height: 15px; }
.itw .itw-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--itw-muted);
}
.itw .itw-contact a { font-size: 14px; color: var(--itw-text); overflow-wrap: anywhere; }
.itw .itw-contact a:hover { color: var(--itw-blue); text-decoration: underline; text-underline-offset: 3px; }

.itw .itw-social {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--itw-line);
}
.itw .itw-social .itw-label { margin-right: auto; }
.itw .itw-soc {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--itw-line);
  color: var(--itw-navy);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.itw .itw-soc:hover { background: var(--itw-blue); border-color: var(--itw-blue); color: #fff; }
.itw .itw-soc .itw-svg { width: 17px; height: 17px; }

.itw .itw-foot {
  padding: 10px 16px;
  background: var(--itw-soft);
  border-top: 1px solid var(--itw-line);
  font-size: 12px;
  text-align: center;
  color: var(--itw-muted);
}
.itw .itw-foot a:hover { color: var(--itw-blue); }

@media (max-width: 480px) {
  .itw { right: 12px; bottom: 12px; }
  .itw--left { left: 12px; }
  .itw .itw-launcher { width: 52px; height: 52px; }
  .itw .itw-tip { display: none; }
  .itw-panel { position: fixed; left: 12px; right: 12px; bottom: 76px; width: auto; max-width: none; max-height: calc(100vh - 96px); }
  .itw--left .itw-panel { left: 12px; right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .itw *, .itw *::before, .itw *::after { animation: none !important; transition: none !important; }
}

@media print {
  .itw { display: none !important; }
}
