/* v1.63 — Widget chat AI pengunjung. Semua selector diawali gc- / #gc-root agar tidak bentrok dengan home.css / auth.css. */
#gc-root,#gc-root *{box-sizing:border-box}
#gc-root{--gc-accent:#2563eb;--gc-ink:#111827;--gc-mute:#6b7280;--gc-line:#e5e7eb;--gc-bg:#fff;--gc-soft:#f3f4f6;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:14px;line-height:1.5;color:var(--gc-ink)}
#gc-root button,#gc-root input,#gc-root textarea{font:inherit;color:inherit}
.gc-fab{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:9990;display:flex;align-items:center;gap:8px;
  min-height:52px;padding:0 18px 0 14px;border:0;border-radius:999px;background:var(--gc-accent);color:#fff;cursor:pointer;
  box-shadow:0 6px 22px rgba(0,0,0,.25);font-weight:600}
.gc-fab:focus-visible,.gc-x:focus-visible,.gc-send:focus-visible,.gc-chip:focus-visible,.gc-b:focus-visible{outline:3px solid #fbbf24;outline-offset:2px}
.gc-fab svg{width:22px;height:22px;flex:none}
.gc-fab.gc-hide{display:none}
.gc-dot{position:absolute;top:-2px;right:-2px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:#dc2626;color:#fff;font-size:11px;
  line-height:18px;text-align:center;font-weight:700}
.gc-panel{position:fixed;right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:9991;width:min(380px,calc(100vw - 24px));
  height:min(560px,calc(100vh - 32px));height:min(560px,calc(100dvh - 32px));display:flex;flex-direction:column;background:var(--gc-bg);
  border:1px solid var(--gc-line);border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.28);overflow:hidden}
.gc-panel[hidden]{display:none}
.gc-head{display:flex;align-items:center;gap:10px;padding:12px 14px;background:var(--gc-accent);color:#fff}
.gc-head b{display:block;font-size:15px;line-height:1.2}
.gc-head small{display:block;opacity:.9;font-size:12px}
.gc-head>div{flex:1;min-width:0}
.gc-x{flex:none;width:36px;height:36px;border:0;border-radius:50%;background:rgba(255,255,255,.18);color:#fff;font-size:20px;line-height:1;cursor:pointer}
.gc-msgs{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--gc-soft);overscroll-behavior:contain}
.gc-m{max-width:86%;padding:9px 12px;border-radius:14px;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:anywhere}
.gc-me{align-self:flex-end;background:var(--gc-accent);color:#fff;border-bottom-right-radius:4px}
.gc-bot,.gc-team{align-self:flex-start;background:#fff;border:1px solid var(--gc-line);border-bottom-left-radius:4px}
.gc-team{border-color:var(--gc-accent)}
.gc-who{display:block;font-size:11px;font-weight:700;color:var(--gc-accent);margin-bottom:2px}
.gc-note{align-self:center;max-width:92%;text-align:center;font-size:12px;color:var(--gc-mute)}
.gc-m a{color:inherit;text-decoration:underline}
.gc-typing{display:inline-flex;gap:4px;padding:4px 0}
.gc-typing i{width:7px;height:7px;border-radius:50%;background:var(--gc-mute);animation:gcb 1s infinite ease-in-out}
.gc-typing i:nth-child(2){animation-delay:.15s}.gc-typing i:nth-child(3){animation-delay:.3s}
@keyframes gcb{0%,80%,100%{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.gc-quick{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 10px;background:var(--gc-soft)}
.gc-chip{border:1px solid var(--gc-accent);background:#fff;color:var(--gc-accent);border-radius:999px;padding:6px 12px;cursor:pointer;font-size:13px}
.gc-contact{padding:10px 14px;background:#fffbeb;border-top:1px solid #fde68a}
.gc-contact p{margin:0 0 8px;font-size:13px}
.gc-contact input{width:100%;min-height:40px;margin-bottom:6px;padding:8px 10px;border:1px solid #d1d5db;border-radius:8px;background:#fff}
.gc-row{display:flex;gap:8px}
.gc-b{flex:1;min-height:40px;border-radius:8px;border:1px solid var(--gc-accent);background:var(--gc-accent);color:#fff;cursor:pointer;font-weight:600}
.gc-b.gc-ghost{background:#fff;color:var(--gc-ink);border-color:#d1d5db;font-weight:500}
.gc-form{display:flex;gap:8px;align-items:flex-end;padding:10px;border-top:1px solid var(--gc-line);background:#fff}
.gc-form textarea{flex:1;resize:none;min-height:42px;max-height:110px;padding:9px 12px;border:1px solid #d1d5db;border-radius:12px;background:#fff}
.gc-form textarea:focus,.gc-contact input:focus{outline:2px solid var(--gc-accent);outline-offset:0;border-color:var(--gc-accent)}
.gc-send{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--gc-accent);color:#fff;cursor:pointer;display:grid;place-items:center}
.gc-send:disabled{opacity:.5;cursor:not-allowed}
.gc-send svg{width:20px;height:20px}
.gc-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.gc-foot{padding:6px 12px 10px;background:#fff;font-size:11px;color:var(--gc-mute);text-align:center}
.gc-foot a{color:inherit}
@media (max-width:480px){
  .gc-panel{right:8px;left:8px;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:auto;height:min(78vh,calc(100vh - 16px));height:min(78dvh,calc(100dvh - 16px))}
  .gc-fab{right:12px}
}
@media (prefers-reduced-motion:reduce){.gc-typing i{animation:none;opacity:.6}}
