:root { --wcga-accent: #111827; }
.wcga-chat { position: fixed; right: 22px; bottom: 22px; z-index: 99999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.wcga-toggle { width: 58px; height: 58px; border-radius: 999px; border: 0; background: var(--wcga-accent); color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.wcga-panel { width: min(380px, calc(100vw - 32px)); height: min(590px, calc(100vh - 48px)); background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 60px rgba(0,0,0,.25); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,.08); }
.wcga-header { background: var(--wcga-accent); color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; }
.wcga-title { font-size: 15px; }
.wcga-close { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.wcga-messages { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; }
.wcga-message { max-width: 88%; margin: 8px 0; padding: 10px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.wcga-assistant { background: #fff; color: #111827; border: 1px solid #e5e7eb; border-bottom-left-radius: 4px; }
.wcga-user { margin-left: auto; background: var(--wcga-accent); color: #fff; border-bottom-right-radius: 4px; }
.wcga-typing { opacity: .75; }
.wcga-quick { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; background: #f8fafc; border-top: 1px solid #eef2f7; }
.wcga-quick button, .wcga-actions button, .wcga-actions a { border: 1px solid var(--wcga-accent); color: var(--wcga-accent); background: #fff; border-radius: 999px; padding: 8px 10px; cursor: pointer; font-size: 13px; text-decoration: none; white-space: nowrap; }
.wcga-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 12px; background: #fff; border-top: 1px solid #e5e7eb; }
.wcga-actions a { background: var(--wcga-accent); color: #fff; }
.wcga-form { display: flex; gap: 8px; padding: 12px; background: #fff; border-top: 1px solid #e5e7eb; }
.wcga-input { flex: 1; min-width: 0; border: 1px solid #d1d5db; border-radius: 999px; padding: 10px 12px; font-size: 14px; }
.wcga-send, .wcga-lead-form button { border: 0; background: var(--wcga-accent); color: #fff; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-size: 14px; }
.wcga-send:disabled, .wcga-input:disabled, .wcga-lead-form button:disabled { opacity: .65; cursor: not-allowed; }
.wcga-lead-form { padding: 12px; border-top: 1px solid #e5e7eb; background: #fff; display: grid; gap: 8px; }
.wcga-lead-form[hidden] { display: none; }
.wcga-lead-form input, .wcga-lead-form textarea { width: 100%; box-sizing: border-box; border: 1px solid #d1d5db; border-radius: 10px; padding: 9px 10px; font-size: 13px; }
@media (max-width: 480px) { .wcga-chat { right: 12px; bottom: 12px; } .wcga-panel { width: calc(100vw - 24px); height: min(620px, calc(100vh - 24px)); } }
.wcga-products { display: grid; gap: 8px; margin: 10px 0; }
.wcga-product { display: flex; gap: 10px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 9px; max-width: 94%; }
.wcga-product img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.wcga-product strong, .wcga-product span, .wcga-product small { display: block; font-size: 13px; line-height: 1.35; }
.wcga-product small { color: #6b7280; }
.wcga-product-links { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.wcga-product-links a { border: 1px solid var(--wcga-accent); color: var(--wcga-accent); text-decoration: none; border-radius: 999px; padding: 5px 8px; font-size: 12px; }
.wcga-product-links a.wcga-cart { background: var(--wcga-accent); color: #fff; }
.wcga-coupon { display: inline-block; background: #fff; border: 1px dashed var(--wcga-accent); color: var(--wcga-accent); border-radius: 10px; padding: 8px 10px; margin: 8px 0; font-size: 13px; font-weight: 600; }
.wcga-admin { border-style: dashed; }
