.glg-chat{font-family:var(--sans);font-size:16px;line-height:1.5;color:#182333;position:relative;z-index:150;color-scheme:light}
.glg-chat button,.glg-chat input,.glg-chat textarea{font:inherit}
.glg-chat button{cursor:pointer}
.chat-dock{position:fixed;right:16px;bottom:0;width:104px;height:136px;display:flex;align-items:flex-end;justify-content:center;pointer-events:none}
.chat-dock--revealed{pointer-events:auto}
.chat-launcher{position:relative;display:flex;flex-direction:column;align-items:center;gap:0;min-width:80px;padding:0;color:#f0d497;background:transparent;border:0;border-radius:16px;pointer-events:auto;transform:translateY(calc(50% + 8px));font-weight:600!important;transition:transform 500ms var(--curve)}
.chat-robot{display:block;width:80px;height:auto;filter:drop-shadow(0 4px 8px #0006)}
.chat-launcher>span{display:block;max-width:144px;padding:4px 12px;font-size:14px;line-height:20px;background:#101a29;border:1px solid #ad8949;border-radius:24px;box-shadow:0 4px 16px #0004;text-align:center;opacity:0;transition:opacity 300ms var(--curve)}
.chat-dock--revealed .chat-launcher{transform:translateY(-16px)}
.chat-dock--revealed .chat-launcher>span{opacity:1}
.chat-launcher:hover>span{color:#fff0ce;background:#1b2b40}.chat-dock--revealed .chat-launcher:active{transform:translateY(-16px) scale(.96)}
.chat-panel{position:fixed;right:24px;bottom:24px;width:min(460px,calc(100vw - 48px));height:min(700px,calc(100dvh - 48px));display:flex;flex-direction:column;background:#f5f6f9;border:1px solid #d7dce3;border-radius:24px;overflow:hidden;box-shadow:0 24px 80px #0008;animation:chat-arrive 350ms var(--curve) both}
.chat-panel--expanded{width:min(720px,calc(100vw - 48px));height:calc(100dvh - 48px)}
.chat-header{display:flex;align-items:center;gap:12px;flex:none;padding:16px;background:#fff;border-bottom:1px solid #e0e4ea}
.chat-brand-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;color:#e6c783;background:#101a28}.chat-brand-icon svg{width:24px;height:24px}
.chat-heading{flex:1;min-width:0}.chat-heading h2{font-size:16px;line-height:24px;font-weight:600;margin:0;color:#172334;letter-spacing:0}.chat-heading p{font-size:14px;line-height:20px;color:#5c6978;margin:2px 0 0}
.chat-expand,.chat-minimize{display:flex;align-items:center;justify-content:center;gap:4px;border:1px solid #d6dce3;border-radius:24px;min-width:40px;min-height:40px;padding:8px;background:#fff;color:#263449;flex:none;transition:background 300ms var(--curve)}
.chat-expand svg,.chat-minimize svg{width:20px;height:20px}.chat-minimize span{font-size:14px;font-weight:600}.chat-minimize{border-color:#ccac66;background:#ecd298;color:#292115}.chat-expand:hover{background:#e9edf2}.chat-minimize:hover{background:#f5dfae}
.chat-content{display:flex;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.chat-welcome{padding:32px 24px;align-self:center;width:100%;max-width:480px;margin:auto}
.chat-avatar{display:grid;place-items:center;width:64px;height:64px;background:#142030;color:#e5c481;font-size:20px;font-weight:600;border-radius:50%;margin:0 auto 24px}
.chat-welcome h3{font-size:24px;line-height:32px;font-weight:600;letter-spacing:0;text-align:center;margin:0 0 12px;color:#172334}
.chat-introduction{font-size:16px;line-height:26px;color:#556375;text-align:center;margin:0 0 24px}
.chat-start-form{display:flex;flex-direction:column;gap:12px;padding:24px;background:#fff;border:1px solid #dde3ea;border-radius:16px}
.chat-start-form label{font-size:14px;line-height:20px;color:#364459}.chat-start-form input{width:100%;min-height:48px;padding:12px;border:1px solid #bcc7d3;border-radius:8px;background:#fafbfd;color:#172334;outline:none}
.chat-primary,.chat-send{border:1px solid #b68e3e;background:#d8b770;color:#221c10;border-radius:24px;font-weight:600!important;padding:12px 16px;min-height:48px;transition:background 300ms var(--curve),transform 300ms var(--curve)}
.chat-primary:hover,.chat-send:hover{background:#edcf8b}.chat-primary:active,.chat-send:active{transform:scale(.98)}
.chat-service-note{font-size:14px;line-height:22px;color:#667387;margin:16px 0 0;text-align:center}
.chat-conversation{display:flex;flex:1;min-height:0;flex-direction:column;width:100%}.chat-conversation-note{padding:12px 16px;margin:0;background:#eef1f5;color:#586679;text-align:left;border-bottom:1px solid #e2e6ec}
.chat-log{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 16px 16px;scrollbar-width:thin;scrollbar-color:#b8c2cf transparent}
.chat-message{max-width:94%;margin:0 0 24px}.chat-message-author{display:block;font-size:14px;line-height:20px;color:#5c6a7c;margin:0 0 8px 4px}.chat-bubble{padding:16px;background:#fff;border:1px solid #e0e5ec;border-radius:16px}.chat-bubble>p{font-size:16px;line-height:26px;color:#233248;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-message--user{margin-left:auto}.chat-message--user .chat-message-author{text-align:right;margin-right:4px}.chat-message--user .chat-bubble{background:#142438;border-color:#142438}.chat-message--user .chat-bubble>p{color:#fff}
.chat-answer-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.chat-answer-links a{display:inline-flex;align-items:center;min-height:40px;padding:8px 12px;font-size:14px;line-height:20px;font-weight:600;color:#624814;border:1px solid #d4bd8f;border-radius:24px;text-decoration:none;background:#fff9ed;transition:background 300ms var(--curve)}.chat-answer-links a:hover{background:#f3e1b9}
.chat-bubble .chat-email-address{font-size:16px;margin-top:12px;user-select:all}.chat-bubble .chat-mail-note{font-size:14px;line-height:22px;color:#647286;margin-top:8px}
.chat-quick-topics{display:flex;flex-wrap:wrap;gap:8px;flex:none;padding:12px 16px;border-top:1px solid #e1e6ed}.chat-quick-topics button{font-size:14px;line-height:20px;padding:8px 12px;min-height:40px;border:1px solid #c8d2de;border-radius:24px;color:#35485f;background:#fff;transition:background 300ms var(--curve)}.chat-quick-topics button:hover{background:#e9eff6}
.chat-compose{padding:12px 16px;flex:none;background:#fff;border-top:1px solid #dbe1e9}.chat-input-row{display:flex;gap:8px;align-items:flex-end}.chat-input-row textarea{resize:none;flex:1;min-width:0;min-height:64px;max-height:128px;padding:12px;background:#f7f9fb;border:1px solid #b9c6d5;border-radius:12px;color:#18283d;outline:none;line-height:24px}.chat-send{min-width:64px;padding:12px}
.chat-privacy-note,.chat-input-error{font-size:14px;line-height:20px;margin:8px 0 0;color:#657488}.chat-input-error{color:#a32626}.chat-input-error:empty{display:none}
.chat-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-top:1px solid #e3e7ed;flex:none;padding:8px 16px}.chat-footer button{font-size:14px;line-height:20px;min-height:40px;padding:8px 0;background:transparent;color:#536780;border:0;text-decoration:underline;text-underline-offset:4px}.chat-footer button:hover{color:#172b45}.chat-footer .chat-human{margin-left:auto}
.glg-chat :is(button,a,input,textarea,[tabindex]):focus-visible{outline:2px solid #8b691f;outline-offset:3px}.glg-chat :is(input,textarea):focus{border-color:#8e7136}.chat-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body.nav-is-open .chat-dock{visibility:hidden}
@keyframes chat-arrive{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.chat-dock{right:8px;width:88px;height:120px}.chat-launcher{min-width:72px}.chat-robot{width:72px}.chat-dock--revealed .chat-launcher{transform:translateY(calc(-8px - env(safe-area-inset-bottom)))}.chat-panel,.chat-panel--expanded{inset:8px;width:auto;height:auto;max-height:calc(100dvh - 16px);border-radius:16px}.chat-header{padding:12px;gap:8px}.chat-heading p{font-size:14px}.chat-minimize span{display:none}.chat-minimize{min-width:40px}.chat-expand{display:none}.chat-welcome{padding:24px 16px}.chat-start-form{padding:24px}.chat-footer{padding-bottom:max(8px,env(safe-area-inset-bottom))}}
@media(prefers-reduced-motion:reduce){.chat-panel{animation:none}.glg-chat *{transition:none!important}}
