#inland-idbot-root{--idbot-blue:#2473ac;--idbot-ink:#202c37;max-width:520px;margin:24px 0;font:16px/1.55 "Segoe UI","Helvetica Neue",Helvetica,sans-serif;color:var(--idbot-ink)}
#inland-idbot-root *,#idbot-window{box-sizing:border-box}
#inland-idbot-root [hidden]{display:none!important}
#inland-idbot-root a{color:#1d6599;text-decoration:underline;text-underline-offset:2px}
.idbot-shell{display:flex;flex-direction:column;min-height:0;height:min(820px,90dvh);background:#fff;border:1px solid #b7c1c9;border-radius:14px;overflow:hidden;box-shadow:0 12px 40px #172d4426}
.idbot-header{flex:none;display:flex;align-items:center;gap:12px;min-height:50px;padding:10px 18px;background:linear-gradient(110deg,#f7f9fa 0%,#d8dde1 45%,#f0f3f5 75%,#c6cdd3 100%);border-bottom:1px solid #b7c1c9;color:#22313e}
.idbot-header h2{margin:0;color:inherit;font-size:18px;line-height:1.3;font-weight:750;letter-spacing:.04em}
.idbot-header span{font-size:12px;color:#41515e}
.idbot-transcript{flex:1 1 0;min-height:100px;overflow-y:auto;overflow-x:hidden;padding:20px 18px;background:#f3f5f7;overscroll-behavior:contain;overflow-anchor:none;scrollbar-width:thin;scrollbar-color:#a3b1bd transparent}
.idbot-message{margin:0 22px 16px 0;padding:12px 15px;background:#fff;border:1px solid #dce2e7;border-radius:12px;overflow-wrap:anywhere}
.idbot-customer{margin-left:30px;margin-right:0;background:#e5f0f8;border-color:#ccdeed}
.idbot-message strong{display:block;font-size:12px;font-weight:650;line-height:1.4;color:#4d6375}
.idbot-message p{margin:6px 0 0;white-space:pre-wrap;font-size:16px;line-height:1.6}
.idbot-message small{display:block;margin-top:6px;font-size:11px;line-height:1.4;color:#637381}
.idbot-welcome{margin:10px 4px;color:#425769;font-size:16px}
.idbot-controls{flex:0 0 auto;max-height:60%;overflow-y:auto;background:#fff;border-top:1px solid #dce2e7}
.idbot-status{margin:0;padding:8px 16px 5px;font-size:12px;line-height:1.45;color:#526574;overflow-wrap:anywhere}
.idbot-composer{padding:4px 14px 8px;display:flex;gap:8px;flex-wrap:wrap}
.idbot-composer label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.idbot-composer textarea{resize:none;width:100%;height:68px;min-height:0;max-height:120px;border:1px solid #a7b5c1;border-radius:8px;padding:10px 12px;font:inherit;font-size:16px;line-height:1.4;color:inherit;background:#fff}
.idbot-shell button{font:600 13px/1.2 "Segoe UI","Helvetica Neue",Helvetica,sans-serif;cursor:pointer;border:1px solid #b7c6d1;border-radius:7px;padding:10px 13px;background:#fff;color:#245a80;min-height:40px;box-shadow:none;text-transform:none}
.idbot-shell button.idbot-primary{background:var(--idbot-blue);border-color:var(--idbot-blue);color:#fff}
.idbot-shell button:hover{background:#eef4f8}.idbot-shell button.idbot-primary:hover{background:#1d6091;border-color:#1d6091}
.idbot-shell button:disabled{opacity:.5;cursor:default}
.idbot-shell :is(button,textarea,input,a):focus-visible,#idbot-launcher:focus-visible,#idbot-close:focus-visible{outline:3px solid #2473ac;outline-offset:2px}
.idbot-toolbar{display:flex;align-items:center;gap:14px;min-height:44px;padding:0 14px 8px}
.idbot-toolbar .idbot-link{min-height:36px;padding:6px 0;border:0;background:transparent;font-size:12px;font-weight:400;color:#465d6e}
.idbot-upload{display:flex;margin:0;padding:0;border:0}
.idbot-shell .idbot-attach{width:40px;height:38px;min-height:38px;padding:8px;display:grid;place-items:center;border:1px solid #c9d3dc;background:#f4f7f9}
.idbot-attach svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.idbot-phone{margin-left:auto}.idbot-phone,.idbot-privacy{font-size:11px;white-space:nowrap}
.idbot-contact{display:grid;grid-template-columns:1fr;gap:8px;padding:12px 16px;border-top:1px solid #dce2e7;font-size:14px}
.idbot-contact input{width:100%;padding:9px;border:1px solid #a7b5c1;border-radius:6px;font:inherit;background:#fff}
.idbot-ai-diagnostics{display:block;padding:2px 16px;font-size:10px;color:#637381}
.idbot-retry-ai{margin:4px 16px 8px}
#idbot-launcher{position:fixed;right:22px;bottom:20px;z-index:999998;border:1px solid #1e6394;border-radius:999px;background:#2473ac;color:#fff;box-shadow:0 5px 22px #182f4440;font:650 16px/1.3 "Segoe UI","Helvetica Neue",Helvetica,sans-serif;padding:14px 21px;cursor:pointer}
#idbot-launcher span{display:inline-block;margin-left:8px;font-size:11px;font-weight:400;opacity:.85}
#idbot-launcher[aria-expanded=true]{visibility:hidden}
#idbot-window{position:fixed;right:16px;top:max(12px,env(safe-area-inset-top));bottom:max(12px,env(safe-area-inset-bottom));width:500px;max-width:calc(100vw - 24px);z-index:999999;background:#fff;border:1px solid #aebac4;border-radius:14px;box-shadow:0 12px 50px #182e4540;overflow:hidden;padding:0}
body.admin-bar #idbot-window{top:44px}
#idbot-window[hidden]{display:none!important}
#idbot-close{position:absolute;right:6px;top:4px;z-index:3;width:42px;height:42px;border:0;border-radius:7px;background:transparent;color:#234f71;font:28px/1 system-ui;cursor:pointer;display:grid;place-items:center;padding:0}
#idbot-close:hover{background:#ffffff80}
#idbot-window #inland-idbot-root{margin:0;max-width:none;width:100%;height:100%}
#idbot-window .idbot-shell{border:0;border-radius:0;box-shadow:none;height:100%}
#idbot-window .idbot-header{padding-right:54px}
body:has(#idbot-launcher) iframe[title="LiveChat chat widget"]{display:none!important}
@media(max-width:782px){body.admin-bar #idbot-window{top:54px}}
@media(max-width:480px){#idbot-window{right:6px;left:6px;top:max(6px,env(safe-area-inset-top));bottom:max(6px,env(safe-area-inset-bottom));width:auto;max-width:none;border-radius:12px}#idbot-launcher{right:12px;bottom:12px}.idbot-header{padding-left:14px;gap:8px}.idbot-header span{font-size:11px}.idbot-transcript{padding:14px 10px}.idbot-message{margin-right:12px;padding:10px 12px}.idbot-customer{margin-left:20px;margin-right:0}.idbot-composer{padding:4px 10px 6px}.idbot-toolbar{padding:0 10px 6px;gap:12px}.idbot-status{padding:7px 12px 4px}.idbot-phone,.idbot-privacy{font-size:11px}}
@media(max-height:600px){.idbot-header{min-height:44px;padding-top:7px;padding-bottom:7px}.idbot-composer textarea{height:46px}.idbot-transcript{min-height:60px}.idbot-status{padding-top:5px;padding-bottom:2px}.idbot-toolbar{min-height:36px}}
.idbot-proof{margin-top:12px;border:1px solid #bdc8d1;background:#f7f9fb;border-radius:9px;padding:10px;color:#182d40}
.idbot-proof p{margin:5px 0;font-size:12px}.idbot-proof img{display:block;max-width:100%;width:100%;height:auto;border-radius:4px}.idbot-proof img[hidden]{display:none}
.idbot-proof-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px;align-items:center}.idbot-proof-actions button,.idbot-proof-actions a{font-size:12px;padding:7px 9px;border-radius:5px;line-height:1.3}
.idbot-proof-dialog{padding:14px;max-width:94vw;max-height:94dvh;width:900px;border:1px solid #9aaab7;border-radius:10px;background:#f3f5f7;z-index:2147483647}.idbot-proof-dialog::backdrop{background:#172839a8}.idbot-proof-dialog img{width:100%;height:auto;display:block}.idbot-proof-dialog button{position:sticky;top:0;display:block;margin-left:auto;background:#17629b;color:white;border:0;border-radius:6px;padding:10px 16px;cursor:pointer}

.idbot-session-recovery{margin:4px 14px 10px;padding:12px;border:1px solid #a7bfd2;border-radius:8px;background:#eef5fa;color:#253e52}
.idbot-session-recovery p{margin:0 0 10px;font-size:13px;line-height:1.5}
.idbot-session-recovery button{width:100%}

.idbot-pending-review{margin:4px 14px 10px;padding:10px;border:1px solid #b7c6d1;border-radius:8px;background:#f7f9fb}
.idbot-pending-review p{margin:0 0 8px;font-size:12px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.idbot-pending-review p:nth-child(2){max-height:80px;overflow:auto}

/* The quote destination uses one inline instance of the same conversation. */
#inland-idbot-root[data-idbot-mode="embedded"]{max-width:none;width:100%;margin:0 0 22px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell{height:clamp(480px,72dvh,780px);border-radius:12px;box-shadow:0 5px 22px #172d4412}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-header{min-height:44px;padding:9px 20px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-header h2{margin:0;font-size:16px;letter-spacing:0}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-transcript{padding:20px 24px;min-height:130px;overscroll-behavior:auto}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-message{max-width:850px;margin-right:7%;padding:13px 17px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-customer{margin-left:7%;margin-right:0}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-controls{max-height:none;overflow:visible}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-composer{padding:5px 20px 8px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-composer textarea{height:72px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-status{padding:8px 22px 4px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-toolbar{padding:0 20px 7px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell button{min-height:44px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell .idbot-attach{width:44px;height:44px}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-manual-link{display:inline-block;margin:0 22px 10px;font-size:12px;line-height:1.5}
#inland-idbot-root[data-idbot-mode="embedded"] .idbot-proof{max-width:780px}
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-contact:not([hidden])) .idbot-shell,
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-session-recovery:not([hidden])) .idbot-shell,
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-pending-review:not([hidden])) .idbot-shell{height:auto;min-height:var(--idbot-embedded-min-height,480px)}
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-contact:not([hidden])) .idbot-transcript,
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-session-recovery:not([hidden])) .idbot-transcript,
#inland-idbot-root[data-idbot-mode="embedded"]:has(.idbot-pending-review:not([hidden])) .idbot-transcript{flex:none;max-height:340px}
body:has(#inland-idbot-root[data-idbot-mode="embedded"]) iframe[title="LiveChat chat widget"]{display:none!important}
@media(max-width:640px){
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell{height:clamp(460px,72svh,680px);border-radius:10px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-header{padding:9px 13px;gap:9px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-header span{font-size:11px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-transcript{padding:14px 10px;min-height:110px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-message{margin-right:8px;padding:11px 12px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-customer{margin-left:12px;margin-right:0}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-composer{padding:4px 10px 7px;gap:7px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-composer textarea{height:68px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-status{padding:7px 12px 4px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-toolbar{padding:0 10px 7px;gap:12px;flex-wrap:wrap}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-manual-link{margin:0 12px 10px}
 #inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell .idbot-handoff{font-size:12px;padding:9px 10px}
}
/* Allow wrapped action rows at narrow widths without clipping the composer. */
@media(max-width:360px){#inland-idbot-root[data-idbot-mode="embedded"] .idbot-shell{height:clamp(560px,80svh,720px)}}
/* Keep the first message field close to the welcome. Saved conversation content
   restores the full-height transcript; merely typing a draft does not expand it. */
#inland-idbot-root[data-idbot-mode="embedded"].idbot-empty{--idbot-embedded-min-height:0px}
#inland-idbot-root[data-idbot-mode="embedded"].idbot-empty .idbot-shell{height:auto;min-height:0}
#inland-idbot-root[data-idbot-mode="embedded"].idbot-empty .idbot-transcript{flex:none;min-height:0}

/* Fresh sessions are an explicit action, separate from staff submission. */
.idbot-shell button.idbot-start-new{background:#fff;border:1px solid #8ea9bd;color:#245a80;min-height:44px;white-space:normal}
.idbot-shell button.idbot-start-new:hover{background:#eef4f8}
.idbot-reset-dialog{width:min(440px,calc(100vw - 32px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #a7b8c6;border-radius:12px;background:#fff;color:#202c37;box-shadow:0 14px 48px #172d4440;z-index:2147483647;font:16px/1.5 "Segoe UI","Helvetica Neue",Helvetica,sans-serif}
.idbot-reset-dialog::backdrop{background:#172839a8}
.idbot-reset-dialog h2{margin:0 0 12px;font-size:22px;line-height:1.3;color:#202c37}
.idbot-reset-dialog p{margin:0 0 16px;font-size:15px}
.idbot-reset-dialog button{min-height:44px;padding:10px 14px;border:1px solid #a7b8c6;border-radius:7px;font:600 14px/1.3 "Segoe UI","Helvetica Neue",Helvetica,sans-serif;cursor:pointer;background:#fff;color:#245a80;margin:0 8px 4px 0}
.idbot-reset-dialog .idbot-reset-confirm{background:#2473ac;border-color:#2473ac;color:#fff}
.idbot-reset-dialog button:disabled{opacity:.5;cursor:default}
.idbot-reset-dialog button:focus-visible{outline:3px solid #2473ac;outline-offset:2px}
.idbot-reset-error:empty{display:none}
@media(max-width:480px){.idbot-shell button.idbot-start-new{flex-basis:100%;width:100%}.idbot-reset-dialog{padding:20px}}
.idbot-other-tab-draft{margin:8px 14px;padding:12px;background:#f6f9fb;border:1px solid #b7c6d1;border-radius:8px}
.idbot-other-tab-draft p{font-size:13px;line-height:1.5;margin:0 0 8px}
.idbot-other-tab-draft textarea{display:block;width:100%;min-height:70px;margin:0 0 8px;padding:8px;font:14px/1.4 "Segoe UI","Helvetica Neue",Helvetica,sans-serif;background:white;color:#202c37;border:1px solid #b7c6d1;border-radius:5px}
#inland-idbot-root:has(.idbot-other-tab-draft:not([hidden])) .idbot-controls{max-height:none;overflow:visible}
#inland-idbot-root:has(.idbot-other-tab-draft:not([hidden])) .idbot-shell{height:auto;min-height:0}
#inland-idbot-root:has(.idbot-other-tab-draft:not([hidden])) .idbot-transcript{flex:none;max-height:340px}
