/* CSS Variables */
:root {
  --hai-hbj6: #4f46e5;
  --lty-ydmb: #ffffff;
  --e3fv2-vjre: #f9fafb;
  --q49rj-l0f9: #0f172a;
  --qcw-htc: #6b7280;
  --xa1o-rgh8: #e5e7eb;
  --q05j-fv: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --r2x-hlf: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --m1sxj-rxn: 16px;
  --bxsocj-tkd4: 56px;
  --qzco8-nvsw: 12px;
  --a9zzi-x0: 999999;
}

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

/* Main Container */
.nhnz0 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--a9zzi-x0);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--q49rj-l0f9);
}
.nhnz0.wzq2 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.yg6ud { display: flex; flex-direction: column-reverse; gap: var(--qzco8-nvsw); align-items: center; }
.w2g8zp {
  width: var(--bxsocj-tkd4); height: var(--bxsocj-tkd4); min-width: var(--bxsocj-tkd4); min-height: var(--bxsocj-tkd4);
  border-radius: 50%; border: none; background: var(--hai-hbj6); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--q05j-fv);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.w2g8zp:hover { transform: scale(1.05); box-shadow: var(--r2x-hlf); }
.w2g8zp:active { transform: scale(0.95); }
.w2g8zp:focus { outline: 2px solid var(--hai-hbj6); outline-offset: 2px; }
.w2g8zp svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .w2g8zp.vgbrz4{ animation:none; }
  .w2g8zp,.xbavgh,.uo39o{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.xbavgh{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--lty-ydmb); border-radius: var(--m1sxj-rxn); box-shadow: var(--r2x-hlf);
  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;
}
.nhnz0.wzq2 .xbavgh{ right:auto; left:24px; }
.xbavgh.twox9{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.kutllo{
  padding:16px 20px; background:var(--lty-ydmb); border-bottom:1px solid var(--xa1o-rgh8);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.eufx{ width:10px; height:10px; border-radius:50%; background:var(--hai-hbj6); flex-shrink:0; }
.bn28gr{ flex:1; min-width:0; }
.cmomgw{ font-size:16px; font-weight:600; color:var(--q49rj-l0f9); margin:0 0 2px 0; }
.w0vr{ font-size:13px; color:var(--qcw-htc); margin:0; }
.kncb41{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--qcw-htc);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.kncb41:hover{ background:var(--e3fv2-vjre); color:var(--q49rj-l0f9); }
.kncb41:focus{ outline:2px solid var(--hai-hbj6); outline-offset:2px; }
.kncb41 svg{ width:20px; height:20px; }

/* Body */
.qtni2{
  flex:1; overflow-y:auto; padding:16px; background:var(--e3fv2-vjre);
  display:flex; flex-direction:column; gap:12px;
}
.qtni2::-webkit-scrollbar{ width:6px; }
.qtni2::-webkit-scrollbar-track{ background:transparent; }
.qtni2::-webkit-scrollbar-thumb{ background:var(--xa1o-rgh8); border-radius:3px; }
.qtni2::-webkit-scrollbar-thumb:hover{ background:var(--qcw-htc); }

/* Messages */
.uo39o{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.uo39o.e3cv7{ flex-direction:row-reverse; }
.efa1{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.efa1 a{ color:inherit; }
.uo39o.ihoo1h .efa1{ background:var(--lty-ydmb); color:var(--q49rj-l0f9); border-bottom-left-radius:4px; }
.uo39o.e3cv7 .efa1{ background:var(--hai-hbj6); color:#fff; border-bottom-right-radius:4px; }
.crb5{ font-size:11px; color:var(--qcw-htc); margin-top:4px; display:block; }

/* Typing Indicator */
.q5bu{
  display:flex; gap:8px; padding:10px 14px; background:var(--lty-ydmb);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.i46ki{ width:8px; height:8px; border-radius:50%; background:var(--qcw-htc); animation:typingDot 1.4s infinite; }
.i46ki:nth-child(2){ animation-delay:.2s; }
.i46ki: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) */
.ilvf{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.nlep{
  border:0; border-radius:999px; padding:8px 12px; background:var(--hai-hbj6); 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(--q05j-fv);
}
.nlep:is(:hover,:focus){ transform:translateY(-1px); }
a.nlep{ text-decoration:none; display:inline-block; }
a.nlep:link, a.nlep:visited{ color:#fff; }
a.nlep:hover, a.nlep:focus{ color:#fff; }

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

/* Footer */
.rs9mfi{
  padding:16px; background:var(--lty-ydmb); border-top:1px solid var(--xa1o-rgh8);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.f1fn{
  flex:1; padding:10px 14px; border:1px solid var(--xa1o-rgh8); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--q49rj-l0f9);
  background:var(--e3fv2-vjre); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.f1fn:focus{ border-color:var(--hai-hbj6); }
.f1fn::placeholder{ color:var(--qcw-htc); }
.f1fn.uhvgta{ border-color:#c00; }
.ybq604{
  width:40px; height:40px; min-width:40px; border:none; background:var(--hai-hbj6); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ybq604:disabled{ opacity:.5; cursor:not-allowed; }
.ybq604:not(:disabled):hover{ transform:scale(1.05); }
.ybq604:not(:disabled):active{ transform:scale(0.95); }
.ybq604:focus{ outline:2px solid var(--hai-hbj6); outline-offset:2px; }
.ybq604 svg{ width:20px; height:20px; }

/* Character Counter */
.fx2a{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--qcw-htc); }
.fx2a.gdvku{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.uxhk7h{
  align-self:flex-start;
  max-width:75%;
  background: var(--lty-ydmb);
  color: var(--q49rj-l0f9);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--q05j-fv);
}
.vue1{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.y0f8.mjy5{
  background: transparent; color: var(--q49rj-l0f9); border-color: var(--xa1o-rgh8);
}
.y0f8.mjy5:hover{
  background: var(--hai-hbj6); color:#fff; border-color: var(--hai-hbj6);
}

/* Mobile */
@media (max-width: 768px){
  .nhnz0{ bottom:16px; right:16px; }
  .nhnz0.wzq2{ left:16px; }
  .w2g8zp{ --bxsocj-tkd4:60px; }
  .xbavgh{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--m1sxj-rxn) var(--m1sxj-rxn) 0 0; transform: translateY(100%);
  }
  .xbavgh.twox9{ transform: translateY(0); }
  .kutllo{ padding:20px; }
  .rs9mfi{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.nhnz0 :focus-visible{ outline:2px solid var(--hai-hbj6); outline-offset:2px; }

/* SR-only */
.er22{
  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 */
.t74qod{ display:none !important; }
