/* JHANA chat widget */
.jh-chat { --jh-ink: #1d1b18; --jh-copper: #b0532d; --jh-dark: #151a16; --jh-paper: #fbf8f2; --jh-line: #e7e0d4; position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; font-family: "DM Sans", system-ui, sans-serif; }
.jh-chat .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.jh-chat svg { width: 18px; height: 18px; fill: currentColor; }
.jh-chat-fab { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 8px; border: 0; border-radius: 99px; color: #fff; background: var(--jh-dark); box-shadow: 0 18px 40px -14px rgba(0,0,0,.55); cursor: pointer; font-family: inherit; font-weight: 600; font-size: 14.5px; line-height: 1; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; animation: jh-in .6s .8s cubic-bezier(.2,.8,.2,1) both; }
.jh-chat-fab:hover { transform: translateY(-2px); box-shadow: 0 22px 46px -14px rgba(0,0,0,.6); }
.jh-fab-avatar { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, #d3784f, var(--jh-copper)); font: 500 19px/1 "Newsreader", Georgia, serif; }
.jh-fab-avatar i { position: absolute; right: 0; bottom: 1px; width: 11px; height: 11px; border: 2px solid var(--jh-dark); border-radius: 50%; background: #4fbf72; }
.jh-fab-close { display: none; }
.jh-chat.is-open .jh-chat-fab { padding: 0; width: 56px; justify-content: center; }
.jh-chat.is-open .jh-fab-avatar, .jh-chat.is-open .jh-fab-label { display: none; }
.jh-chat.is-open .jh-fab-close { display: block; fill: none; stroke: currentColor; stroke-width: 2; }
.jh-chat-panel { position: absolute; right: 0; bottom: 70px; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--jh-line); border-radius: 20px; color: var(--jh-ink); background: var(--jh-paper); box-shadow: 0 30px 80px -24px rgba(21,26,22,.45); transform-origin: bottom right; animation: jh-pop .35s cubic-bezier(.2,.8,.2,1); }
.jh-chat-panel[hidden] { display: none; }
.jh-chat-head { display: flex; align-items: center; gap: 11px; padding: 14px 14px 14px 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(176,83,45,.5), transparent 60%), var(--jh-dark); }
.jh-avatar { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 50%; background: linear-gradient(135deg, #d3784f, var(--jh-copper)); font: 500 18px/1 "Newsreader", Georgia, serif; }
.jh-chat-head div { flex: 1; line-height: 1.25; }
.jh-chat-head strong { font-size: 15px; }
.jh-chat-head em { margin-left: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 10.5px; font-style: normal; letter-spacing: .06em; vertical-align: 2px; }
.jh-chat-head small { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.65); font-size: 12px; }
.jh-chat-head small i { width: 7px; height: 7px; border-radius: 50%; background: #4fbf72; box-shadow: 0 0 0 3px rgba(79,191,114,.2); }
.jh-chat-head button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; color: #fff; background: rgba(255,255,255,.08); cursor: pointer; }
.jh-chat-head button svg { fill: none; stroke: currentColor; stroke-width: 2; }
.jh-chat-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 16px; scroll-behavior: smooth; }
.jh-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: jh-in .3s cubic-bezier(.2,.8,.2,1) both; }
.jh-msg.ai { align-self: flex-start; border-bottom-left-radius: 5px; background: #fff; box-shadow: 0 0 0 1px var(--jh-line); }
.jh-msg.me { align-self: flex-end; border-bottom-right-radius: 5px; color: #fff; background: var(--jh-copper); }
.jh-typing { display: inline-flex; gap: 4px; padding: 14px; }
.jh-typing i { width: 6px; height: 6px; border-radius: 50%; background: #b6ad9f; animation: jh-dot 1s infinite; }
.jh-typing i:nth-child(2) { animation-delay: .15s; } .jh-typing i:nth-child(3) { animation-delay: .3s; }
.jh-products { display: grid; gap: 8px; align-self: stretch; animation: jh-in .35s .1s cubic-bezier(.2,.8,.2,1) both; }
.jh-product { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: inherit; background: #fff; box-shadow: 0 0 0 1px var(--jh-line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.jh-product:hover { transform: translateX(3px); box-shadow: 0 0 0 1px #d8b9a5; }
.jh-product img { width: 54px; height: 54px; flex: none; border-radius: 10px; object-fit: contain; background: #f6f2ea; }
.jh-product span { display: grid; min-width: 0; line-height: 1.3; }
.jh-product strong { overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.jh-product small { color: #77706a; font-size: 12px; }
.jh-product b { color: var(--jh-copper); font-size: 12.5px; }
.jh-chat-chips { display: flex; gap: 6px; padding: 0 16px 10px; overflow-x: auto; scrollbar-width: none; }
.jh-chat-chips:empty { display: none; }
.jh-chip { flex: none; padding: 7px 12px; border: 1px solid var(--jh-line); border-radius: 99px; color: var(--jh-ink); background: #fff; cursor: pointer; font-family: inherit; font-weight: 600; font-size: 12.5px; line-height: 1; transition: all .2s; }
.jh-chip:hover { border-color: var(--jh-copper); color: var(--jh-copper); }
.jh-chip.primary { border-color: var(--jh-copper); color: #fff; background: var(--jh-copper); }
.jh-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--jh-line); background: #fff; }
.jh-chat-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--jh-line); border-radius: 12px; background: var(--jh-paper); font-family: inherit; font-weight: 400; font-size: 14px; outline: 0; }
.jh-chat-form input:focus { border-color: #d0a58c; box-shadow: 0 0 0 3px rgba(176,83,45,.12); }
.jh-chat-form button { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 12px; color: #fff; background: var(--jh-copper); cursor: pointer; }
.jh-chat-wa { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; color: #1f7a45; background: #eef7f0; font-family: inherit; font-weight: 600; font-size: 13px; line-height: 1; text-decoration: none; }
.jh-chat-wa:hover { background: #e2f2e6; }
@keyframes jh-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes jh-pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes jh-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 520px) {
  .jh-fab-label { display: none; }
  .jh-chat-fab { padding: 0 8px; }
  .jh-chat-panel { position: fixed; inset: auto 8px 82px 8px; width: auto; height: calc(100dvh - 100px); }
}
@media (prefers-reduced-motion: reduce) { .jh-chat * , .jh-chat { animation: none !important; transition: none !important; } }
.jh-fab-label { letter-spacing: .08em; font-weight: 700; }
.jh-teaser { position: absolute; right: 0; bottom: 70px; width: min(290px, calc(100vw - 32px)); display: grid; gap: 4px; padding: 16px 16px 14px; border: 1px solid var(--jh-line); border-radius: 18px 18px 6px 18px; color: var(--jh-ink); background: #fff; box-shadow: 0 24px 50px -20px rgba(21,26,22,.45); animation: jh-pop .4s cubic-bezier(.2,.8,.2,1); }
.jh-teaser[hidden] { display: none; }
.jh-teaser strong { font-size: 15px; } .jh-teaser span { color: #6e6960; font-size: 13.5px; line-height: 1.45; }
.jh-teaser-cta { justify-self: start; margin-top: 8px; padding: 9px 16px; border: 0; border-radius: 99px; color: #fff; background: var(--jh-copper); font-family: inherit; font-weight: 700; font-size: 13px; letter-spacing: .08em; cursor: pointer; }
.jh-teaser-x { position: absolute; right: 8px; top: 6px; border: 0; background: none; color: #9a948a; font-size: 18px; cursor: pointer; }
