/* CSS Variables */
:root {
  --hugg-sp: #4f46e5;
  --hqih51-l3o4: #ffffff;
  --logzy-w5: #f9fafb;
  --bp3-nzgj: #0f172a;
  --wqj-v1gd: #6b7280;
  --g2ei-hvoi: #e5e7eb;
  --ide-m9ug: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yqj-olg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --mj1-ytl: 16px;
  --lcyj10-kh3: 56px;
  --nxdwtv-y46d: 12px;
  --evb997-tzrp: 999999;
}

/* Base Reset */
.or5g46,
.or5g46 * { box-sizing: border-box; margin: 0; padding: 0; }

/* Main Container */
.or5g46 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--evb997-tzrp);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--bp3-nzgj);
}
.or5g46.lhft { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.jzrond { display: flex; flex-direction: column-reverse; gap: var(--nxdwtv-y46d); align-items: center; }
.h291qu {
  width: var(--lcyj10-kh3); height: var(--lcyj10-kh3); min-width: var(--lcyj10-kh3); min-height: var(--lcyj10-kh3);
  border-radius: 50%; border: none; background: var(--hugg-sp); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--ide-m9ug);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.h291qu:hover { transform: scale(1.05); box-shadow: var(--yqj-olg); }
.h291qu:active { transform: scale(0.95); }
.h291qu:focus { outline: 2px solid var(--hugg-sp); outline-offset: 2px; }
.h291qu svg { width: 24px; height: 24px; fill: currentColor; }

/* Messenger Buttons - Specific Colors */
.h291qu[data-g3ljg8="telegram"]{ background:#0088cc; }
.h291qu[data-g3ljg8="whatsapp"]{ background:#25d366; }
.h291qu[data-g3ljg8="viber"]{ background:#7360f2; }
.h291qu[data-g3ljg8="messenger"]{ background:#0084ff; }

/* Pulse Animation */
@keyframes pulse { 0%,100%{ transform:scale(1); opacity:1;} 50%{ transform:scale(1.05); opacity:.9;} }
.h291qu.vohw{ animation:pulse 2s ease-in-out infinite; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .h291qu.vohw{ animation:none; }
  .h291qu,.len4rs,.gzyqqh{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.len4rs{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--hqih51-l3o4); border-radius: var(--mj1-ytl); box-shadow: var(--yqj-olg);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(20px) scale(0.95); transition: opacity .2s ease, transform .2s ease;
  visibility: hidden; pointer-events: none;
}
.or5g46.lhft .len4rs{ right:auto; left:24px; }
.len4rs.u5yux4{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.d6e2{
  padding:16px 20px; background:var(--hqih51-l3o4); border-bottom:1px solid var(--g2ei-hvoi);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.cwto{ width:10px; height:10px; border-radius:50%; background:var(--hugg-sp); flex-shrink:0; }
.pfm9e{ flex:1; min-width:0; }
.l0oyw6{ font-size:16px; font-weight:600; color:var(--bp3-nzgj); margin:0 0 2px 0; }
.gbdj{ font-size:13px; color:var(--wqj-v1gd); margin:0; }
.ctx2{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wqj-v1gd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ctx2:hover{ background:var(--logzy-w5); color:var(--bp3-nzgj); }
.ctx2:focus{ outline:2px solid var(--hugg-sp); outline-offset:2px; }
.ctx2 svg{ width:20px; height:20px; }

/* Body */
.pewcf{
  flex:1; overflow-y:auto; padding:16px; background:var(--logzy-w5);
  display:flex; flex-direction:column; gap:12px;
}
.pewcf::-webkit-scrollbar{ width:6px; }
.pewcf::-webkit-scrollbar-track{ background:transparent; }
.pewcf::-webkit-scrollbar-thumb{ background:var(--g2ei-hvoi); border-radius:3px; }
.pewcf::-webkit-scrollbar-thumb:hover{ background:var(--wqj-v1gd); }

/* Messages */
.gzyqqh{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gzyqqh.wdrv{ flex-direction:row-reverse; }
.d7c2qv{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.d7c2qv a{ color:inherit; }
.gzyqqh.uhnu .d7c2qv{ background:var(--hqih51-l3o4); color:var(--bp3-nzgj); border-bottom-left-radius:4px; }
.gzyqqh.wdrv .d7c2qv{ background:var(--hugg-sp); color:#fff; border-bottom-right-radius:4px; }
.rfvl{ font-size:11px; color:var(--wqj-v1gd); margin-top:4px; display:block; }

/* Typing Indicator */
.ax8mhw{
  display:flex; gap:8px; padding:10px 14px; background:var(--hqih51-l3o4);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.d3kky0{ width:8px; height:8px; border-radius:50%; background:var(--wqj-v1gd); animation:typingDot 1.4s infinite; }
.d3kky0:nth-child(2){ animation-delay:.2s; }
.d3kky0:nth-child(3){ animation-delay:.4s; }
@keyframes typingDot{ 0%,60%,100%{ transform:translateY(0); opacity:.5;} 30%{ transform:translateY(-8px); opacity:1;} }

/* Quick Replies (chips) */
.tx5u{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.v4cj{
  border:0; border-radius:999px; padding:8px 12px; background:var(--hugg-sp); color:#fff; cursor:pointer;
  font:inherit; line-height:1; transition:transform .08s ease, background .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--ide-m9ug);
}
.v4cj:is(:hover,:focus){ transform:translateY(-1px); }
a.v4cj{ text-decoration:none; display:inline-block; }
a.v4cj:link, a.v4cj:visited{ color:#fff; }
a.v4cj:hover, a.v4cj:focus{ color:#fff; }

/* Error Banner */
.tmfm{
  padding:12px 16px; background:#fee; color:#c00; border-radius:8px; font-size:13px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.pimh{
  padding:6px 12px; background:#c00; color:#fff; border:none; border-radius:6px; font-size:12px; cursor:pointer; white-space:nowrap;
}

/* Footer */
.gd07{
  padding:16px; background:var(--hqih51-l3o4); border-top:1px solid var(--g2ei-hvoi);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.x57m{
  flex:1; padding:10px 14px; border:1px solid var(--g2ei-hvoi); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--bp3-nzgj);
  background:var(--logzy-w5); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.x57m:focus{ border-color:var(--hugg-sp); }
.x57m::placeholder{ color:var(--wqj-v1gd); }
.x57m.gm4q{ border-color:#c00; }
.hnzt{
  width:40px; height:40px; min-width:40px; border:none; background:var(--hugg-sp); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.hnzt:disabled{ opacity:.5; cursor:not-allowed; }
.hnzt:not(:disabled):hover{ transform:scale(1.05); }
.hnzt:not(:disabled):active{ transform:scale(0.95); }
.hnzt:focus{ outline:2px solid var(--hugg-sp); outline-offset:2px; }
.hnzt svg{ width:20px; height:20px; }

/* Character Counter */
.cp0xkd{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wqj-v1gd); }
.cp0xkd.gl2d7{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.kqtlu{
  align-self:flex-start;
  max-width:75%;
  background: var(--hqih51-l3o4);
  color: var(--bp3-nzgj);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--ide-m9ug);
}
.jp3c{ display:flex; flex-wrap:wrap; gap:8px; }

/* Solid pill buttons */
.lzukzc{
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 14px; border-radius:999px;
  background: var(--hugg-sp); color:#fff; border:1px solid transparent;
  font-size:13px; line-height:1; text-decoration:none;
  box-shadow: var(--ide-m9ug);
  transition: transform .08s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.lzukzc:link, .lzukzc:visited{ color:#fff; }
.lzukzc:hover{ transform:translateY(-1px); box-shadow: var(--yqj-olg); }
.lzukzc:active{ transform:translateY(0); }
.lzukzc:focus-visible{ outline:2px solid var(--hugg-sp); outline-offset:2px; }

/* Optional outline variant */
.lzukzc.gmbwn{
  background: transparent; color: var(--bp3-nzgj); border-color: var(--g2ei-hvoi);
}
.lzukzc.gmbwn:hover{
  background: var(--hugg-sp); color:#fff; border-color: var(--hugg-sp);
}

/* Mobile */
@media (max-width: 768px){
  .or5g46{ bottom:16px; right:16px; }
  .or5g46.lhft{ left:16px; }
  .h291qu{ --lcyj10-kh3:60px; }
  .len4rs{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--mj1-ytl) var(--mj1-ytl) 0 0; transform: translateY(100%);
  }
  .len4rs.u5yux4{ transform: translateY(0); }
  .d6e2{ padding:20px; }
  .gd07{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

/* High Contrast */
@media (prefers-contrast: high){ .h291qu, .len4rs{ border:2px solid currentColor; } }

/* Focus Visible */
.or5g46 :focus-visible{ outline:2px solid var(--hugg-sp); outline-offset:2px; }

/* SR-only */
.owbntd{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0;
}

/* Hidden */
.ccub60{ display:none !important; }
