/* ── FLOATING BUTTON ── */
#gg-chat-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 58px;
  height: 58px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  z-index: 9999;
  border: none;
  color: #fff;
  transition: transform .2s, background .2s;
}
#gg-chat-btn:hover { transform: scale(1.08); background: #b81219; }
#gg-chat-btn svg  { width: 28px; height: 28px; }

/* ── WINDOW ── */
#gg-chat-window {
  position: fixed;
  bottom: 5.2rem;
  right: 1.5rem;
  width: 340px;
  max-height: 530px;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.18);
  display: flex;
  flex-direction: column;
  z-index: 9998;
  overflow: hidden;
  transform: scale(.9) translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
#gg-chat-window.gg-open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* ── HEADER ── */
.gg-ch-header {
  background: var(--red);
  color: #fff;
  padding: .9rem 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.gg-ch-header svg { width: 30px; height: 30px; flex-shrink: 0; }
.gg-ch-header-txt { flex: 1; }
.gg-ch-header-txt strong { display: block; font-size: .95rem; }
.gg-ch-header-txt span   { font-size: .72rem; opacity: .88; }
.gg-ch-close {
  background: none; border: none; color: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer; padding: 0;
}

/* ── MESSAGES ── */
.gg-ch-msgs {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  scroll-behavior: smooth;
}
.gg-msg {
  max-width: 82%;
  padding: .6rem .9rem;
  border-radius: .85rem;
  font-size: .855rem;
  line-height: 1.5;
  white-space: pre-line;
}
.gg-msg-bot  { background: #f0f2f4; color: #222; align-self: flex-start; border-bottom-left-radius: .2rem; }
.gg-msg-user { background: var(--red); color: #fff; align-self: flex-end; border-bottom-right-radius: .2rem; }

/* ── QUICK REPLIES ── */
.gg-quick-replies {
  padding: .4rem .75rem .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.gg-qr {
  background: none;
  border: 1.5px solid var(--red);
  color: var(--red);
  border-radius: 2rem;
  padding: .3rem .75rem;
  font-size: .775rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: all .15s;
  white-space: nowrap;
}
.gg-qr:hover { background: var(--red); color: #fff; }

/* ── INPUT ── */
.gg-ch-input-row {
  padding: .65rem .75rem;
  display: flex;
  gap: .5rem;
  border-top: 1px solid #eee;
}
.gg-ch-input-row input {
  flex: 1;
  border: 1.5px solid #ddd;
  border-radius: 2rem;
  padding: .45rem 1rem;
  font-size: .855rem;
  font-family: inherit;
  outline: none;
  color: #222;
}
.gg-ch-input-row input:focus { border-color: var(--red); }
.gg-ch-send {
  background: var(--red);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.gg-ch-send:hover { background: #b81219; }
.gg-ch-send svg { width: 16px; height: 16px; }

/* ── RESPONSIVE ── */
@media (max-width: 400px) {
  #gg-chat-window { width: calc(100vw - 2rem); right: 1rem; }
}
