/* Local launcher and consent screen: no provider connection until activation. */
.scrm-chat [hidden],.scrm-chat[hidden]{display:none!important}
.scrm-chat{--chat-gap:max(1rem,env(safe-area-inset-bottom));color:var(--ink);font-size:1rem;line-height:1.5}
.scrm-chat button{cursor:pointer;font:inherit}
.scrm-chat-launcher{position:fixed;right:max(1.25rem,env(safe-area-inset-right));bottom:calc(var(--consent-height,0px) + var(--chat-gap));z-index:950;display:flex;align-items:center;gap:.65rem;min-height:3.5rem;padding:.85rem 1.3rem;border:1px solid #c5dbd2;border-radius:2rem;background:var(--navy);color:#fff;box-shadow:0 5px 22px #0b28382b;font-weight:700!important}
.scrm-chat-launcher svg{color:var(--mint);flex:none}
.scrm-chat-launcher:hover{background:#184557}
.scrm-chat-panel{position:fixed;right:max(1.25rem,env(safe-area-inset-right));bottom:var(--chat-gap);z-index:1100;display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(25rem,calc(100vw - 2.5rem));max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);border:1px solid #cbd8d4;border-radius:.75rem;background:#fff;box-shadow:0 12px 50px #0b283833;overflow:hidden}
.scrm-chat-panel.is-active{height:min(39rem,calc(100vh - 2rem));height:min(39rem,calc(100dvh - 2rem))}
.scrm-chat-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:1.1rem 1.1rem 1rem 1.3rem;background:var(--navy);color:#fff}
.scrm-chat-brand{margin:0 0 .2rem;color:var(--mint);font-size:.875rem;font-weight:700}
.scrm-chat-header h2{margin:0;font-size:1.1rem;line-height:1.4;font-weight:500;letter-spacing:0}
.scrm-chat-close{display:grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;border:1px solid #ffffff45;border-radius:.3rem;background:transparent;color:#fff}
.scrm-chat-close:hover{background:#ffffff18}
.scrm-chat-intro{padding:1.4rem 1.3rem;overflow:auto;overscroll-behavior:contain}
.scrm-chat-intro p{margin:0 0 1rem}
.scrm-chat-welcome{font-size:1.2rem;font-weight:600;line-height:1.4}
.scrm-chat-intro .scrm-chat-privacy{padding-top:1rem;border-top:1px solid var(--line);font-size:.875rem;line-height:1.6;color:var(--muted);margin-bottom:.5rem}
.scrm-chat a{text-decoration:underline;text-underline-offset:3px}
.scrm-chat-privacy-link,.scrm-chat-contact{font-size:.875rem}
.scrm-chat-start{display:block;width:100%;min-height:3rem;padding:.8rem 1rem;margin:1.25rem 0 .85rem;border:1px solid #86b8a0;border-radius:.3rem;background:var(--mint);color:var(--navy);font-weight:700!important}
.scrm-chat-start:hover{background:#d6f3e6}
.scrm-chat-contact{display:block;text-align:center;line-height:1.5;padding:.3rem 0}
.scrm-chat-frame{min-height:0;min-width:0;background:#fff;overflow:hidden}
.scrm-chat-frame iframe{display:block;width:100%;height:100%;border:0;background:#fff}
.scrm-chat-footer{padding:.6rem 1rem .75rem;border-top:1px solid var(--line);background:#f5f8f7;font-size:.875rem}
.scrm-chat-footer p{margin:0 0 .5rem;color:var(--muted)}
.scrm-chat-footer p:empty{display:none}
.scrm-chat-footer>div{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}
.scrm-chat-footer a,.scrm-chat-footer button{min-height:2.75rem;display:inline-flex;align-items:center;padding:.4rem 0}
.scrm-chat-footer button{border:0;background:none;color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.scrm-chat-footer button:hover{color:#247657}
.scrm-chat :focus-visible{outline:3px solid #278560;outline-offset:3px}
.scrm-chat-header :focus-visible{outline-color:var(--mint)}
@media(max-width:480px){.scrm-chat-launcher{right:.75rem}.scrm-chat-panel{right:.5rem;width:calc(100vw - 1rem);max-height:calc(100vh - 1rem);max-height:calc(100dvh - 1rem)}.scrm-chat-panel.is-active{height:calc(100vh - 1rem);height:calc(100dvh - 1rem)}.scrm-chat{--chat-gap:max(.5rem,env(safe-area-inset-bottom))}.scrm-chat-header{padding:.8rem 1rem}.scrm-chat-intro{padding:1.15rem}}
@media print{.scrm-chat{display:none!important}}

.scrm-chat-person{display:flex;align-items:center;gap:.8rem;min-width:0}
.scrm-chat-logo{flex:none;box-sizing:border-box;width:56px;height:56px;padding:5px;object-fit:contain;border-radius:.35rem;background:#fff}
.scrm-chat-tagline{margin:.35rem 0 0;color:var(--mint);font-size:.875rem;line-height:1.4}
.scrm-chat-hours{font-size:.875rem;font-weight:600;color:var(--ink)}
.scrm-chat-closed{padding:1rem;border-radius:.3rem;background:#edf6f1;color:var(--ink)}
