/* CSS Variables */
:root {
  --yy8ezy-hmrk: #4f46e5;
  --stnx-qyp: #ffffff;
  --z58a-js: #f9fafb;
  --pj1m7x-i48: #0f172a;
  --xbt-f3s: #6b7280;
  --bfse-jim: #e5e7eb;
  --eysuoz-wl: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --j5x4-xisa: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --i9u3-kb: 16px;
  --udj-up: 56px;
  --old9-lb9: 12px;
  --k55o-dv: 999999;
}

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

/* Main Container */
.i1eahwih5ehjnk {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--k55o-dv);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--pj1m7x-i48);
}
.i1eahwih5ehjnk.xtc1l2-qgbptz777h { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.ay8fy1pdys9sbd1 { display: flex; flex-direction: column-reverse; gap: var(--old9-lb9); align-items: center; }
.svs8lxlhj0awd8wea {
  width: var(--udj-up); height: var(--udj-up); min-width: var(--udj-up); min-height: var(--udj-up);
  border-radius: 50%; border: none; background: var(--yy8ezy-hmrk); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--eysuoz-wl);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.svs8lxlhj0awd8wea:hover { transform: scale(1.05); box-shadow: var(--j5x4-xisa); }
.svs8lxlhj0awd8wea:active { transform: scale(0.95); }
.svs8lxlhj0awd8wea:focus { outline: 2px solid var(--yy8ezy-hmrk); outline-offset: 2px; }
.svs8lxlhj0awd8wea svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .svs8lxlhj0awd8wea.iqiwbynx3rb0ui7n{ animation:none; }
  .svs8lxlhj0awd8wea,.h3vfsfqyfopecb7,.ecqnr-brjynboqyj-l{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.h3vfsfqyfopecb7{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--stnx-qyp); border-radius: var(--i9u3-kb); box-shadow: var(--j5x4-xisa);
  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;
}
.i1eahwih5ehjnk.xtc1l2-qgbptz777h .h3vfsfqyfopecb7{ right:auto; left:24px; }
.h3vfsfqyfopecb7.h8w02hym02iubt{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.r3seenfw4cb777{
  padding:16px 20px; background:var(--stnx-qyp); border-bottom:1px solid var(--bfse-jim);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mbjyv439s0o8ii{ width:10px; height:10px; border-radius:50%; background:var(--yy8ezy-hmrk); flex-shrink:0; }
.dknkaxo35ll0y19{ flex:1; min-width:0; }
.fbcefdl9amedyq0{ font-size:16px; font-weight:600; color:var(--pj1m7x-i48); margin:0 0 2px 0; }
.ve-fgszjr8lbw50ebz{ font-size:13px; color:var(--xbt-f3s); margin:0; }
.crjdf48iyuvvu4{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xbt-f3s);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.crjdf48iyuvvu4:hover{ background:var(--z58a-js); color:var(--pj1m7x-i48); }
.crjdf48iyuvvu4:focus{ outline:2px solid var(--yy8ezy-hmrk); outline-offset:2px; }
.crjdf48iyuvvu4 svg{ width:20px; height:20px; }

/* Body */
.uvnvhpu1qm3zy3b{
  flex:1; overflow-y:auto; padding:16px; background:var(--z58a-js);
  display:flex; flex-direction:column; gap:12px;
}
.uvnvhpu1qm3zy3b::-webkit-scrollbar{ width:6px; }
.uvnvhpu1qm3zy3b::-webkit-scrollbar-track{ background:transparent; }
.uvnvhpu1qm3zy3b::-webkit-scrollbar-thumb{ background:var(--bfse-jim); border-radius:3px; }
.uvnvhpu1qm3zy3b::-webkit-scrollbar-thumb:hover{ background:var(--xbt-f3s); }

/* Messages */
.ecqnr-brjynboqyj-l{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ecqnr-brjynboqyj-l.etipd0v9a2w46c{ flex-direction:row-reverse; }
.qn8ay7rirr4a0u{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.qn8ay7rirr4a0u a{ color:inherit; }
.ecqnr-brjynboqyj-l.yszoio3ccfe6w2 .qn8ay7rirr4a0u{ background:var(--stnx-qyp); color:var(--pj1m7x-i48); border-bottom-left-radius:4px; }
.ecqnr-brjynboqyj-l.etipd0v9a2w46c .qn8ay7rirr4a0u{ background:var(--yy8ezy-hmrk); color:#fff; border-bottom-right-radius:4px; }
.ck18s3pdbf3j2gcd{ font-size:11px; color:var(--xbt-f3s); margin-top:4px; display:block; }

/* Typing Indicator */
.mhreksett8hf7w5o{
  display:flex; gap:8px; padding:10px 14px; background:var(--stnx-qyp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.y2bmmiqq8uputyx2{ width:8px; height:8px; border-radius:50%; background:var(--xbt-f3s); animation:typingDot 1.4s infinite; }
.y2bmmiqq8uputyx2:nth-child(2){ animation-delay:.2s; }
.y2bmmiqq8uputyx2: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) */
.q4j1ub5k828esupqw{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.g5waxg9nb-f0xiz{
  border:0; border-radius:999px; padding:8px 12px; background:var(--yy8ezy-hmrk); 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(--eysuoz-wl);
}
.g5waxg9nb-f0xiz:is(:hover,:focus){ transform:translateY(-1px); }
a.g5waxg9nb-f0xiz{ text-decoration:none; display:inline-block; }
a.g5waxg9nb-f0xiz:link, a.g5waxg9nb-f0xiz:visited{ color:#fff; }
a.g5waxg9nb-f0xiz:hover, a.g5waxg9nb-f0xiz:focus{ color:#fff; }

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

/* Footer */
.oq5sg5e5hautrlj1{
  padding:16px; background:var(--stnx-qyp); border-top:1px solid var(--bfse-jim);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.bqu0rn5x93ektq1{
  flex:1; padding:10px 14px; border:1px solid var(--bfse-jim); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--pj1m7x-i48);
  background:var(--z58a-js); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.bqu0rn5x93ektq1:focus{ border-color:var(--yy8ezy-hmrk); }
.bqu0rn5x93ektq1::placeholder{ color:var(--xbt-f3s); }
.bqu0rn5x93ektq1.zdbhnqsx3h-ch-v{ border-color:#c00; }
.jl9utulr116lngvulk{
  width:40px; height:40px; min-width:40px; border:none; background:var(--yy8ezy-hmrk); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jl9utulr116lngvulk:disabled{ opacity:.5; cursor:not-allowed; }
.jl9utulr116lngvulk:not(:disabled):hover{ transform:scale(1.05); }
.jl9utulr116lngvulk:not(:disabled):active{ transform:scale(0.95); }
.jl9utulr116lngvulk:focus{ outline:2px solid var(--yy8ezy-hmrk); outline-offset:2px; }
.jl9utulr116lngvulk svg{ width:20px; height:20px; }

/* Character Counter */
.mbby0cvbwiyx68wkie{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xbt-f3s); }
.mbby0cvbwiyx68wkie.hl-vz75wxdlsynm{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ybrg9fz-mei39pzevh{
  align-self:flex-start;
  max-width:75%;
  background: var(--stnx-qyp);
  color: var(--pj1m7x-i48);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--eysuoz-wl);
}
.fv346szmw4n2432z5{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.waw19r-ljdmgwno.pf9yw8mw7ebcv2g5ep{
  background: transparent; color: var(--pj1m7x-i48); border-color: var(--bfse-jim);
}
.waw19r-ljdmgwno.pf9yw8mw7ebcv2g5ep:hover{
  background: var(--yy8ezy-hmrk); color:#fff; border-color: var(--yy8ezy-hmrk);
}

/* Mobile */
@media (max-width: 768px){
  .i1eahwih5ehjnk{ bottom:16px; right:16px; }
  .i1eahwih5ehjnk.xtc1l2-qgbptz777h{ left:16px; }
  .svs8lxlhj0awd8wea{ --udj-up:60px; }
  .h3vfsfqyfopecb7{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--i9u3-kb) var(--i9u3-kb) 0 0; transform: translateY(100%);
  }
  .h3vfsfqyfopecb7.h8w02hym02iubt{ transform: translateY(0); }
  .r3seenfw4cb777{ padding:20px; }
  .oq5sg5e5hautrlj1{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.i1eahwih5ehjnk :focus-visible{ outline:2px solid var(--yy8ezy-hmrk); outline-offset:2px; }

/* SR-only */
.z2c8exp-1ycjml{
  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 */
.hjxl5ah781y60i{ display:none !important; }
