.kbt-chat-v4{--chat-bottom:146px;--chat-bg:#fff;--chat-ink:#182b3c;--chat-muted:#4e6374;--chat-line:#cbd8e2;--chat-soft:#f0f5f8;font:15px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--chat-ink);text-align:start;position:relative;z-index:1290}
.kbt-chat-header h1{font:750 18px/1.3 system-ui,sans-serif;margin:0;color:inherit}
.kbt-chat-v4 *{box-sizing:border-box}.kbt-chat-v4 [hidden],.kbt-chat-v4[hidden]{display:none!important}.kbt-chat-v4 button,.kbt-chat-v4 textarea{font:inherit}.kbt-chat-v4 button{cursor:pointer}.kbt-chat-v4 button:disabled{opacity:.6;cursor:wait}.kbt-chat-v4 :focus-visible{outline:3px solid #1b86cb;outline-offset:3px}.kbt-chat-panel{position:fixed;inset-inline-end:20px;bottom:var(--chat-bottom);width:400px;max-width:calc(100vw - 24px);height:700px;max-height:calc(100dvh - 162px);background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:18px;box-shadow:0 14px 55px #10243740;display:flex;flex-direction:column;overflow:hidden}
.kbt-chat-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px 16px;background:#143f59;color:#fff;flex-shrink:0}.kbt-chat-header h2{font:750 18px/1.3 system-ui,sans-serif;margin:0;color:inherit}.kbt-chat-header p{font-size:12px;line-height:1.4;color:#dbeaf3;margin:4px 0 0}.kbt-chat-actions{display:flex;gap:3px}.kbt-chat-actions .kbt-chat-icon{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:38px;padding:0;border:1px solid #ffffff55;border-radius:8px;background:transparent;color:#fff;font-size:23px;text-decoration:none}
.kbt-chat-tabs{display:flex;padding:8px;gap:6px;border-bottom:1px solid var(--chat-line);flex-shrink:0}.kbt-chat-tabs button{flex:1;min-height:44px;padding:8px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--chat-muted);font-weight:700}.kbt-chat-tabs [aria-selected=true]{background:#e2f1fa;color:#114b70;border-color:#99cce8}.kbt-chat-ai{display:flex;flex-direction:column;flex:1;min-height:0}.kbt-chat-messages{flex:1;min-height:60px;padding:15px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.kbt-chat-message{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--chat-soft);border-radius:12px;padding:11px 13px;margin:0 0 12px;max-width:100%;line-height:1.65}.kbt-chat-message a{color:#075d90;text-underline-offset:3px}.kbt-chat-user{margin-inline-start:24px;background:#164d70;color:#fff}.kbt-chat-waiting{font-size:13px;color:var(--chat-muted)}.kbt-chat-form{display:flex;align-items:flex-end;gap:8px;padding:12px;border-top:1px solid var(--chat-line);flex-shrink:0}.kbt-chat-form textarea{resize:none;min-width:0;width:100%;min-height:46px;max-height:110px;padding:11px;border:1px solid var(--chat-line);border-radius:11px;background:var(--chat-bg);color:var(--chat-ink);font-size:16px}.kbt-chat-form button{min-height:46px;padding:9px 14px;background:#164d70;color:white;border:0;border-radius:10px;font-weight:700}.kbt-chat-human{padding:22px 20px;overflow:auto;flex:1;min-height:0}.kbt-chat-human h3{font-size:21px;margin:0 0 10px;color:inherit}.kbt-chat-human p{margin:0 0 18px}.kbt-chat-contacts{display:flex;flex-direction:column;gap:12px;margin:20px 0}.kbt-chat-contact{display:flex;align-items:center;gap:12px;min-height:56px;padding:10px 16px;background:var(--chat-soft);border:1px solid var(--chat-line);border-radius:11px;color:var(--chat-ink);font-weight:700;text-decoration:none}.kbt-chat-wa-mark{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;background:#128c7e;border-radius:50%;flex-shrink:0}.kbt-chat-wa-mark img{width:28px;height:28px;display:block}.kbt-chat-muted{font-size:13px;color:var(--chat-muted)}.kbt-chat-privacy{display:block;padding:7px 14px;text-align:center;font-size:11px;flex-shrink:0;background:var(--chat-soft);color:var(--chat-muted);text-underline-offset:2px}.kbt-chat-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.dark-theme .kbt-chat-v4,[data-theme=dark] .kbt-chat-v4,.kbt-chat-v4[data-theme=dark]{--chat-bg:#132434;--chat-ink:#e7f0f7;--chat-muted:#b8cad8;--chat-line:#42596c;--chat-soft:#203748}html.dark-theme .kbt-chat-tabs [aria-selected=true],[data-theme=dark] .kbt-chat-tabs [aria-selected=true]{background:#174a68;color:#e2f4ff;border-color:#4187ad}html.dark-theme .kbt-chat-message a,[data-theme=dark] .kbt-chat-message a{color:#8bd4ff}
.kbt-support-page{margin:0;background:#eef4f8;color:#173246;font:16px/1.5 system-ui,sans-serif}.kbt-support-page-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;max-width:980px;margin:auto}.kbt-support-page-header a{color:inherit;text-decoration:none;font-weight:750}.kbt-support-page-header nav{display:flex;gap:18px;font-size:14px}.kbt-support-page-main{max-width:940px;margin:0 auto;padding:0 18px 18px}.kbt-chat-full{z-index:auto}.kbt-chat-full .kbt-chat-panel{position:relative;inset:auto;bottom:auto;width:100%;max-width:none;height:calc(100svh - 85px);max-height:none;min-height:360px;box-shadow:0 12px 45px #10243716}.kbt-chat-full .kbt-chat-messages{padding:22px}.kbt-chat-full .kbt-chat-message{max-width:85%}.kbt-chat-full .kbt-chat-user{margin-inline-start:auto}.kbt-chat-full .kbt-chat-human{max-width:640px;width:100%;margin:0 auto;padding:32px 24px}
@media(max-width:480px){.kbt-chat-panel{inset-inline-end:12px}.kbt-chat-header{padding:11px 12px}.kbt-chat-header h2{font-size:16px}.kbt-chat-header p{font-size:11px;max-width:190px}.kbt-chat-header .kbt-chat-icon{min-width:32px;height:36px}.kbt-support-page-header{padding:12px;font-size:14px}.kbt-support-page-header nav{font-size:12px;gap:12px}.kbt-support-page-main{padding:0 8px 8px}.kbt-chat-full .kbt-chat-panel{height:calc(100svh - 66px);border-radius:14px;min-height:280px}.kbt-chat-full .kbt-chat-messages{padding:13px}.kbt-chat-full .kbt-chat-message{max-width:95%}}
@media(max-height:510px){.kbt-chat-header{padding:6px 12px}.kbt-chat-header p{display:none}.kbt-chat-tabs{padding:3px 6px}.kbt-chat-tabs button{min-height:34px;padding:4px}.kbt-chat-messages{padding:7px;min-height:30px}.kbt-chat-form{padding:6px}.kbt-chat-form textarea,.kbt-chat-form button{min-height:40px;padding:7px}.kbt-chat-privacy{padding:3px}}
@media(prefers-reduced-motion:reduce){.kbt-chat-v4 *{scroll-behavior:auto!important}}

/* Hide native textarea scrollbar arrows; preserve multiline scrolling. */
.kbt-chat-form textarea{scrollbar-width:none;overflow-y:auto}.kbt-chat-form textarea::-webkit-scrollbar{display:none;width:0;height:0}
.kbt-chat-email-mark{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;background:#17628e;color:#fff;flex-shrink:0}.kbt-chat-email-mark svg{width:25px;height:25px;display:block}.kbt-chat-email-tools{border:1px solid var(--chat-line);border-radius:10px;padding:13px;margin:-6px 0 18px;background:var(--chat-soft);font-size:13px}.kbt-chat-email-tools p{margin:0 0 9px}.kbt-chat-email-address{overflow-wrap:anywhere;font-weight:650}.kbt-chat-email-actions{display:flex;gap:9px;flex-wrap:wrap}.kbt-chat-email-actions a,.kbt-chat-email-actions button{display:inline-flex;align-items:center;min-height:44px;padding:8px 11px;border:1px solid var(--chat-line);border-radius:8px;background:var(--chat-bg);color:var(--chat-ink);font-weight:650;text-decoration:none}.kbt-chat-email-status{display:block;min-height:0;margin-top:6px;overflow-wrap:anywhere}
/* Full-page chat uses the ordinary site chrome and two separate desktop rail columns. */
.kbt-support-layout{direction:ltr}
.kbt-support-page .kbt-chat-full .kbt-chat-panel{scroll-margin-top:84px}
.kbt-support-page{background:var(--bg-primary,#f4f7fa);color:var(--text-primary,#173246)}html.dark-theme .kbt-support-page,[data-theme=dark] .kbt-support-page{background:#111;color:#e7f0f7}.kbt-support-layout{display:grid;grid-template-columns:minmax(0,900px);justify-content:center;gap:24px;max-width:1332px;margin:0 auto;padding:24px 16px 32px}.kbt-support-page-main{min-width:0;width:100%;max-width:none;margin:0;padding:0}.kbt-support-page .kbt-chat-full .kbt-chat-panel{height:clamp(420px,calc(100svh - 112px),780px);min-height:360px}.kbt-support-page .kbt-chat-full .kbt-chat-human{padding:24px}.kbt-support-rail{display:none;min-width:0;width:160px;align-self:start;position:static}.kbt-support-rail-label{display:block;text-align:center;font:11px/1.4 system-ui,sans-serif;margin:0 0 7px;color:var(--text-secondary,#607080)}.kbt-support-rail .kbt-ad-slot{width:160px;max-width:160px;margin:0;padding:0;clear:none}.kbt-support-rail .kbt-ad-slot-inner,.kbt-support-rail .kbt-gam-ad{width:160px;max-width:160px;min-width:160px;min-height:600px;margin:0;padding:0;position:relative;overflow:visible}.kbt-support-page .kbt-chat-v4{position:relative;z-index:auto}
@media(min-width:1320px){.kbt-support-layout--rails{grid-template-columns:160px minmax(0,900px) 160px}.kbt-support-layout--rails .kbt-support-rail{display:block}}
@media(max-width:480px){.kbt-support-layout{padding:14px 8px 22px;gap:0}.kbt-support-page .kbt-chat-full .kbt-chat-panel{height:calc(100svh - 100px);min-height:360px}.kbt-support-page .kbt-chat-full .kbt-chat-human{padding:20px 16px}}

/* Hide native human-pane scrollbar UI; retain keyboard and touch scrolling. */
.kbt-chat-human{scrollbar-width:none;overflow:auto}.kbt-chat-human::-webkit-scrollbar{display:none;width:0;height:0}
