.heea5-agent {
  --heea5-primary: #171717;
  --heea5-accent: #c7a35a;
  --heea5-text: #171b25;
  --heea5-muted: #747b8b;
  --heea5-line: #e7e9ee;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999999;
  max-width: calc(100vw - 24px);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--heea5-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.heea5-agent,
.heea5-agent *,
.heea5-agent *::before,
.heea5-agent *::after {
  box-sizing: border-box;
}

.heea5-agent * {
  max-width: 100%;
}

/* Premium launcher - Version 5.2 */
.heea5-launcher {
  width: 276px;
  max-width: calc(100vw - 28px);
  min-height: 76px;
  padding: 9px 11px 9px 9px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 23px;
  background:
    radial-gradient(circle at 12% 10%, rgba(199,163,90,.22), transparent 30%),
    linear-gradient(135deg, #08090b 0%, #151515 58%, #2a2112 100%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  box-shadow: 0 22px 58px rgba(8,12,20,.30), 0 8px 18px rgba(8,12,20,.20), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.heea5-launcher::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(255,255,255,.20), rgba(199,163,90,.65), rgba(255,255,255,.05));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .62;
}
.heea5-launcher::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 190px;
  left: -145px;
  top: -58px;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .62s ease;
  pointer-events: none;
}
.heea5-launcher:hover {
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(199,163,90,.34);
  box-shadow: 0 30px 72px rgba(8,12,20,.34), 0 12px 24px rgba(8,12,20,.20), 0 0 0 5px rgba(199,163,90,.055);
}
.heea5-launcher:hover::after { left: 320px; }
.heea5-launcher:active { transform: translateY(-1px) scale(.995); }
.heea5-launcher:focus-visible { outline: 3px solid rgba(199,163,90,.30); outline-offset: 4px; }
.heea5-launcher-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #171717;
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 8px 20px rgba(0,0,0,.18), inset 0 0 0 1px rgba(0,0,0,.035);
  position: relative;
  overflow: visible;
}
.heea5-launcher-icon img {
  width: 84%;
  height: 84%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}
