/* CSS Variables */
:root {
  --x6k-hr: #4f46e5;
  --keq523-pg7: #ffffff;
  --j9h-kd2: #f9fafb;
  --owaxh-qk8h: #0f172a;
  --egc0dz-e8: #6b7280;
  --goio-wgr: #e5e7eb;
  --pu4r-hc: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --seytb9-pd2: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --rccx7j-zpcs: 16px;
  --u3hc7v-xz: 56px;
  --xaq-ba: 12px;
  --l2c-iouq: 999999;
}

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

/* Main Container */
.au8n {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--l2c-iouq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--owaxh-qk8h);
}
.au8n.whopp { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.rv2fy { display: flex; flex-direction: column-reverse; gap: var(--xaq-ba); align-items: center; }
.jr7x {
  width: var(--u3hc7v-xz); height: var(--u3hc7v-xz); min-width: var(--u3hc7v-xz); min-height: var(--u3hc7v-xz);
  border-radius: 50%; border: none; background: var(--x6k-hr); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--pu4r-hc);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jr7x:hover { transform: scale(1.05); box-shadow: var(--seytb9-pd2); }
.jr7x:active { transform: scale(0.95); }
.jr7x:focus { outline: 2px solid var(--x6k-hr); outline-offset: 2px; }
.jr7x svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jr7x.nn53p{ animation:none; }
  .jr7x,.cye33f,.e9nsq{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.cye33f{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--keq523-pg7); border-radius: var(--rccx7j-zpcs); box-shadow: var(--seytb9-pd2);
  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;
}
.au8n.whopp .cye33f{ right:auto; left:24px; }
.cye33f.nk09{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.yutjf5{
  padding:16px 20px; background:var(--keq523-pg7); border-bottom:1px solid var(--goio-wgr);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.mmz5jv{ width:10px; height:10px; border-radius:50%; background:var(--x6k-hr); flex-shrink:0; }
.flr55u{ flex:1; min-width:0; }
.pix9cn{ font-size:16px; font-weight:600; color:var(--owaxh-qk8h); margin:0 0 2px 0; }
.s0hx5{ font-size:13px; color:var(--egc0dz-e8); margin:0; }
.uiobxl{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--egc0dz-e8);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.uiobxl:hover{ background:var(--j9h-kd2); color:var(--owaxh-qk8h); }
.uiobxl:focus{ outline:2px solid var(--x6k-hr); outline-offset:2px; }
.uiobxl svg{ width:20px; height:20px; }

/* Body */
.zkkw6{
  flex:1; overflow-y:auto; padding:16px; background:var(--j9h-kd2);
  display:flex; flex-direction:column; gap:12px;
}
.zkkw6::-webkit-scrollbar{ width:6px; }
.zkkw6::-webkit-scrollbar-track{ background:transparent; }
.zkkw6::-webkit-scrollbar-thumb{ background:var(--goio-wgr); border-radius:3px; }
.zkkw6::-webkit-scrollbar-thumb:hover{ background:var(--egc0dz-e8); }

/* Messages */
.e9nsq{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.e9nsq.mnpit2{ flex-direction:row-reverse; }
.uai3v{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.uai3v a{ color:inherit; }
.e9nsq.dqixor .uai3v{ background:var(--keq523-pg7); color:var(--owaxh-qk8h); border-bottom-left-radius:4px; }
.e9nsq.mnpit2 .uai3v{ background:var(--x6k-hr); color:#fff; border-bottom-right-radius:4px; }
.ujhf{ font-size:11px; color:var(--egc0dz-e8); margin-top:4px; display:block; }

/* Typing Indicator */
.d2bh3p{
  display:flex; gap:8px; padding:10px 14px; background:var(--keq523-pg7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.njnu{ width:8px; height:8px; border-radius:50%; background:var(--egc0dz-e8); animation:typingDot 1.4s infinite; }
.njnu:nth-child(2){ animation-delay:.2s; }
.njnu: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) */
.fall{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ylpop{
  border:0; border-radius:999px; padding:8px 12px; background:var(--x6k-hr); 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(--pu4r-hc);
}
.ylpop:is(:hover,:focus){ transform:translateY(-1px); }
a.ylpop{ text-decoration:none; display:inline-block; }
a.ylpop:link, a.ylpop:visited{ color:#fff; }
a.ylpop:hover, a.ylpop:focus{ color:#fff; }

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

/* Footer */
.y6gdd2{
  padding:16px; background:var(--keq523-pg7); border-top:1px solid var(--goio-wgr);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.kemp3{
  flex:1; padding:10px 14px; border:1px solid var(--goio-wgr); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--owaxh-qk8h);
  background:var(--j9h-kd2); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.kemp3:focus{ border-color:var(--x6k-hr); }
.kemp3::placeholder{ color:var(--egc0dz-e8); }
.kemp3.mj7z15{ border-color:#c00; }
.vu2d2w{
  width:40px; height:40px; min-width:40px; border:none; background:var(--x6k-hr); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.vu2d2w:disabled{ opacity:.5; cursor:not-allowed; }
.vu2d2w:not(:disabled):hover{ transform:scale(1.05); }
.vu2d2w:not(:disabled):active{ transform:scale(0.95); }
.vu2d2w:focus{ outline:2px solid var(--x6k-hr); outline-offset:2px; }
.vu2d2w svg{ width:20px; height:20px; }

/* Character Counter */
.nppug{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--egc0dz-e8); }
.nppug.s36yyz{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.en1s{
  align-self:flex-start;
  max-width:75%;
  background: var(--keq523-pg7);
  color: var(--owaxh-qk8h);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--pu4r-hc);
}
.gjtd{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.tfqp58.p2gzzc{
  background: transparent; color: var(--owaxh-qk8h); border-color: var(--goio-wgr);
}
.tfqp58.p2gzzc:hover{
  background: var(--x6k-hr); color:#fff; border-color: var(--x6k-hr);
}

/* Mobile */
@media (max-width: 768px){
  .au8n{ bottom:16px; right:16px; }
  .au8n.whopp{ left:16px; }
  .jr7x{ --u3hc7v-xz:60px; }
  .cye33f{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--rccx7j-zpcs) var(--rccx7j-zpcs) 0 0; transform: translateY(100%);
  }
  .cye33f.nk09{ transform: translateY(0); }
  .yutjf5{ padding:20px; }
  .y6gdd2{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.au8n :focus-visible{ outline:2px solid var(--x6k-hr); outline-offset:2px; }

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