/* CSS Variables */
:root {
  --r8p-mtz0: #4f46e5;
  --klc7-eh1r: #ffffff;
  --rte-qxn: #f9fafb;
  --sgg7-bju: #0f172a;
  --ta75g-aya: #6b7280;
  --tkym3-hvl: #e5e7eb;
  --wze-xf3: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --rfs-j8h: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --d2h0-jn: 16px;
  --smlzom-dfg: 56px;
  --m7k-mry: 12px;
  --bip46j-bsdx: 999999;
}

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

/* Main Container */
.yp5tkx2496i7gk {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bip46j-bsdx);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--sgg7-bju);
}
.yp5tkx2496i7gk.bvx4zpaixzh82rpck { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.yjaw2ntxexfwep { display: flex; flex-direction: column-reverse; gap: var(--m7k-mry); align-items: center; }
.my2n79d-luktoked1 {
  width: var(--smlzom-dfg); height: var(--smlzom-dfg); min-width: var(--smlzom-dfg); min-height: var(--smlzom-dfg);
  border-radius: 50%; border: none; background: var(--r8p-mtz0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--wze-xf3);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.my2n79d-luktoked1:hover { transform: scale(1.05); box-shadow: var(--rfs-j8h); }
.my2n79d-luktoked1:active { transform: scale(0.95); }
.my2n79d-luktoked1:focus { outline: 2px solid var(--r8p-mtz0); outline-offset: 2px; }
.my2n79d-luktoked1 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .my2n79d-luktoked1.rkzc0fjmn49hn13-2w{ animation:none; }
  .my2n79d-luktoked1,.o85i55ma9kveees,.sq31qr3s4q8rhf2egw{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.o85i55ma9kveees{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--klc7-eh1r); border-radius: var(--d2h0-jn); box-shadow: var(--rfs-j8h);
  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;
}
.yp5tkx2496i7gk.bvx4zpaixzh82rpck .o85i55ma9kveees{ right:auto; left:24px; }
.o85i55ma9kveees.uptvas4mm0qav5z{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.e7yn2osf94pr-xq8y{
  padding:16px 20px; background:var(--klc7-eh1r); border-bottom:1px solid var(--tkym3-hvl);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.v2gx11vxg6j6iik{ width:10px; height:10px; border-radius:50%; background:var(--r8p-mtz0); flex-shrink:0; }
.t627alas86nset{ flex:1; min-width:0; }
.akadikb6an29q8wpd0{ font-size:16px; font-weight:600; color:var(--sgg7-bju); margin:0 0 2px 0; }
.iki-6tvefbsnwat4a{ font-size:13px; color:var(--ta75g-aya); margin:0; }
.xn0w3fd95kcjhg174k{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ta75g-aya);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.xn0w3fd95kcjhg174k:hover{ background:var(--rte-qxn); color:var(--sgg7-bju); }
.xn0w3fd95kcjhg174k:focus{ outline:2px solid var(--r8p-mtz0); outline-offset:2px; }
.xn0w3fd95kcjhg174k svg{ width:20px; height:20px; }

/* Body */
.i1nj52sa3yym612x35{
  flex:1; overflow-y:auto; padding:16px; background:var(--rte-qxn);
  display:flex; flex-direction:column; gap:12px;
}
.i1nj52sa3yym612x35::-webkit-scrollbar{ width:6px; }
.i1nj52sa3yym612x35::-webkit-scrollbar-track{ background:transparent; }
.i1nj52sa3yym612x35::-webkit-scrollbar-thumb{ background:var(--tkym3-hvl); border-radius:3px; }
.i1nj52sa3yym612x35::-webkit-scrollbar-thumb:hover{ background:var(--ta75g-aya); }

/* Messages */
.sq31qr3s4q8rhf2egw{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.sq31qr3s4q8rhf2egw.tx4oy82viwwnb3{ flex-direction:row-reverse; }
.m2p-psr100ycs1jar{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.m2p-psr100ycs1jar a{ color:inherit; }
.sq31qr3s4q8rhf2egw.binx-utp3t-vld3yl .m2p-psr100ycs1jar{ background:var(--klc7-eh1r); color:var(--sgg7-bju); border-bottom-left-radius:4px; }
.sq31qr3s4q8rhf2egw.tx4oy82viwwnb3 .m2p-psr100ycs1jar{ background:var(--r8p-mtz0); color:#fff; border-bottom-right-radius:4px; }
.opjo0-eqsq5ljg{ font-size:11px; color:var(--ta75g-aya); margin-top:4px; display:block; }

/* Typing Indicator */
.e0tj0j5mqdubqnogej{
  display:flex; gap:8px; padding:10px 14px; background:var(--klc7-eh1r);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ugsmxli1b1j5wgo{ width:8px; height:8px; border-radius:50%; background:var(--ta75g-aya); animation:typingDot 1.4s infinite; }
.ugsmxli1b1j5wgo:nth-child(2){ animation-delay:.2s; }
.ugsmxli1b1j5wgo: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) */
.ha7mnkg8q0vc0qb{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.zrqq7put4b866fjsm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--r8p-mtz0); 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(--wze-xf3);
}
.zrqq7put4b866fjsm:is(:hover,:focus){ transform:translateY(-1px); }
a.zrqq7put4b866fjsm{ text-decoration:none; display:inline-block; }
a.zrqq7put4b866fjsm:link, a.zrqq7put4b866fjsm:visited{ color:#fff; }
a.zrqq7put4b866fjsm:hover, a.zrqq7put4b866fjsm:focus{ color:#fff; }

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

/* Footer */
.ag9126qfledx5xd{
  padding:16px; background:var(--klc7-eh1r); border-top:1px solid var(--tkym3-hvl);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ljai3hlhjxh6ws45o{
  flex:1; padding:10px 14px; border:1px solid var(--tkym3-hvl); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--sgg7-bju);
  background:var(--rte-qxn); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ljai3hlhjxh6ws45o:focus{ border-color:var(--r8p-mtz0); }
.ljai3hlhjxh6ws45o::placeholder{ color:var(--ta75g-aya); }
.ljai3hlhjxh6ws45o.rbnhtiyc3k3nt067l9{ border-color:#c00; }
.ylk40s559sqegr5r5{
  width:40px; height:40px; min-width:40px; border:none; background:var(--r8p-mtz0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ylk40s559sqegr5r5:disabled{ opacity:.5; cursor:not-allowed; }
.ylk40s559sqegr5r5:not(:disabled):hover{ transform:scale(1.05); }
.ylk40s559sqegr5r5:not(:disabled):active{ transform:scale(0.95); }
.ylk40s559sqegr5r5:focus{ outline:2px solid var(--r8p-mtz0); outline-offset:2px; }
.ylk40s559sqegr5r5 svg{ width:20px; height:20px; }

/* Character Counter */
.e6mjy-ou015lou{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ta75g-aya); }
.e6mjy-ou015lou.y2stko4zil903az4bw{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ku-k9n7ercpb2znnc{
  align-self:flex-start;
  max-width:75%;
  background: var(--klc7-eh1r);
  color: var(--sgg7-bju);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--wze-xf3);
}
.bis7n68yaty8iw{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.z9iz0h8qika3l2fr.l5upjmla1xqjqki-t{
  background: transparent; color: var(--sgg7-bju); border-color: var(--tkym3-hvl);
}
.z9iz0h8qika3l2fr.l5upjmla1xqjqki-t:hover{
  background: var(--r8p-mtz0); color:#fff; border-color: var(--r8p-mtz0);
}

/* Mobile */
@media (max-width: 768px){
  .yp5tkx2496i7gk{ bottom:16px; right:16px; }
  .yp5tkx2496i7gk.bvx4zpaixzh82rpck{ left:16px; }
  .my2n79d-luktoked1{ --smlzom-dfg:60px; }
  .o85i55ma9kveees{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--d2h0-jn) var(--d2h0-jn) 0 0; transform: translateY(100%);
  }
  .o85i55ma9kveees.uptvas4mm0qav5z{ transform: translateY(0); }
  .e7yn2osf94pr-xq8y{ padding:20px; }
  .ag9126qfledx5xd{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.yp5tkx2496i7gk :focus-visible{ outline:2px solid var(--r8p-mtz0); outline-offset:2px; }

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