.heea5-launcher-icon svg { width: 25px; height: 25px; fill: currentColor; }
.heea5-live-dot {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #39d98a;
  border: 3px solid #171717;
  animation: heea5Pulse 2.2s infinite;
}
@keyframes heea5Pulse { 0% { box-shadow: 0 0 0 0 rgba(57,217,138,.42); } 70% { box-shadow: 0 0 0 8px rgba(57,217,138,0); } 100% { box-shadow: 0 0 0 0 rgba(57,217,138,0); } }
.heea5-launcher-copy { display: flex; flex: 1 1 auto; min-width: 0; flex-direction: column; text-align: left; position: relative; z-index: 2; }
.heea5-launcher-kicker {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
  color: #e5c57e;
  font-size: 8.5px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: .105em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.heea5-kicker-spark { font-size: 10px; filter: drop-shadow(0 0 6px rgba(229,197,126,.45)); }
.heea5-launcher-copy strong { font-size: 15px; line-height: 1.18; font-weight: 790; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heea5-launcher-copy small { margin-top: 4px; font-size: 10.5px; line-height: 1.2; color: rgba(255,255,255,.68); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heea5-launcher-arrow {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  opacity: .92;
  transition: transform .2s ease, background .2s ease;
  position: relative;
  z-index: 2;
}
.heea5-launcher-arrow svg { width: 16px; height: 16px; fill: currentColor; }
.heea5-launcher:hover .heea5-launcher-arrow { background: rgba(199,163,90,.20); }
.heea5-open .heea5-launcher-arrow { transform: rotate(90deg); }

/* Panel: overflow-x is deliberately disabled in V5 */
.heea5-panel {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: 430px;
  max-width: calc(100vw - 28px);
  height: min(700px, calc(100vh - 118px));
  min-height: 510px;
  border: 1px solid rgba(20,25,38,.09);
  border-radius: 25px;
  background: #fff;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  box-shadow: 0 36px 96px rgba(13,17,28,.25), 0 10px 30px rgba(13,17,28,.1);
  transform-origin: bottom right;
}
.heea5-panel:not([hidden]) { display: flex; flex-direction: column; animation: heea5PanelIn .2s cubic-bezier(.2,.8,.2,1); }
@keyframes heea5PanelIn { from { opacity: 0; transform: translateY(12px) scale(.975); } to { opacity: 1; transform: translateY(0) scale(1); } }

.heea5-header {
  flex: 0 0 auto;
  min-height: 80px;
  padding: 14px 14px 14px 16px;
  background: linear-gradient(135deg, #090a0d, var(--heea5-primary) 70%, #292112);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.heea5-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--heea5-accent), transparent 72%); pointer-events: none; }
.heea5-brand { min-width: 0; display: flex; align-items: center; gap: 11px; overflow: hidden; pointer-events: none; }
.heea5-avatar { display: inline-grid; place-items: center; overflow: hidden; background: #fff; color: var(--heea5-primary); font-weight: 850; letter-spacing: -.04em; border: 1px solid rgba(255,255,255,.4); }
.heea5-avatar img, .heea5-message-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.heea5-avatar-large { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; }
.heea5-brand-copy { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.heea5-brand-copy strong { font-size: 15px; line-height: 1.2; font-weight: 760; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heea5-brand-copy small { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 5px; font-size: 10.5px; color: rgba(255,255,255,.72); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.heea5-status-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #39d98a; box-shadow: 0 0 0 3px rgba(57,217,138,.12); }
.heea5-header-actions { flex: 0 0 auto; display: flex; gap: 5px; position: relative; z-index: 30; pointer-events: auto !important; }
.heea5-new-chat, .heea5-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 11px;
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
  position: relative;
  z-index: 31;
  pointer-events: auto !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.heea5-new-chat:hover, .heea5-close:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.heea5-new-chat svg, .heea5-close svg { width: 19px; height: 19px; fill: currentColor; }

/* Sales tools */
.heea5-tools {
  flex: 0 0 auto;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  background: #fff;
  border-bottom: 1px solid var(--heea5-line);
  overflow: hidden;
}
.heea5-tool {
  min-width: 0;
  min-height: 42px;
  padding: 7px 5px;
  border: 1px solid #e2e5eb;
  border-radius: 12px;
  background: #fafbfc;
  color: #333947;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font: inherit;
  font-size: 9.7px;
  font-weight: 740;
  line-height: 1.1;
  cursor: pointer;
  white-space: normal;
  overflow-wrap: anywhere;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.heea5-tool svg { width: 15px; height: 15px; flex: 0 0 15px; fill: currentColor; }
.heea5-tool:hover { transform: translateY(-1px); border-color: #cfd4dd; background: #fff; }

.heea5-tool { text-decoration: none !important; }
.heea5-cart-tool { position: relative; }
.heea5-cart-count { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--heea5-primary); color: #fff; font-size: 8px; line-height: 1; font-weight: 850; }
.heea5-tool-accent { border-color: rgba(199,163,90,.18); background: rgba(199,163,90,.055); color: var(--heea5-accent); }

/* Quick questions: WRAP, never horizontal scroll */
.heea5-quick-wrap { flex: 0 0 auto; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--heea5-line); overflow: hidden; }
.heea5-quick-label { display: block; margin: 0 0 7px; font-size: 9px; font-weight: 800; color: #9a9fac; letter-spacing: .08em; text-transform: uppercase; }
.heea5-quick-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; overflow: hidden !important; }
.heea5-quick {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid #e3e6ec;
  border-radius: 11px;
  background: #fafbfc;
  color: #343a47;
  font: inherit;
  font-size: 10.5px;
  font-weight: 660;
  line-height: 1.2;
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.heea5-quick:hover { border-color: rgba(199,163,90,.34); background: #fff; transform: translateY(-1px); }
.heea5-quick-compact { padding-top: 7px; padding-bottom: 7px; }
.heea5-quick-compact .heea5-quick-label { display: none; }
.heea5-quick-compact .heea5-quick-actions { display: flex; flex-wrap: wrap; gap: 5px; overflow: hidden !important; }
.heea5-quick-compact .heea5-quick { width: auto; max-width: 48%; flex: 1 1 44%; min-height: 30px; border-radius: 999px; padding: 6px 8px; text-align: center; }

.heea5-messages {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 16px 14px 12px;
  overflow-y: auto;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  background: radial-gradient(circle at 100% 0, rgba(199,163,90,.035), transparent 32%), linear-gradient(180deg, #f8f9fb, #f3f5f8);
  scrollbar-width: thin;
  scrollbar-color: #cfd3dc transparent;
}
.heea5-messages::-webkit-scrollbar { width: 6px; height: 0; }
.heea5-messages::-webkit-scrollbar-thumb { background: #cfd3dc; border-radius: 999px; }
.heea5-message { width: 100%; min-width: 0; display: flex; align-items: flex-end; gap: 8px; margin: 0 0 14px; overflow: visible; }
.heea5-message.heea5-user { justify-content: flex-end; }
.heea5-message-avatar { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: var(--heea5-primary); color: #fff; font-size: 9px; font-weight: 850; box-shadow: 0 3px 10px rgba(13,17,28,.12); }
.heea5-message-stack { min-width: 0; width: auto; max-width: min(86%, 345px); display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; }
.heea5-user .heea5-message-stack { align-items: flex-end; }
.heea5-bubble {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid #e3e6ec;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  color: #202633;
  box-shadow: 0 3px 12px rgba(18,24,38,.045);
  font-size: 13px;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow-x: hidden;
}
.heea5-user .heea5-bubble { border: 0; border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, #0b0c10, var(--heea5-primary)); color: #fff; box-shadow: 0 8px 20px rgba(13,17,28,.13); }
.heea5-bubble a { color: var(--heea5-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; word-break: break-all; }
.heea5-user .heea5-bubble a { color: #fff; }

.heea5-typing { display: flex; align-items: center; gap: 4px; min-width: 52px; min-height: 39px; }
.heea5-typing span { width: 6px; height: 6px; border-radius: 50%; background: #a6acb9; animation: heea5Typing 1.2s infinite ease-in-out; }
.heea5-typing span:nth-child(2) { animation-delay: .14s; }
.heea5-typing span:nth-child(3) { animation-delay: .28s; }
@keyframes heea5Typing { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

.heea5-sources { width: 100%; min-width: 0; margin-top: 7px; display: grid; gap: 6px; overflow: hidden; }
.heea5-sources-label { margin: 1px 2px 0; font-size: 9px; color: #9298a6; font-weight: 800; text-transform: uppercase; letter-spacing: .065em; }
.heea5-source-card { width: 100%; min-width: 0; min-height: 50px; padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e0e4ea; border-radius: 12px; background: rgba(255,255,255,.94); color: #202633 !important; text-decoration: none !important; box-shadow: 0 2px 8px rgba(18,24,38,.035); overflow: hidden; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.heea5-source-card:hover { border-color: rgba(199,163,90,.3); transform: translateY(-1px); box-shadow: 0 5px 13px rgba(18,24,38,.06); }
.heea5-source-copy { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }
.heea5-source-copy small { color: var(--heea5-accent); font-size: 8.5px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.heea5-source-copy strong { margin-top: 3px; font-size: 11px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.heea5-source-arrow { flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; display: grid; place-items: center; background: #f1f2f5; color: #656c7b; font-size: 12px; }

.heea5-followups { width: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; overflow: hidden; }
.heea5-followup { max-width: 100%; min-width: 0; border: 1px solid #dce0e7; border-radius: 999px; background: #fff; color: #4b5261; padding: 6px 9px; font: inherit; font-size: 10px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; cursor: pointer; transition: border-color .18s ease, color .18s ease; }
.heea5-followup:hover { border-color: var(--heea5-accent); color: var(--heea5-accent); }

/* Live WooCommerce product cards */
.heea5-products {
  width: 100%;
  min-width: 0;
  margin-top: 8px;
  display: grid;
  gap: 7px;
  overflow: hidden !important;
}
.heea5-products-heading {
  margin: 1px 2px 0;
  font-size: 9px;
  line-height: 1.25;
  color: #8e95a3;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .07em;
  overflow-wrap: anywhere;
}
.heea5-related-products { margin-top: 10px; }
.heea5-product-card {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  border: 1px solid #e0e3e9;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 17px rgba(18,24,38,.055);
  overflow: hidden !important;
}
.heea5-product-media {
  width: 86px;
  min-width: 0;
  height: 96px;
  border-radius: 11px;
  background: #f5f5f3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
}
.heea5-product-media img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.heea5-product-image-fallback { color: #a18447; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.heea5-sale-badge { position: absolute; top: 5px; left: 5px; padding: 3px 5px; border-radius: 6px; background: var(--heea5-accent); color: #fff; font-size: 7.5px; line-height: 1; font-weight: 900; letter-spacing: .06em; }
.heea5-product-body { min-width: 0; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.heea5-product-category { min-width: 0; margin-bottom: 3px; color: #9a7b3b; font-size: 8px; line-height: 1.2; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; white-space: normal; overflow-wrap: anywhere; }
.heea5-product-title { min-width: 0; color: #1f2430 !important; font-size: 11.5px; line-height: 1.3; font-weight: 780; text-decoration: none !important; white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.heea5-product-title:hover { color: var(--heea5-accent) !important; }
.heea5-product-meta { min-width: 0; margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; overflow: hidden; }
.heea5-product-price { min-width: 0; color: #11151d; font-size: 11.5px; line-height: 1.2; font-weight: 850; white-space: normal; overflow-wrap: anywhere; }
.heea5-product-stock { max-width: 100%; padding: 3px 6px; border-radius: 999px; background: #f1f3f6; color: #687080; font-size: 7.7px; line-height: 1.15; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.heea5-product-stock.is-instock { background: #edf8f2; color: #16764a; }
.heea5-product-stock.is-outofstock { background: #fff0f0; color: #a63e44; }
.heea5-product-stock.is-backorder { background: #fff7e9; color: #9a6722; }
.heea5-product-sku { margin-top: 4px; color: #969ca8; font-size: 8px; line-height: 1.2; overflow-wrap: anywhere; }
.heea5-product-actions { width: 100%; min-width: 0; margin-top: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; overflow: hidden !important; }
.heea5-product-actions a, .heea5-product-actions button {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 5px 4px;
  border-radius: 8px;
  font: inherit;
  font-size: 8.3px;
  line-height: 1.15;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.heea5-product-view { border: 1px solid #dfe3e9; background: #fff; color: #59606e !important; display: grid; place-items: center; }
.heea5-product-add { border: 1px solid rgba(199,163,90,.35); background: #fffaf0; color: #92702d; }
.heea5-product-buy { border: 0; background: linear-gradient(135deg, var(--heea5-accent), #9b7936); color: #fff; box-shadow: 0 4px 10px rgba(199,163,90,.18); }
.heea5-product-actions button:disabled { opacity: .6; cursor: wait; }
.heea5-product-actions button.is-added { background: #edf8f2; color: #16764a; border-color: #cce9da; box-shadow: none; }
.heea5-mini-notice {
  position: absolute;
  right: 0;
  bottom: 78px;
  width: min(330px, calc(100vw - 28px));
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(199,163,90,.24);
  border-radius: 13px;
  background: #171717;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  box-shadow: 0 15px 36px rgba(13,17,28,.24);
  font-size: 10.5px;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 5;
}
.heea5-mini-notice.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.heea5-mini-notice span { min-width: 0; overflow-wrap: anywhere; }
.heea5-mini-notice a { flex: 0 0 auto; color: #e7c97d !important; font-weight: 800; text-decoration: none !important; white-space: nowrap; }

/* Lead / quotation card */
.heea5-lead-stack { width: 100%; max-width: calc(100% - 36px); }
.heea5-lead-card { width: 100%; min-width: 0; padding: 13px; border: 1px solid #dfe3e9; border-radius: 16px 16px 16px 5px; background: #fff; box-shadow: 0 7px 22px rgba(18,24,38,.07); overflow: hidden; }
.heea5-lead-heading { margin-bottom: 10px; }
.heea5-lead-heading strong { display: block; font-size: 13px; color: #1d2230; }
.heea5-lead-heading small { display: block; margin-top: 3px; font-size: 9.5px; color: #8a909e; line-height: 1.35; }
.heea5-lead-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.heea5-lead-field { min-width: 0; display: block; margin-bottom: 7px; }
.heea5-lead-field > span { display: block; margin: 0 0 4px 1px; font-size: 9px; font-weight: 750; color: #676f7f; }
.heea5-lead-field input, .heea5-lead-field textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 36px;
  margin: 0 !important;
  padding: 8px 9px !important;
  border: 1px solid #dfe3e9 !important;
  border-radius: 10px !important;
  background: #f8f9fb !important;
  color: #202633 !important;
  font: inherit !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
  outline: none !important;
  box-shadow: none !important;
  resize: vertical;
  overflow-x: hidden !important;
}
.heea5-lead-field input:focus, .heea5-lead-field textarea:focus { border-color: rgba(199,163,90,.45) !important; background: #fff !important; }
.heea5-consent { min-width: 0; display: flex; align-items: flex-start; gap: 7px; margin: 3px 0 9px; font-size: 9px; line-height: 1.35; color: #6d7482; }
.heea5-consent input { flex: 0 0 auto; margin-top: 1px; }
.heea5-consent span { min-width: 0; overflow-wrap: anywhere; }
.heea5-honeypot { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.heea5-lead-error { margin: 0 0 8px; padding: 7px 8px; border-radius: 9px; background: #fff3f3; color: #9c252b; font-size: 9.5px; line-height: 1.35; overflow-wrap: anywhere; }
.heea5-lead-actions { display: flex; justify-content: flex-end; gap: 7px; }
.heea5-lead-cancel, .heea5-lead-submit { min-height: 36px; padding: 7px 10px; border-radius: 10px; font: inherit; font-size: 10.5px; font-weight: 750; cursor: pointer; }
.heea5-lead-cancel { border: 1px solid #dfe3e9; background: #fff; color: #5d6574; }
.heea5-lead-submit { border: 0; background: var(--heea5-accent); color: #fff; box-shadow: 0 6px 14px rgba(199,163,90,.2); }
.heea5-lead-submit:disabled { opacity: .55; cursor: wait; }
.heea5-inline-whatsapp { display: inline-flex; max-width: 100%; padding: 9px 11px; border: 1px solid #cfe6da; border-radius: 11px; background: #f4fbf7; color: #157448 !important; font-size: 11px; font-weight: 750; text-decoration: none !important; overflow-wrap: anywhere; }

.heea5-footer { flex: 0 0 auto; width: 100%; min-width: 0; padding: 9px 11px 10px; background: #fff; border-top: 1px solid var(--heea5-line); overflow: hidden; }
.heea5-whatsapp { width: 100%; min-height: 36px; margin: 0 0 7px; border: 1px solid #dfe3e9; border-radius: 11px; background: #fbfcfd; color: #176e47 !important; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 10.5px; font-weight: 740; text-decoration: none !important; transition: background .18s ease, border-color .18s ease; }
.heea5-whatsapp:hover { background: #f4fbf7; border-color: #cde8d8; }
.heea5-whatsapp svg { width: 16px; height: 16px; fill: #1f9d62; }
.heea5-form { width: 100%; min-width: 0; display: flex; align-items: flex-end; gap: 7px; overflow: hidden; }
.heea5-input { flex: 1 1 auto; width: 1%; min-width: 0 !important; max-width: 100% !important; min-height: 44px; max-height: 112px; resize: none; overflow-y: auto; overflow-x: hidden !important; border: 1px solid #dce0e7 !important; border-radius: 14px !important; background: #f8f9fb !important; color: #202633 !important; padding: 11px 12px !important; font: inherit !important; font-size: 12.5px !important; line-height: 1.4 !important; outline: none !important; box-shadow: none !important; }
.heea5-input::placeholder { color: #9aa0ad; }
.heea5-input:focus { border-color: rgba(199,163,90,.4) !important; background: #fff !important; box-shadow: 0 0 0 3px rgba(199,163,90,.07) !important; }
.heea5-send { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--heea5-accent), #9b7936); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 18px rgba(199,163,90,.22); transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.heea5-send:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(199,163,90,.28); }
.heea5-send:disabled { opacity: .45; cursor: wait; transform: none; box-shadow: none; }
.heea5-send svg { width: 19px; height: 19px; fill: currentColor; }
.heea5-note { margin-top: 6px; text-align: center; font-size: 8.5px; line-height: 1.3; color: #9a9fad; overflow-wrap: anywhere; }

@media (max-width: 600px) {
  .heea5-agent { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); }
  .heea5-launcher { width: 68px; min-height: 68px; height: 68px; padding: 7px; border-radius: 22px; box-shadow: 0 18px 44px rgba(8,12,20,.30), 0 0 0 4px rgba(199,163,90,.06); }
  .heea5-launcher-icon { width: 54px; height: 54px; flex-basis: 54px; border-radius: 17px; }
  .heea5-launcher-copy, .heea5-launcher-arrow { display: none; }
  .heea5-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    height: min(78svh, 680px);
    min-height: 470px;
    border-radius: 22px;
    transform-origin: bottom center;
  }
  .heea5-header { min-height: 72px; padding: 11px 11px 11px 13px; }
  .heea5-tools { padding: 8px 9px; gap: 5px; }
  .heea5-tool { min-height: 39px; font-size: 8.7px; }
  .heea5-quick-wrap { padding: 8px 9px; }
  .heea5-quick { font-size: 9.5px; }
  .heea5-messages { padding-left: 10px; padding-right: 10px; }
  .heea5-message-stack { max-width: 87%; }
  .heea5-lead-stack { max-width: calc(100% - 34px); }
}

@media (max-width: 390px) {
  .heea5-brand-copy small { font-size: 9px; }
  .heea5-avatar-large { width: 41px; height: 41px; flex-basis: 41px; }
  .heea5-new-chat, .heea5-close { width: 32px; height: 32px; }
  .heea5-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .heea5-tool svg { display: none; }
  .heea5-quick-actions { grid-template-columns: 1fr 1fr; }
  .heea5-quick-compact .heea5-quick { flex-basis: 47%; max-width: 48%; }
  .heea5-lead-grid { grid-template-columns: 1fr; gap: 0; }
  .heea5-message-stack { max-width: 89%; }
  .heea5-product-card { grid-template-columns: 76px minmax(0, 1fr); gap: 8px; }
  .heea5-product-media { width: 76px; height: 88px; }
  .heea5-product-actions a, .heea5-product-actions button { font-size: 7.8px; }
}

@media (max-width: 340px) {
  .heea5-panel { left: 5px; right: 5px; }
  .heea5-brand-copy small { display: none; }
  .heea5-quick-actions { grid-template-columns: 1fr; }
  .heea5-quick-compact .heea5-quick { flex: 1 1 100%; max-width: 100%; }
  .heea5-product-card { grid-template-columns: 68px minmax(0, 1fr); }
  .heea5-product-media { width: 68px; height: 82px; }
  .heea5-product-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .heea5-agent *, .heea5-agent *::before, .heea5-agent *::after { animation: none !important; transition: none !important; }
}
