#gpc, #gpc * { box-sizing:border-box; }
#gpc.gpc { position:fixed; right:20px; bottom:20px; z-index:2147480100; font-family:system-ui,-apple-system,'Segoe UI',sans-serif; font-size:14px; color:#14294b; line-height:1.45; }
#gpc button, #gpc input { font:inherit; }
#gpc a { color:inherit; text-decoration:none; }
#gpc .gpc-toggle { display:flex; align-items:center; gap:9px; border:0; border-radius:30px; padding:14px 17px; background:linear-gradient(120deg,#174cb8,#0aaf9b); color:#fff; font-weight:750; box-shadow:0 10px 25px rgba(20,56,118,.24); cursor:pointer; transition:transform .15s; }
#gpc .gpc-toggle:hover { transform:translateY(-2px); }
#gpc .gpc-toggle:focus-visible, #gpc button:focus-visible, #gpc a:focus-visible, #gpc input:focus-visible { outline:3px solid #f9b322; outline-offset:2px; }
#gpc .gpc-toggle-icon { font-size:21px; line-height:1; }
#gpc .gpc-panel { position:absolute; right:0; bottom:calc(100% + 12px); width:min(390px,calc(100vw - 28px)); height:min(565px,calc(100dvh - 100px)); min-height:290px; background:#fff; border:1px solid #cde4ed; border-radius:20px; box-shadow:0 22px 65px rgba(5,38,85,.24); overflow:hidden; display:flex; flex-direction:column; }
#gpc .gpc-panel[hidden] { display:none !important; }
#gpc .gpc-header { flex:none; display:flex; align-items:center; gap:10px; padding:15px; background:linear-gradient(115deg,#122a61,#194cac 75%,#118e9e); color:#fff; }
#gpc .gpc-avatar { background:#28d4bc; color:#102856; width:35px; height:35px; display:flex; justify-content:center; align-items:center; border-radius:11px; font-size:25px; font-weight:900; }
#gpc .gpc-header-copy { flex:1; display:flex; flex-direction:column; gap:1px; }
#gpc .gpc-header-copy strong { font-size:15px; font-weight:800; }
#gpc .gpc-header-copy small { font-size:11px; color:#ccecfb; }
#gpc .gpc-close { background:transparent; border:0; color:#fff; font-size:25px; width:32px; height:32px; cursor:pointer; }
#gpc .gpc-messages { flex:1; min-height:0; overflow-y:auto; overflow-x:hidden; padding:15px 12px; display:flex; flex-direction:column; gap:12px; background:linear-gradient(#f4f9ff,#f9fefa); overscroll-behavior:contain; }
#gpc .gpc-line { display:flex; width:100%; }
#gpc .gpc-bot { justify-content:flex-start; }
#gpc .gpc-user { justify-content:flex-end; }
#gpc .gpc-bubble { max-width:96%; background:white; padding:11px 12px; border:1px solid #e0eaf5; border-radius:15px 15px 15px 3px; font-size:13px; overflow-wrap:anywhere; box-shadow:0 2px 6px rgba(14,50,98,.035); }
#gpc .gpc-user .gpc-bubble { max-width:85%; color:#fff; border:0; background:#2162c4; border-radius:15px 15px 3px 15px; }
#gpc .gpc-message { margin:0 0 10px; }
#gpc .gpc-hint, #gpc .gpc-suggest-label { margin:8px 0 0; color:#536880; font-size:11px; }
#gpc .gpc-suggest-label { margin:0 0 8px; font-weight:750; }
#gpc .gpc-chips { display:flex; flex-wrap:wrap; gap:6px; }
#gpc .gpc-chip { display:inline-block; background:#e9f4ff; border:1px solid #bcdaf6; border-radius:20px; padding:7px 9px; font-weight:700; font-size:12px; }
#gpc .gpc-chip:hover { background:#d5ebff; }
#gpc .gpc-products { display:flex; flex-direction:column; gap:8px; }
#gpc .gpc-product { display:flex; gap:9px; align-items:center; padding:7px; background:#f7faff; border:1px solid #d8e9f7; border-radius:12px; min-height:80px; }
#gpc .gpc-product:hover { border-color:#2b8cdd; box-shadow:0 1px 5px rgba(17,98,170,.12); }
#gpc .gpc-picture { object-fit:contain; flex:0 0 64px; width:64px; height:64px; background:#fff; border-radius:8px; }
#gpc .gpc-placeholder { display:flex; justify-content:center; align-items:center; font-size:26px; }
#gpc .gpc-product-text { display:flex; flex-direction:column; gap:3px; min-width:0; }
#gpc .gpc-product-name { color:#12264a; font-size:12px; line-height:1.25; font-weight:750; }
#gpc .gpc-product-price { color:#1655b6; font-size:12px; font-weight:800; }
#gpc .gpc-product-action { color:#14796e; font-size:11px; }
#gpc .gpc-contact-cta { margin-top:8px; padding:8px 10px; width:100%; background:#e1f6ec; color:#0e6c57; border:1px solid #85d6bf; border-radius:9px; cursor:pointer; font-weight:750; }
#gpc .gpc-help-links { display:flex; flex-direction:column; gap:8px; }
#gpc .gpc-help-btn { display:block; padding:10px; border-radius:10px; background:#e9f1ff; color:#194aa7; font-weight:750; font-size:12px; }
#gpc .gpc-help-btn.gpc-whatsapp { background:#dff7e9; color:#0b6947; }
#gpc .gpc-input-area { flex:none; padding:10px 12px 12px; border-top:1px solid #e0eaf4; background:#fff; }
#gpc #gpc-form { display:flex; align-items:center; border:1px solid #cad7e8; border-radius:12px; overflow:hidden; background:#f8fbff; }
#gpc #gpc-query { width:100%; min-width:0; height:42px; border:0; background:transparent; color:#14294b; padding:0 12px; outline:0; font-size:13px; box-shadow:none; }
#gpc #gpc-query:focus { outline:0; }
#gpc #gpc-query::placeholder { color:#667d91; }
#gpc .gpc-send { height:42px; width:46px; border:0; flex:0 0 46px; color:white; background:#1956bd; cursor:pointer; font-size:17px; }
#gpc .gpc-send:disabled { opacity:.55; cursor:wait; }
#gpc .gpc-input-area small { display:block; margin:7px 0 0; text-align:center; font-size:10px; color:#587087; }
#gpc .gpc-sr { position:absolute; overflow:hidden; width:1px; height:1px; padding:0; margin:-1px; border:0; clip:rect(0,0,0,0); white-space:nowrap; }
@media (max-width:520px) {
  #gpc.gpc { right:10px; bottom:10px; }
  #gpc .gpc-panel { width:calc(100vw - 20px); height:min(590px,calc(100dvh - 80px)); max-height:calc(100dvh - 80px); border-radius:18px; }
  #gpc .gpc-toggle { padding:12px 13px; }
  #gpc .gpc-toggle-label { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { #gpc *, #gpc *::before, #gpc *::after { transition:none!important; } }

/* v1.0.1: The WooCommerce mini-cart must have priority over the assistant.
   Hide the entire widget only while the drawer is open; restore automatically
   when it closes. The JS adds gpc-cart-open for older/non-:has browsers. */
#gpc.gpc.gpc-cart-open { display:none !important; }
@supports selector(body:has(.wc-block-mini-cart__drawer)) {
  body:has(.wc-block-mini-cart__drawer[aria-hidden="false"]) #gpc.gpc,
  body:has(.wc-block-mini-cart__drawer[aria-modal="true"]) #gpc.gpc,
  body:has(.wc-block-components-drawer__screen-overlay--with-slide-in:not(.wc-block-components-drawer__screen-overlay--is-hidden) .wc-block-mini-cart__drawer) #gpc.gpc {
    display:none !important;
  }
}
