/* CSS Variables */
:root {
  --wfd5f3-l1: #4f46e5;
  --sf6b-ivvl: #ffffff;
  --san-so: #f9fafb;
  --npqc5g-t3n: #0f172a;
  --lb9qz-g6: #6b7280;
  --vz4v-u9h8: #e5e7eb;
  --dmz5wj-zeae: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --q9l6z5-mg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --l9kvv-gg4: 16px;
  --sjhe6m-td6n: 56px;
  --t48-yqh: 12px;
  --vomfy6-c9: 999999;
}

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

/* Main Container */
.dy7H02 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--vomfy6-c9);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--npqc5g-t3n);
}
.dy7H02.cb2jGude { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xxtOjr7 { display: flex; flex-direction: column-reverse; gap: var(--t48-yqh); align-items: center; }
.qnn6Hsy4 {
  width: var(--sjhe6m-td6n); height: var(--sjhe6m-td6n); min-width: var(--sjhe6m-td6n); min-height: var(--sjhe6m-td6n);
  border-radius: 50%; border: none; background: var(--wfd5f3-l1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--dmz5wj-zeae);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.qnn6Hsy4:hover { transform: scale(1.05); box-shadow: var(--q9l6z5-mg); }
.qnn6Hsy4:active { transform: scale(0.95); }
.qnn6Hsy4:focus { outline: 2px solid var(--wfd5f3-l1); outline-offset: 2px; }
.qnn6Hsy4 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .qnn6Hsy4.jm67Bdqa{ animation:none; }
  .qnn6Hsy4,.tojwJlqm,.e9jBhy4{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.tojwJlqm{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--sf6b-ivvl); border-radius: var(--l9kvv-gg4); box-shadow: var(--q9l6z5-mg);
  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;
}
.dy7H02.cb2jGude .tojwJlqm{ right:auto; left:24px; }
.tojwJlqm.y2tVo6{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.jinL0g4{
  padding:16px 20px; background:var(--sf6b-ivvl); border-bottom:1px solid var(--vz4v-u9h8);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.zx7Woc{ width:10px; height:10px; border-radius:50%; background:var(--wfd5f3-l1); flex-shrink:0; }
.yb0fBgeh{ flex:1; min-width:0; }
.gbnlHsj8{ font-size:16px; font-weight:600; color:var(--npqc5g-t3n); margin:0 0 2px 0; }
.cidNcwv{ font-size:13px; color:var(--lb9qz-g6); margin:0; }
.bsXla{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--lb9qz-g6);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.bsXla:hover{ background:var(--san-so); color:var(--npqc5g-t3n); }
.bsXla:focus{ outline:2px solid var(--wfd5f3-l1); outline-offset:2px; }
.bsXla svg{ width:20px; height:20px; }

/* Body */
.d24Pl2{
  flex:1; overflow-y:auto; padding:16px; background:var(--san-so);
  display:flex; flex-direction:column; gap:12px;
}
.d24Pl2::-webkit-scrollbar{ width:6px; }
.d24Pl2::-webkit-scrollbar-track{ background:transparent; }
.d24Pl2::-webkit-scrollbar-thumb{ background:var(--vz4v-u9h8); border-radius:3px; }
.d24Pl2::-webkit-scrollbar-thumb:hover{ background:var(--lb9qz-g6); }

/* Messages */
.e9jBhy4{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e9jBhy4.oyN7x{ flex-direction:row-reverse; }
.exO8j{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.exO8j a{ color:inherit; }
.e9jBhy4.ay9Eo9p .exO8j{ background:var(--sf6b-ivvl); color:var(--npqc5g-t3n); border-bottom-left-radius:4px; }
.e9jBhy4.oyN7x .exO8j{ background:var(--wfd5f3-l1); color:#fff; border-bottom-right-radius:4px; }
.zt8Ktz{ font-size:11px; color:var(--lb9qz-g6); margin-top:4px; display:block; }

/* Typing Indicator */
.wwFkh{
  display:flex; gap:8px; padding:10px 14px; background:var(--sf6b-ivvl);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.kocHr4h{ width:8px; height:8px; border-radius:50%; background:var(--lb9qz-g6); animation:typingDot 1.4s infinite; }
.kocHr4h:nth-child(2){ animation-delay:.2s; }
.kocHr4h: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) */
.ln0vFmji{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.gkvCs8w{
  border:0; border-radius:999px; padding:8px 12px; background:var(--wfd5f3-l1); 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(--dmz5wj-zeae);
}
.gkvCs8w:is(:hover,:focus){ transform:translateY(-1px); }
a.gkvCs8w{ text-decoration:none; display:inline-block; }
a.gkvCs8w:link, a.gkvCs8w:visited{ color:#fff; }
a.gkvCs8w:hover, a.gkvCs8w:focus{ color:#fff; }

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

/* Footer */
.kq1Qcvb{
  padding:16px; background:var(--sf6b-ivvl); border-top:1px solid var(--vz4v-u9h8);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.asjJ2yt{
  flex:1; padding:10px 14px; border:1px solid var(--vz4v-u9h8); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--npqc5g-t3n);
  background:var(--san-so); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.asjJ2yt:focus{ border-color:var(--wfd5f3-l1); }
.asjJ2yt::placeholder{ color:var(--lb9qz-g6); }
.asjJ2yt.b4vwAnij{ border-color:#c00; }
.cyC4g{
  width:40px; height:40px; min-width:40px; border:none; background:var(--wfd5f3-l1); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.cyC4g:disabled{ opacity:.5; cursor:not-allowed; }
.cyC4g:not(:disabled):hover{ transform:scale(1.05); }
.cyC4g:not(:disabled):active{ transform:scale(0.95); }
.cyC4g:focus{ outline:2px solid var(--wfd5f3-l1); outline-offset:2px; }
.cyC4g svg{ width:20px; height:20px; }

/* Character Counter */
.m362Oxgm{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--lb9qz-g6); }
.m362Oxgm.lf9Z8ei{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.qz0Zkx9{
  align-self:flex-start;
  max-width:75%;
  background: var(--sf6b-ivvl);
  color: var(--npqc5g-t3n);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--dmz5wj-zeae);
}
.jemSkpm{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.fo3Ph5x.ge7bC7cu{
  background: transparent; color: var(--npqc5g-t3n); border-color: var(--vz4v-u9h8);
}
.fo3Ph5x.ge7bC7cu:hover{
  background: var(--wfd5f3-l1); color:#fff; border-color: var(--wfd5f3-l1);
}

/* Mobile */
@media (max-width: 768px){
  .dy7H02{ bottom:16px; right:16px; }
  .dy7H02.cb2jGude{ left:16px; }
  .qnn6Hsy4{ --sjhe6m-td6n:60px; }
  .tojwJlqm{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--l9kvv-gg4) var(--l9kvv-gg4) 0 0; transform: translateY(100%);
  }
  .tojwJlqm.y2tVo6{ transform: translateY(0); }
  .jinL0g4{ padding:20px; }
  .kq1Qcvb{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.dy7H02 :focus-visible{ outline:2px solid var(--wfd5f3-l1); outline-offset:2px; }

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