/* CSS Variables */
:root {
  --e2ly8-ncr: #4f46e5;
  --wovv-tk6u: #ffffff;
  --rv920-yab: #f9fafb;
  --y710q7-jj: #0f172a;
  --c8efan-miwt: #6b7280;
  --sbeg-tbu: #e5e7eb;
  --btfl76-t1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --hvn168-jhm: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bc2n-ht: 16px;
  --cxi-ee: 56px;
  --kwtbs-pc7: 12px;
  --hna94-zrp: 999999;
}

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

/* Main Container */
.n5oB4c {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--hna94-zrp);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--y710q7-jj);
}
.n5oB4c.op4Hd5b { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wbAwe { display: flex; flex-direction: column-reverse; gap: var(--kwtbs-pc7); align-items: center; }
.aaRod {
  width: var(--cxi-ee); height: var(--cxi-ee); min-width: var(--cxi-ee); min-height: var(--cxi-ee);
  border-radius: 50%; border: none; background: var(--e2ly8-ncr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--btfl76-t1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.aaRod:hover { transform: scale(1.05); box-shadow: var(--hvn168-jhm); }
.aaRod:active { transform: scale(0.95); }
.aaRod:focus { outline: 2px solid var(--e2ly8-ncr); outline-offset: 2px; }
.aaRod svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .aaRod.p8aoBd57{ animation:none; }
  .aaRod,.w63A75,.criBt6{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.w63A75{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--wovv-tk6u); border-radius: var(--bc2n-ht); box-shadow: var(--hvn168-jhm);
  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;
}
.n5oB4c.op4Hd5b .w63A75{ right:auto; left:24px; }
.w63A75.d2gtHck2{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.akYyx{
  padding:16px 20px; background:var(--wovv-tk6u); border-bottom:1px solid var(--sbeg-tbu);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.k55N1kg{ width:10px; height:10px; border-radius:50%; background:var(--e2ly8-ncr); flex-shrink:0; }
.vkFug{ flex:1; min-width:0; }
.o42Yxg{ font-size:16px; font-weight:600; color:var(--y710q7-jj); margin:0 0 2px 0; }
.jlT2q{ font-size:13px; color:var(--c8efan-miwt); margin:0; }
.yccyE8fy{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--c8efan-miwt);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.yccyE8fy:hover{ background:var(--rv920-yab); color:var(--y710q7-jj); }
.yccyE8fy:focus{ outline:2px solid var(--e2ly8-ncr); outline-offset:2px; }
.yccyE8fy svg{ width:20px; height:20px; }

/* Body */
.oubOov{
  flex:1; overflow-y:auto; padding:16px; background:var(--rv920-yab);
  display:flex; flex-direction:column; gap:12px;
}
.oubOov::-webkit-scrollbar{ width:6px; }
.oubOov::-webkit-scrollbar-track{ background:transparent; }
.oubOov::-webkit-scrollbar-thumb{ background:var(--sbeg-tbu); border-radius:3px; }
.oubOov::-webkit-scrollbar-thumb:hover{ background:var(--c8efan-miwt); }

/* Messages */
.criBt6{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.criBt6.cfazS735{ flex-direction:row-reverse; }
.glbmPzbn{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.glbmPzbn a{ color:inherit; }
.criBt6.p5wsB2du .glbmPzbn{ background:var(--wovv-tk6u); color:var(--y710q7-jj); border-bottom-left-radius:4px; }
.criBt6.cfazS735 .glbmPzbn{ background:var(--e2ly8-ncr); color:#fff; border-bottom-right-radius:4px; }
.epzsZ8zg{ font-size:11px; color:var(--c8efan-miwt); margin-top:4px; display:block; }

/* Typing Indicator */
.q14Y7bk{
  display:flex; gap:8px; padding:10px 14px; background:var(--wovv-tk6u);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.dnjoFgvo{ width:8px; height:8px; border-radius:50%; background:var(--c8efan-miwt); animation:typingDot 1.4s infinite; }
.dnjoFgvo:nth-child(2){ animation-delay:.2s; }
.dnjoFgvo: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) */
.rdwxB4yr{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.gfwUvt{
  border:0; border-radius:999px; padding:8px 12px; background:var(--e2ly8-ncr); 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(--btfl76-t1);
}
.gfwUvt:is(:hover,:focus){ transform:translateY(-1px); }
a.gfwUvt{ text-decoration:none; display:inline-block; }
a.gfwUvt:link, a.gfwUvt:visited{ color:#fff; }
a.gfwUvt:hover, a.gfwUvt:focus{ color:#fff; }

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

/* Footer */
.vf9tTr27{
  padding:16px; background:var(--wovv-tk6u); border-top:1px solid var(--sbeg-tbu);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.c5mxMnvg{
  flex:1; padding:10px 14px; border:1px solid var(--sbeg-tbu); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--y710q7-jj);
  background:var(--rv920-yab); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.c5mxMnvg:focus{ border-color:var(--e2ly8-ncr); }
.c5mxMnvg::placeholder{ color:var(--c8efan-miwt); }
.c5mxMnvg.s54Ba1{ border-color:#c00; }
.ht1Gqfv{
  width:40px; height:40px; min-width:40px; border:none; background:var(--e2ly8-ncr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ht1Gqfv:disabled{ opacity:.5; cursor:not-allowed; }
.ht1Gqfv:not(:disabled):hover{ transform:scale(1.05); }
.ht1Gqfv:not(:disabled):active{ transform:scale(0.95); }
.ht1Gqfv:focus{ outline:2px solid var(--e2ly8-ncr); outline-offset:2px; }
.ht1Gqfv svg{ width:20px; height:20px; }

/* Character Counter */
.leZyj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--c8efan-miwt); }
.leZyj.k74L3es{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.hhYrv{
  align-self:flex-start;
  max-width:75%;
  background: var(--wovv-tk6u);
  color: var(--y710q7-jj);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--btfl76-t1);
}
.n09xLjbf{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.uzt0Q5as.ub0St5{
  background: transparent; color: var(--y710q7-jj); border-color: var(--sbeg-tbu);
}
.uzt0Q5as.ub0St5:hover{
  background: var(--e2ly8-ncr); color:#fff; border-color: var(--e2ly8-ncr);
}

/* Mobile */
@media (max-width: 768px){
  .n5oB4c{ bottom:16px; right:16px; }
  .n5oB4c.op4Hd5b{ left:16px; }
  .aaRod{ --cxi-ee:60px; }
  .w63A75{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bc2n-ht) var(--bc2n-ht) 0 0; transform: translateY(100%);
  }
  .w63A75.d2gtHck2{ transform: translateY(0); }
  .akYyx{ padding:20px; }
  .vf9tTr27{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.n5oB4c :focus-visible{ outline:2px solid var(--e2ly8-ncr); outline-offset:2px; }

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