.webchat { position:fixed; right:26px; bottom:24px; z-index:1000; font-family:'WebSys Sans',Arial,sans-serif; color:#173c42; }
.webchat *, .webchat *::before, .webchat *::after { box-sizing:border-box; }
.webchat [hidden] { display:none!important; }
.webchat button, .webchat input, .webchat textarea { font:inherit; }
.webchat button { cursor:pointer; }
.webchat button:focus-visible, .webchat input:focus-visible, .webchat textarea:focus-visible, .webchat a:focus-visible, .chat-thread:focus-visible { outline:3px solid #b76c35; outline-offset:3px; }
.chat-launch { position:relative; border:0; border-radius:30px; background:#173f46; color:white; padding:16px 21px; display:flex; align-items:center; gap:10px; box-shadow:0 7px 26px #153c4233; font-size:14px!important; font-weight:600!important; margin-left:auto; transition:transform .18s,background .18s; }
.chat-launch:hover { transform:translateY(-2px); background:#24575c; }
.chat-launch svg { width:23px; height:23px; color:#efc57a; }
.chat-badge { position:absolute; right:-4px; top:-7px; min-width:26px; height:26px; padding:3px 6px; display:grid; place-items:center; border:2px solid white; border-radius:50%; font-size:11px; background:#bd293b; color:white; box-shadow:0 3px 9px #7b203544; }
.chat-panel { position:absolute; right:0; bottom:72px; width:390px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 118px); display:flex; flex-direction:column; border:1px solid #ccddd6; border-radius:20px; overflow:hidden; background:#fff; box-shadow:0 18px 65px #143b4240; animation:chat-arrive .22s ease-out; }
.chat-heading { flex-shrink:0; display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:21px 22px; background:linear-gradient(130deg,#173f46,#275d62); color:white; }
.chat-heading small { font-size:9px; letter-spacing:1.8px; color:#f5d39a; }
.chat-heading h2 { font-size:22px; letter-spacing:-.5px; line-height:1.25; margin:8px 0; }
.chat-heading p { font-size:12px; margin:0; color:#dbece5; }
.chat-close { background:#ffffff12; border:1px solid #ffffff35; color:white; border-radius:10px; width:38px; height:38px; font-size:24px!important; flex-shrink:0; }
.chat-profile { padding:9px 18px; display:flex; align-items:center; gap:8px; justify-content:space-between; border-bottom:1px solid #e0e9e3; font-size:11px; flex-shrink:0; }
.chat-profile span { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.chat-edit { color:#275d62; border:0; background:transparent; text-decoration:underline; font-size:11px!important; padding:6px 0; flex-shrink:0; }
.chat-contact { padding:23px; overflow:auto; min-height:0; }
.chat-welcome > span { display:grid; place-items:center; background:#f4e6cf; color:#8c482e; width:39px; height:39px; font-size:22px; border-radius:12px; }
.chat-welcome h3 { font-size:20px; line-height:1.3; margin:14px 0 7px; letter-spacing:-.4px; }
.chat-welcome p { font-size:12px; line-height:1.7; color:#536e6b; margin:0 0 20px; }
.chat-contact label { display:block; font-size:12px; font-weight:600; margin-bottom:14px; }
.chat-contact label span { color:#59716c; font-size:10px; font-weight:400; }
.chat-contact input { display:block; width:100%; margin-top:7px; border:1px solid #a9c0b7; border-radius:9px; padding:12px; background:#fff; color:#173c42; font-size:14px; }
.chat-continue { display:flex; justify-content:space-between; align-items:center; width:100%; background:#a8442d; color:white; border:0; border-radius:9px; padding:13px 15px; font-size:13px!important; font-weight:600!important; }
.chat-continue:hover,.chat-send:hover { background:#8e3927; }
.chat-contact-note { font-size:10px; color:#536e6b; line-height:1.6; margin:11px 0 0; }
.chat-thread { overflow:auto; flex:1 1 auto; min-height:100px; max-height:310px; padding:18px; background:#f4f8f6; overscroll-behavior:contain; }
.chat-intro { font-size:14px; line-height:1.65; padding:8px 0; }
.chat-intro p { margin-top:7px; color:#536e6b; font-size:12px; }
.chat-message { padding:12px 14px; border-radius:12px 12px 12px 3px; background:white; margin:0 24px 12px 0; border:1px solid #e0e9e3; }
.chat-message:last-child { margin-bottom:0; }
.chat-message small { display:block; font-size:10px; color:#526c68; margin-bottom:6px; }
.chat-message p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:13px; line-height:1.6; margin:0; }
.chat-visitor { margin:0 0 12px 24px; background:#e2efe8; border-color:#c7ddcf; border-radius:12px 12px 3px 12px; }
.chat-automatic { border-style:dashed; background:#faf8f2; }
.chat-notice { flex-shrink:0; font-size:12px; line-height:1.5; margin:10px 16px 0; padding:10px; background:#fff3df; border-radius:7px; }
.chat-reconnect { flex-shrink:0; margin:8px 16px 0; padding:9px; background:white; border:1px solid #78978e; border-radius:7px; color:#173f46; font-size:12px!important; }
.chat-jump { flex-shrink:0; border:0; border-top:1px solid #dfcfb0; padding:9px; background:#fff3df; color:#743821; font-size:12px!important; font-weight:600!important; }
.chat-form { padding:14px 18px; flex-shrink:0; }
.chat-form label { display:block; font-size:11px; font-weight:600; }
.chat-form textarea { display:block; width:100%; border:1px solid #a9c0b7; border-radius:9px; padding:10px; background:#fff; color:#173c42; font-size:14px; margin-top:6px; resize:vertical; max-height:100px; min-height:58px; }
.chat-trap { position:absolute!important; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.chat-send-row { display:flex; gap:10px; justify-content:space-between; align-items:center; margin-top:10px; }
.chat-send-row > span { font-size:10px; color:#536e6b; line-height:1.5; }
.chat-send { padding:12px 13px; background:#a8442d; color:white; border:0; border-radius:8px; font-size:12px!important; font-weight:600!important; }
.chat-send:disabled { opacity:.65; cursor:wait; }
.chat-footer { border-top:1px solid #e1eae4; padding:10px 18px 12px; font-size:10px; flex-shrink:0; }
.chat-footer a { text-decoration:underline; margin-right:18px; }
.chat-footer p { margin:6px 0 0; color:#536e6b; font-size:9px; line-height:1.5; }
.chat-toast { position:absolute; right:0; bottom:76px; width:310px; max-width:calc(100vw - 40px); background:white; border:1px solid #d8e5de; border-radius:15px; box-shadow:0 12px 35px #153c4233; animation:chat-arrive .25s ease-out; }
.chat-toast::after { content:''; position:absolute; right:27px; bottom:-6px; width:12px; height:12px; background:white; transform:rotate(45deg); border-right:1px solid #d8e5de; border-bottom:1px solid #d8e5de; }
.chat-toast-open { display:block; border:0; background:transparent; color:#173c42; text-align:left; width:100%; padding:18px 36px 18px 18px; border-radius:15px; }
.chat-toast-open span { display:block; }
.chat-toast-title { font-size:12px; font-weight:700; padding-left:13px; position:relative; }
.chat-toast-title::before { content:''; position:absolute; left:0; top:4px; width:7px; height:7px; background:#bd293b; border-radius:50%; }
.chat-toast-text { font-size:12px; line-height:1.6; margin:8px 0; overflow-wrap:anywhere; }
.chat-toast-action { font-size:11px; font-weight:600; color:#9a412c; }
.chat-toast-dismiss { position:absolute; top:6px; right:5px; width:30px; height:30px; padding:0; background:transparent; color:#526c68; border:0; border-radius:7px; font-size:20px!important; }
@keyframes chat-arrive { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media(max-width:480px) {
  .webchat { bottom:14px; right:14px; }
  .chat-panel { max-width:calc(100vw - 28px); bottom:66px; max-height:calc(100dvh - 100px); }
  .chat-heading { padding:16px 18px; }
  .chat-thread { max-height:260px; min-height:80px; }
  .chat-form { padding:10px 14px; }
  .chat-contact input,.chat-form textarea { font-size:16px; }
}
@media(max-height:680px) {
  .chat-heading p,.chat-footer p { display:none; }
  .chat-heading { padding:12px 16px; }
  .chat-thread { min-height:50px; }
  .chat-form textarea { min-height:45px; height:50px; }
  .chat-contact { padding:16px; }
  .chat-welcome > span { display:none; }
  .chat-welcome h3 { margin-top:0; }
}
@media(prefers-reduced-motion:reduce) { .chat-panel,.chat-toast { animation:none; } .chat-launch { transition:none; } }
