/* GenieClaw Chat widget v1.0.0 */
#gcw-root { position: fixed; right: 20px; bottom: 20px; z-index: 2147483647;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Sarabun', 'Prompt', sans-serif; }

#gcw-bubble { width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--gcw-color, #1a73e8); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .15s ease; }
#gcw-bubble svg { display: block; pointer-events: none; max-width: none;
  width: 30px !important; height: 30px !important; min-width: 30px; min-height: 30px; flex: 0 0 auto; }
#gcw-send svg { width: 20px !important; height: 20px !important; min-width: 20px; flex: 0 0 auto; }
#gcw-bubble:hover { transform: scale(1.06); }
#gcw-bubble.gcw-open { transform: scale(.92); }

#gcw-panel { position: fixed; right: 20px; bottom: 90px; width: 360px; max-width: calc(100vw - 32px);
  height: 520px; max-height: calc(100vh - 120px); background: #fff; border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 8px 40px rgba(0,0,0,.28); }
#gcw-panel[hidden] { display: none !important; }

#gcw-head { background: var(--gcw-color, #1a73e8); color: #fff; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; }
#gcw-title { font-weight: 600; font-size: 15px; }
#gcw-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .85; }
#gcw-close:hover { opacity: 1; }

#gcw-msgs { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f5f7fa;
  display: flex; flex-direction: column; gap: 8px; }
.gcw-msg { display: flex; }
.gcw-msg.gcw-me { justify-content: flex-end; }
.gcw-bubbletext { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px;
  line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.gcw-me .gcw-bubbletext { background: var(--gcw-color, #1a73e8); color: #fff; border-bottom-right-radius: 4px; }
.gcw-bot .gcw-bubbletext { background: #fff; color: #222; border: 1px solid #e6e9ee; border-bottom-left-radius: 4px; }

.gcw-dots { display: inline-flex; gap: 4px; align-items: center; min-width: 36px; min-height: 18px; }
.gcw-dots span { width: 7px; height: 7px; border-radius: 50%; background: #b9c1cc;
  animation: gcwBlink 1.2s infinite ease-in-out; }
.gcw-dots span:nth-child(2) { animation-delay: .2s; }
.gcw-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes gcwBlink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

#gcw-inputrow { display: flex; align-items: flex-end; gap: 8px; padding: 10px; background: #fff;
  border-top: 1px solid #eceff3; }
#gcw-input { flex: 1; resize: none; border: 1px solid #dfe3e9; border-radius: 10px; padding: 9px 12px;
  font-size: 14px; line-height: 1.4; outline: none; max-height: 110px; font-family: inherit; }
#gcw-input:focus { border-color: var(--gcw-color, #1a73e8); }
#gcw-send { width: 40px; height: 40px; border-radius: 10px; border: none; cursor: pointer;
  background: var(--gcw-color, #1a73e8); color: #fff; display: flex; align-items: center; justify-content: center; }
#gcw-send:disabled { opacity: .5; cursor: default; }

#gcw-brand { text-align: center; font-size: 11px; color: #9aa3af; padding: 4px 0 7px; background: #fff; }
#gcw-brand b { color: #6b7280; }

@media (max-width: 480px) {
  #gcw-panel { right: 8px; left: 8px; width: auto; bottom: 84px; height: 70vh; }
  #gcw-root { right: 14px; bottom: 14px; }
}
