.gm-chat { position: fixed; bottom: 20px; right: 20px; z-index: 1040; font-family: inherit; }

.gm-chat__trigger {
    width: 52px; height: 52px; border-radius: 50%; border: none;
    background: #1B8271; color: #fff; cursor: pointer;
    box-shadow: 0 2px 12px rgba(27,130,113,.3);
    display: flex; align-items: center; justify-content: center;
    transition: transform .15s;
}
.gm-chat__trigger:hover { transform: scale(1.06); }

.gm-chat__panel {
    position: absolute; bottom: 64px; right: 0;
    width: 340px; max-width: calc(100vw - 24px); height: 460px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(8px) scale(.96);
    transition: opacity .15s, transform .15s;
}
.gm-chat__panel[hidden] { display: none; }
.gm-chat__panel.open { opacity: 1; transform: translateY(0) scale(1); }

.gm-chat__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px; border-bottom: 1px solid #f0f0f0;
    font-weight: 600; font-size: 14px; color: #1a1a1a;
}
.gm-chat__close { background: none; border: none; font-size: 22px; color: #aaa; cursor: pointer; }
.gm-chat__close:hover { color: #333; }

.gm-chat__messages {
    flex: 1; overflow-y: auto; padding: 14px 16px;
    display: flex; flex-direction: column; gap: 10px;
}

.gm-chat__msg {
    max-width: 80%; padding: 10px 14px; border-radius: 14px;
    font-size: 13px; line-height: 1.5; word-wrap: break-word;
}
.gm-chat__msg--bot { align-self: flex-start; background: #f3f3f3; color: #333; border-bottom-left-radius: 4px; }
.gm-chat__msg--user { align-self: flex-end; background: #1B8271; color: #fff; border-bottom-right-radius: 4px; }
.gm-chat__msg--typing { align-self: flex-start; background: #f3f3f3; padding: 12px 16px; }

.gm-chat__dots { display: inline-flex; gap: 4px; }
.gm-chat__dots span { width: 6px; height: 6px; border-radius: 50%; background: #aaa; animation: gm-dot 1.2s infinite ease-in-out both; }
.gm-chat__dots span:nth-child(1) { animation-delay: -.3s; }
.gm-chat__dots span:nth-child(2) { animation-delay: -.15s; }
@keyframes gm-dot { 0%,80%,100%{transform:scale(.5);opacity:.4} 40%{transform:scale(1);opacity:1} }

.gm-chat__footer {
    display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid #f0f0f0;
}
.gm-chat__footer input {
    flex: 1; border: 1px solid #e8e8e8; border-radius: 20px;
    padding: 9px 14px; font-size: 13px; outline: none;
}
.gm-chat__footer input:focus { border-color: #1B8271; }
.gm-chat__footer button {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #1B8271; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.gm-chat__footer button:hover { background: #145f54; }

@media(max-width:480px) {
    .gm-chat { bottom: 12px; right: 12px; }
    .gm-chat__panel { width: calc(100vw - 24px); height: 55vh; bottom: 60px; }
    .gm-chat__trigger { width: 46px; height: 46px; }
}
@media(prefers-reduced-motion:reduce) { .gm-chat__trigger,.gm-chat__panel { transition: none; } .gm-chat__dots span { animation: none; } }
