/* CSS Variables */
:root {
  --etis-ig: #4f46e5;
  --y2r-z7a: #ffffff;
  --rg72-kmd: #f9fafb;
  --cb2fd-uxpe: #0f172a;
  --dlt-zbd: #6b7280;
  --a3zxuw-dvep: #e5e7eb;
  --c6ccjy-li: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --m5k9l-tl: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qpvm-pkms: 16px;
  --zmhx-dt: 56px;
  --zbuld-ooy: 12px;
  --gipqbo-sow: 999999;
}

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

/* Main Container */
.v27Z1g {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gipqbo-sow);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--cb2fd-uxpe);
}
.v27Z1g.hnghN3lu { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.h0quV51y { display: flex; flex-direction: column-reverse; gap: var(--zbuld-ooy); align-items: center; }
.rviHnv {
  width: var(--zmhx-dt); height: var(--zmhx-dt); min-width: var(--zmhx-dt); min-height: var(--zmhx-dt);
  border-radius: 50%; border: none; background: var(--etis-ig); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--c6ccjy-li);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.rviHnv:hover { transform: scale(1.05); box-shadow: var(--m5k9l-tl); }
.rviHnv:active { transform: scale(0.95); }
.rviHnv:focus { outline: 2px solid var(--etis-ig); outline-offset: 2px; }
.rviHnv svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .rviHnv.urhUm8{ animation:none; }
  .rviHnv,.s28E1pa,.sn6R1k{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.s28E1pa{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--y2r-z7a); border-radius: var(--qpvm-pkms); box-shadow: var(--m5k9l-tl);
  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;
}
.v27Z1g.hnghN3lu .s28E1pa{ right:auto; left:24px; }
.s28E1pa.v7vSr9{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.xwzhVbfq{
  padding:16px 20px; background:var(--y2r-z7a); border-bottom:1px solid var(--a3zxuw-dvep);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.v1jMo4y{ width:10px; height:10px; border-radius:50%; background:var(--etis-ig); flex-shrink:0; }
.g8oQ5g{ flex:1; min-width:0; }
.v3xjM1pe{ font-size:16px; font-weight:600; color:var(--cb2fd-uxpe); margin:0 0 2px 0; }
.qhmG9d{ font-size:13px; color:var(--dlt-zbd); margin:0; }
.jdaaPias{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--dlt-zbd);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jdaaPias:hover{ background:var(--rg72-kmd); color:var(--cb2fd-uxpe); }
.jdaaPias:focus{ outline:2px solid var(--etis-ig); outline-offset:2px; }
.jdaaPias svg{ width:20px; height:20px; }

/* Body */
.ajo7Cmkn{
  flex:1; overflow-y:auto; padding:16px; background:var(--rg72-kmd);
  display:flex; flex-direction:column; gap:12px;
}
.ajo7Cmkn::-webkit-scrollbar{ width:6px; }
.ajo7Cmkn::-webkit-scrollbar-track{ background:transparent; }
.ajo7Cmkn::-webkit-scrollbar-thumb{ background:var(--a3zxuw-dvep); border-radius:3px; }
.ajo7Cmkn::-webkit-scrollbar-thumb:hover{ background:var(--dlt-zbd); }

/* Messages */
.sn6R1k{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.sn6R1k.qdXqj{ flex-direction:row-reverse; }
.pskGxm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pskGxm a{ color:inherit; }
.sn6R1k.lezOqww .pskGxm{ background:var(--y2r-z7a); color:var(--cb2fd-uxpe); border-bottom-left-radius:4px; }
.sn6R1k.qdXqj .pskGxm{ background:var(--etis-ig); color:#fff; border-bottom-right-radius:4px; }
.nxzR6e{ font-size:11px; color:var(--dlt-zbd); margin-top:4px; display:block; }

/* Typing Indicator */
.qj9Vz2w{
  display:flex; gap:8px; padding:10px 14px; background:var(--y2r-z7a);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.e9Czs{ width:8px; height:8px; border-radius:50%; background:var(--dlt-zbd); animation:typingDot 1.4s infinite; }
.e9Czs:nth-child(2){ animation-delay:.2s; }
.e9Czs: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) */
.gnfQmw{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.xfU7q{
  border:0; border-radius:999px; padding:8px 12px; background:var(--etis-ig); 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(--c6ccjy-li);
}
.xfU7q:is(:hover,:focus){ transform:translateY(-1px); }
a.xfU7q{ text-decoration:none; display:inline-block; }
a.xfU7q:link, a.xfU7q:visited{ color:#fff; }
a.xfU7q:hover, a.xfU7q:focus{ color:#fff; }

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

/* Footer */
.ojV3p{
  padding:16px; background:var(--y2r-z7a); border-top:1px solid var(--a3zxuw-dvep);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xuwPz6{
  flex:1; padding:10px 14px; border:1px solid var(--a3zxuw-dvep); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--cb2fd-uxpe);
  background:var(--rg72-kmd); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xuwPz6:focus{ border-color:var(--etis-ig); }
.xuwPz6::placeholder{ color:var(--dlt-zbd); }
.xuwPz6.vz5Lrdn{ border-color:#c00; }
.ozwDyf{
  width:40px; height:40px; min-width:40px; border:none; background:var(--etis-ig); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ozwDyf:disabled{ opacity:.5; cursor:not-allowed; }
.ozwDyf:not(:disabled):hover{ transform:scale(1.05); }
.ozwDyf:not(:disabled):active{ transform:scale(0.95); }
.ozwDyf:focus{ outline:2px solid var(--etis-ig); outline-offset:2px; }
.ozwDyf svg{ width:20px; height:20px; }

/* Character Counter */
.wo1Yac2{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--dlt-zbd); }
.wo1Yac2.s0oqEh19{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.kk9Md7s{
  align-self:flex-start;
  max-width:75%;
  background: var(--y2r-z7a);
  color: var(--cb2fd-uxpe);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--c6ccjy-li);
}
.y4Yjk{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jthBjqq.zthOcr{
  background: transparent; color: var(--cb2fd-uxpe); border-color: var(--a3zxuw-dvep);
}
.jthBjqq.zthOcr:hover{
  background: var(--etis-ig); color:#fff; border-color: var(--etis-ig);
}

/* Mobile */
@media (max-width: 768px){
  .v27Z1g{ bottom:16px; right:16px; }
  .v27Z1g.hnghN3lu{ left:16px; }
  .rviHnv{ --zmhx-dt:60px; }
  .s28E1pa{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qpvm-pkms) var(--qpvm-pkms) 0 0; transform: translateY(100%);
  }
  .s28E1pa.v7vSr9{ transform: translateY(0); }
  .xwzhVbfq{ padding:20px; }
  .ojV3p{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.v27Z1g :focus-visible{ outline:2px solid var(--etis-ig); outline-offset:2px; }

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