/* Styles are isolated to GTLV widgets; floating stylesheet is lazy loaded. */
.gtlv-widget, .gtlv-widget *, .gtlv-widget *::before, .gtlv-widget *::after {box-sizing:border-box}
.gtlv-widget {--gtlv-ink:#203247;--gtlv-deep:#153b66;--gtlv-muted:#66778b;--gtlv-line:#d8e1e9;--gtlv-soft:#f3f7fa;--gtlv-white:#fff; color:var(--gtlv-ink);background:var(--gtlv-white);font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:15px;line-height:1.5;border:1px solid var(--gtlv-line);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px #18395612;display:flex;flex-direction:column;isolation:isolate}
.gtlv-widget[hidden] {display:none!important}
.gtlv-full {width:100%;max-width:1100px;min-height:650px;height:min(78vh,900px);margin:0 auto}
.gtlv-compact {width:100%;max-width:650px;min-height:480px;height:570px;margin:0 auto}
.gtlv-floating {position:absolute;bottom:64px;right:0;width:min(390px,calc(100vw - 24px));height:min(610px,calc(100dvh - 100px));max-height:700px;box-shadow:0 15px 55px #0e243c50;border:1px solid #bccad9}
.gtlv-header {background:var(--gtlv-deep);color:#fff;padding:15px 18px;display:flex;justify-content:space-between;align-items:center;gap:12px;flex:0 0 auto}
.gtlv-identity {display:flex;align-items:center;gap:10px;min-width:0}
.gtlv-mark {display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#ffffff1b;font-size:23px}
.gtlv-name {display:flex;flex-direction:column;gap:1px;min-width:0}
.gtlv-name strong {font-size:14px;font-weight:700;color:#fff;line-height:1.25}
.gtlv-name small {font-size:12px;color:#dbe8f7}
.gtlv-close {padding:0;border:0;background:transparent;color:#fff;font:28px/1 sans-serif;cursor:pointer;width:34px;height:34px}
.gtlv-feed {padding:23px 20px 15px;display:flex;flex-direction:column;align-items:flex-start;gap:14px;overflow:auto;flex:1 1 auto;min-height:130px;background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);scrollbar-width:thin}
.gtlv-message {white-space:pre-wrap;word-break:break-word;max-width:89%;padding:12px 15px;border-radius:16px;font-size:14px;line-height:1.55}
.gtlv-message-assistant {background:#eef3f8;border:1px solid #e6edf3;border-top-left-radius:4px}
.gtlv-message-visitor {background:var(--gtlv-deep);color:#fff;border-top-right-radius:4px;align-self:flex-end}
.gtlv-quick {display:flex;flex-wrap:wrap;gap:8px;width:100%}
.gtlv-quick button {font:600 12px/1.3 system-ui,sans-serif;color:#174674;padding:9px 11px;border:1px solid #c9d9ea;background:#fff;border-radius:999px;cursor:pointer;text-align:left;max-width:100%}
.gtlv-quick button:hover {background:#edf5fb}
.gtlv-controls {padding:15px 18px;background:#fff;border-top:1px solid var(--gtlv-line);flex:0 0 auto;max-height:69%;overflow-y:auto}
.gtlv-compose {display:flex;align-items:flex-end;gap:10px;margin:0}
.gtlv-compose textarea {resize:vertical;max-height:140px;min-height:47px;flex:1 1 auto;width:100%;min-width:0;border:1px solid #cbd7e2;background:#fff;border-radius:10px;padding:11px 12px;color:var(--gtlv-ink);font:14px/1.4 system-ui,sans-serif}
.gtlv-send {border:0;border-radius:10px;background:#153b66;color:#fff;font:600 13px/1.25 system-ui,sans-serif;min-height:45px;padding:11px 16px;white-space:nowrap;cursor:pointer}
.gtlv-send:disabled {opacity:.6;cursor:wait}
.gtlv-lower {text-align:center;padding-top:10px}
.gtlv-handoff {border:0;background:none;color:#184a7c;text-decoration:underline;text-underline-offset:3px;font:600 12px/1.3 system-ui,sans-serif;cursor:pointer;padding:6px}
.gtlv-status {padding:8px 10px;border-radius:7px;background:#f2f6fc;font-size:12px;margin-bottom:9px}
.gtlv-error {color:#8c2222;background:#fff0f0}
.gtlv-widget button:focus-visible,.gtlv-widget input:focus-visible,.gtlv-widget textarea:focus-visible,.gtlv-widget a:focus-visible {outline:3px solid #eaa344;outline-offset:2px}
.gtlv-lead-form {display:flex;flex-direction:column;gap:10px;margin:0}
.gtlv-lead-form h3 {font:700 18px/1.3 system-ui,sans-serif!important;margin:0;color:var(--gtlv-ink)!important}
.gtlv-form-intro {font-size:12px;line-height:1.45;color:var(--gtlv-muted);margin:0}
.gtlv-form-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.gtlv-field {display:flex;flex-direction:column;gap:4px;min-width:0;font:600 12px/1.4 system-ui,sans-serif;color:#344c62}
.gtlv-field input,.gtlv-field textarea {width:100%;min-width:0;border:1px solid #cbd7e2!important;background:#fff!important;color:#223952!important;border-radius:8px!important;padding:9px 10px!important;font:13px/1.4 system-ui,sans-serif!important;box-shadow:none!important;margin:0!important}
.gtlv-field textarea {resize:vertical}
.gtlv-consent {display:flex;align-items:flex-start;gap:9px;font:12px/1.45 system-ui,sans-serif;color:#425870}
.gtlv-consent input {width:auto!important;min-width:15px;margin:2px 0 0!important}
.gtlv-form-actions {display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.gtlv-secondary {background:#fff;color:#153b66;border:1px solid #a7bdd1;border-radius:9px;padding:9px 12px;cursor:pointer;font:600 12px/1.4 system-ui,sans-serif}
.gtlv-honey {position:absolute!important;left:-10000px!important;top:auto!important;height:1px!important;width:1px!important;overflow:hidden!important}
.gtlv-schedule-link {display:inline-block;padding:11px 17px;border-radius:9px;text-decoration:none;background:#153b66;color:#fff!important;font-weight:650}
.gtlv-widget [hidden] {display:none!important}
@media(max-width:650px){.gtlv-full {height:75dvh;min-height:560px;border-radius:12px}.gtlv-floating {position:fixed;inset:0;width:100%;height:100dvh;max-height:none;border-radius:0;border:0}.gtlv-form-grid {grid-template-columns:1fr}.gtlv-controls {padding:12px}.gtlv-feed {padding:14px}.gtlv-message {max-width:95%}.gtlv-compose textarea {min-height:45px}.gtlv-name strong {font-size:13px}}

.gtlv-summary {padding:8px 15px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--gtlv-line);background:#f6f9fc;font-size:11px;color:#435a74}
.gtlv-summary strong {font-size:11px}
.gtlv-summary-item {border:1px solid #c9dae8;border-radius:999px;background:#fff;padding:3px 8px;overflow-wrap:anywhere}

.gtlv-privacy {font-size:10px;color:var(--gtlv-muted);text-align:center;margin-top:7px}
.gtlv-privacy a {color:#174674;text-decoration:underline}

/* Conversation pacing: quiet typing cue after a visitor sends a message. */
.gtlv-typing {min-width:64px;min-height:40px;display:flex;align-items:center;justify-content:center}
.gtlv-typing-dots {display:inline-flex;align-items:center;gap:5px;height:14px}
.gtlv-typing-dot {display:block;width:7px;height:7px;border-radius:50%;background:#7890aa;animation:gtlv-typing-bounce 1.15s ease-in-out infinite}
.gtlv-typing-dot:nth-child(2) {animation-delay:.15s}
.gtlv-typing-dot:nth-child(3) {animation-delay:.3s}
@keyframes gtlv-typing-bounce {0%,60%,100% {transform:translateY(0);opacity:.5}30% {transform:translateY(-4px);opacity:1}}
@media(prefers-reduced-motion:reduce) {.gtlv-typing-dot {animation:none;opacity:.8}}

.gtlv-new-conversation { background: none; border: 0; padding: 4px 8px; font-size: .78rem; color: inherit; text-decoration: underline; cursor: pointer; opacity: .78; }
.gtlv-new-conversation:hover, .gtlv-new-conversation:focus-visible { opacity: 1; }

/* v0.5.8: persistent, accessible lead submission actions. Never hide the submit
   button below a separately scrolling contact panel, including on phones. */
.gtlv-form-footer {
  display:flex; flex:0 0 auto; align-items:center; justify-content:flex-end;
  gap:10px; padding:12px 18px; background:#fff; border-top:1px solid var(--gtlv-line);
  box-shadow:0 -5px 14px rgba(15,43,72,.06); z-index:2;
}
.gtlv-form-footer[hidden] {display:none!important}
.gtlv-form-footer .gtlv-submit-lead {flex:1; min-width:0; min-height:48px; font-size:14px; white-space:normal}
.gtlv-form-footer .gtlv-secondary {flex:0 0 auto; min-height:45px}
.gtlv-widget:has(.gtlv-lead-form) .gtlv-controls {max-height:70%; min-height:0; overflow-y:auto; overscroll-behavior:contain}
@media(max-width:650px){
  .gtlv-form-footer {padding:10px 12px; gap:8px}
  .gtlv-form-footer .gtlv-submit-lead {font-size:13px}
  .gtlv-widget:has(.gtlv-lead-form) .gtlv-controls {max-height:72%}
}
/* Let the form content shrink into its own scroll area while the footer remains visible.
   This also avoids overflowing a full-screen floating widget on short phones. */
.gtlv-widget:has(.gtlv-lead-form) .gtlv-feed {flex:0 0 auto; min-height:70px; max-height:18%; overflow-y:auto}
.gtlv-widget:has(.gtlv-lead-form) .gtlv-controls {flex:1 1 auto; min-height:0; max-height:none; overflow-y:auto}
