.glc-chat { --c-accent: var(--gl-accent, #e8a020); --c-bg: var(--gl-bg, #f5f5f0); --c-surface: var(--gl-surface, #fff); --c-fg: var(--gl-fg, #0c0c0a); --c-fg2: var(--gl-fg-2, #5a5a52); --c-border: var(--gl-border, rgba(0, 0, 0, 0.12)); font-family: var(--gl-font-body, system-ui, sans-serif); }
.glc-chat__bubble { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 900; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--c-accent); color: #0c0c0a; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.35); transition: transform 0.2s; }
.glc-chat__bubble:hover { transform: scale(1.06); }
.glc-chat__bubble:focus-visible { outline: 3px solid var(--c-fg); outline-offset: 3px; }
.glc-chat__bubble { transition: transform 0.2s, bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
@media (max-width: 920px) {
	.glc-chat__bubble { width: 50px; height: 50px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
	body.gl-stickybar-on .glc-chat__bubble { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

.glc-chat__window { position: fixed; right: 20px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); z-index: 901; width: min(360px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); background: var(--c-bg); color: var(--c-fg); border: 1.5px solid var(--c-border); border-radius: 18px; box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.35); display: flex; flex-direction: column; overflow: hidden; }
.glc-chat__window[hidden] { display: none; }
@media (max-width: 920px) {
	.glc-chat__window { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 120px); }
	body.gl-stickybar-on .glc-chat__window { bottom: calc(148px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 190px); }
}
.glc-chat__head { background: #0a0a08; color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glc-chat__name { margin: 0; font-weight: 700; font-size: 0.9rem; }
.glc-chat__status { margin: 0; font-size: 0.72rem; color: rgba(255, 255, 255, 0.6); }
.glc-chat__close { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1rem; padding: 6px; opacity: 0.7; }
.glc-chat__close:hover { opacity: 1; }
.glc-chat__log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.glc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 0.85rem; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
.glc-msg--bot { background: var(--c-surface); border: 1px solid var(--c-border); border-bottom-left-radius: 4px; align-self: flex-start; }
.glc-msg--user { background: var(--c-accent); color: #0c0c0a; font-weight: 600; border-bottom-right-radius: 4px; align-self: flex-end; }
.glc-typing { display: flex; gap: 4px; }
.glc-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--c-fg2); animation: glc-dot 1.2s infinite; }
.glc-typing span:nth-child(2) { animation-delay: 0.2s; }
.glc-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes glc-dot { 0%, 80%, 100% { opacity: 0.3; transform: scale(0.7); } 40% { opacity: 1; transform: scale(1); } }
.glc-chat__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; }
.glc-chip { background: var(--c-surface); color: var(--c-fg); border: 1.5px solid var(--c-border); border-radius: 99px; padding: 7px 12px; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit; }
.glc-chip:hover { border-color: var(--c-accent); }
.glc-chip--link { background: var(--c-fg); color: var(--c-bg); border-color: var(--c-fg); }
.glc-chat__form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--c-border); }
.glc-chat__form input { flex: 1; min-width: 0; background: var(--c-surface); color: var(--c-fg); border: 1px solid var(--c-border); border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 0.9rem; }
.glc-chat__form button { width: 42px; border: 0; border-radius: 10px; background: var(--c-accent); color: #0c0c0a; cursor: pointer; font-size: 1rem; }
.glc-chat__legal { margin: 0; padding: 0 12px 10px; font-size: 0.68rem; color: var(--c-fg2); }
.glc-chat .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
@media (prefers-reduced-motion: reduce) { .glc-typing span { animation: none; } }
