/* Widget CSS - ASCII only, links inside bubble */
#gp-chat-widget{
  --brand:#004c97; --brand-dark:#003366; --line:#e5e7eb; --surface:#fff; --muted:#6b7280;
  position: fixed; inset: auto 10px 75px auto; z-index: 2147483000;
  font-family: var(--wp--preset--font-family--body, inherit);
  font-size: var(--wp--preset--font-size--base, 1rem);
  line-height: inherit;
  color:#1f2937; isolation:isolate;
}
#gp-chat-widget.whatsapp-skin { --brand:#25d366; --brand-dark:#128c7e; }

#gp-chat-widget * { box-sizing: border-box; }
#gp-chat-widget button, #gp-chat-widget input, #gp-chat-widget textarea { font: inherit; color: inherit; background: none; border: 0; outline: none; }
#gp-chat-widget svg { display: block; }

#gp-chat-widget p, #gp-chat-widget .msg, #gp-chat-widget .gp-chat__input { font-size: 1em; }
#gp-chat-widget .gp-chat__title { font-size: 1em; font-weight: 700; }
#gp-chat-widget .gp-chat__status, #gp-chat-widget .msg time, #gp-chat-widget .gp-chat__disclaimer { font-size: .85em; }

#gp-chat-widget .gp-chat__fab { position:relative; width:4rem; height:4rem; border-radius:50%; background:var(--brand); color:#fff; display:grid; place-items:center; cursor:pointer; box-shadow:0 10px 25px rgba(0,0,0,.18); }
#gp-chat-widget .gp-chat__badge { position:absolute; top:-.25rem; right:-.25rem; min-width:1.125rem; height:1.125rem; padding:0 .25rem; border-radius:.75rem; background:#ef4444; color:#fff; line-height:1.125rem; text-align:center; }

#gp-chat-widget .gp-chat__panel { position:absolute; right:0; bottom:calc(4rem + .75rem); width:min(92vw,22.5rem); height:min(70vh,35rem); display:none; flex-direction:column;
  background:var(--surface) !important; border:1px solid var(--line) !important; border-radius:1rem !important; overflow:hidden; box-shadow:0 10px 25px rgba(0,0,0,.18) !important; }
#gp-chat-widget #gpChatToggle:checked ~ .gp-chat__panel { display:flex !important; }

#gp-chat-widget .gp-chat__header { background:linear-gradient(0deg,var(--brand-dark),var(--brand)) !important; color:#fff !important; padding:.9rem .75rem !important; display:flex !important; align-items:center !important; justify-content:space-between !important; }
#gp-chat-widget .gp-chat__agent { display:flex !important; align-items:center !important; gap:.6rem !important; }
#gp-chat-widget .gp-chat__avatar { width:2.25rem !important; height:2.25rem !important; border-radius:50% !important; overflow:hidden !important; background:rgba(255,255,255,.2) !important; }
#gp-chat-widget .gp-chat__avatar img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }

#gp-chat-widget .gp-chat__messages { flex:1 !important; overflow-y:auto !important; padding:.75rem !important; background:#f8fafc !important; display:flex !important; flex-direction:column !important; gap:.6rem !important; }
#gp-chat-widget .msg { max-width:78% !important; padding:.65rem .75rem !important; border-radius:.9rem !important; box-shadow:0 1px 1px rgba(0,0,0,.04) !important; }
#gp-chat-widget .msg.-bot { align-self:flex-start !important; background:#ffffff !important; border:1px solid #eef2f7 !important; }
#gp-chat-widget .msg.-user { align-self:flex-end !important; background:var(--brand) !important; color:#fff !important; }
#gp-chat-widget .msg p { margin:0 0 .35rem 0 !important; }
#gp-chat-widget .msg time { opacity:.6 !important; }

#gp-chat-widget .msg a { color: #0d6efd; font-weight: 600; text-decoration: underline; }

#gp-chat-widget .gp-chat__composer { display:grid !important; grid-template-columns:1fr auto !important; gap:.5rem !important; padding:.6rem !important; border-top:1px solid var(--line) !important; background:#fff !important; }
#gp-chat-widget .gp-chat__input { border:1px solid var(--line) !important; border-radius:.75rem !important; padding:.65rem .75rem !important; }
#gp-chat-widget .gp-chat__send { background:var(--brand) !important; color:#fff !important; border-radius:.75rem !important; padding:.65rem .85rem !important; cursor:pointer !important; }

#gp-chat-widget .gp-chat__disclaimer { text-align:center !important; color:#111827 !important; padding:.75rem !important; margin:.4rem .4rem .25rem !important; border-radius:.5rem !important; border:1px solid #fbbf24 !important; background:#fef9c3 !important; }

@media (max-width: 420px) {
  #gp-chat-widget .gp-chat__panel { width: calc(100vw - 1.5rem) !important; height: min(70vh, 32.5rem) !important; right: -.25rem !important; }
  #gp-chat-widget .msg { max-width:84% !important; }
}

/* --- 1.0.8-enter4: make message text slightly smaller --- */
#gp-chat-widget .msg { 
  font-size: .94em !important;       /* ~6% smaller */
  line-height: 1.35 !important;
}
#gp-chat-widget .msg p { 
  font-size: inherit !important; 
}
