/* CSS Variables */
:root {
  --ywv6su-uxlb: #4f46e5;
  --v0zqtv-rr: #ffffff;
  --pzq7cl-s9: #f9fafb;
  --l7w82-mk: #0f172a;
  --jk0fi-bt: #6b7280;
  --wtril-c8: #e5e7eb;
  --fyz-i7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --x3w3k-stcy: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --p7f-w7: 16px;
  --jnn7-alhk: 56px;
  --a3x6-uy: 12px;
  --hqoau-a5p: 999999;
}

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

/* Main Container */
.b96e {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--hqoau-a5p);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--l7w82-mk);
}
.b96e.kkl3 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.xwv7d { display: flex; flex-direction: column-reverse; gap: var(--a3x6-uy); align-items: center; }
.oytn {
  width: var(--jnn7-alhk); height: var(--jnn7-alhk); min-width: var(--jnn7-alhk); min-height: var(--jnn7-alhk);
  border-radius: 50%; border: none; background: var(--ywv6su-uxlb); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fyz-i7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.oytn:hover { transform: scale(1.05); box-shadow: var(--x3w3k-stcy); }
.oytn:active { transform: scale(0.95); }
.oytn:focus { outline: 2px solid var(--ywv6su-uxlb); outline-offset: 2px; }
.oytn svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .oytn.c2f1c{ animation:none; }
  .oytn,.q7og,.qc0u65{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.q7og{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--v0zqtv-rr); border-radius: var(--p7f-w7); box-shadow: var(--x3w3k-stcy);
  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;
}
.b96e.kkl3 .q7og{ right:auto; left:24px; }
.q7og.duz60y{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.mujf{
  padding:16px 20px; background:var(--v0zqtv-rr); border-bottom:1px solid var(--wtril-c8);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ll4y{ width:10px; height:10px; border-radius:50%; background:var(--ywv6su-uxlb); flex-shrink:0; }
.a6gt{ flex:1; min-width:0; }
.rirqml{ font-size:16px; font-weight:600; color:var(--l7w82-mk); margin:0 0 2px 0; }
.sasdy3{ font-size:13px; color:var(--jk0fi-bt); margin:0; }
.e1drnb{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--jk0fi-bt);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.e1drnb:hover{ background:var(--pzq7cl-s9); color:var(--l7w82-mk); }
.e1drnb:focus{ outline:2px solid var(--ywv6su-uxlb); outline-offset:2px; }
.e1drnb svg{ width:20px; height:20px; }

/* Body */
.x1sl{
  flex:1; overflow-y:auto; padding:16px; background:var(--pzq7cl-s9);
  display:flex; flex-direction:column; gap:12px;
}
.x1sl::-webkit-scrollbar{ width:6px; }
.x1sl::-webkit-scrollbar-track{ background:transparent; }
.x1sl::-webkit-scrollbar-thumb{ background:var(--wtril-c8); border-radius:3px; }
.x1sl::-webkit-scrollbar-thumb:hover{ background:var(--jk0fi-bt); }

/* Messages */
.qc0u65{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.qc0u65.wzuxc{ flex-direction:row-reverse; }
.e63sg{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.e63sg a{ color:inherit; }
.qc0u65.s0ra77 .e63sg{ background:var(--v0zqtv-rr); color:var(--l7w82-mk); border-bottom-left-radius:4px; }
.qc0u65.wzuxc .e63sg{ background:var(--ywv6su-uxlb); color:#fff; border-bottom-right-radius:4px; }
.c2vs01{ font-size:11px; color:var(--jk0fi-bt); margin-top:4px; display:block; }

/* Typing Indicator */
.quhna{
  display:flex; gap:8px; padding:10px 14px; background:var(--v0zqtv-rr);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.bmv5ow{ width:8px; height:8px; border-radius:50%; background:var(--jk0fi-bt); animation:typingDot 1.4s infinite; }
.bmv5ow:nth-child(2){ animation-delay:.2s; }
.bmv5ow: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) */
.n2jyu8{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.nfsh{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ywv6su-uxlb); 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(--fyz-i7);
}
.nfsh:is(:hover,:focus){ transform:translateY(-1px); }
a.nfsh{ text-decoration:none; display:inline-block; }
a.nfsh:link, a.nfsh:visited{ color:#fff; }
a.nfsh:hover, a.nfsh:focus{ color:#fff; }

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

/* Footer */
.uo0d{
  padding:16px; background:var(--v0zqtv-rr); border-top:1px solid var(--wtril-c8);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.nmqe{
  flex:1; padding:10px 14px; border:1px solid var(--wtril-c8); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--l7w82-mk);
  background:var(--pzq7cl-s9); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.nmqe:focus{ border-color:var(--ywv6su-uxlb); }
.nmqe::placeholder{ color:var(--jk0fi-bt); }
.nmqe.d7j14x{ border-color:#c00; }
.jzbpj{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ywv6su-uxlb); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.jzbpj:disabled{ opacity:.5; cursor:not-allowed; }
.jzbpj:not(:disabled):hover{ transform:scale(1.05); }
.jzbpj:not(:disabled):active{ transform:scale(0.95); }
.jzbpj:focus{ outline:2px solid var(--ywv6su-uxlb); outline-offset:2px; }
.jzbpj svg{ width:20px; height:20px; }

/* Character Counter */
.ygfgjq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--jk0fi-bt); }
.ygfgjq.gf7f5{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.kc0cd{
  align-self:flex-start;
  max-width:75%;
  background: var(--v0zqtv-rr);
  color: var(--l7w82-mk);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fyz-i7);
}
.ncgex3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.iuugr.jc6s{
  background: transparent; color: var(--l7w82-mk); border-color: var(--wtril-c8);
}
.iuugr.jc6s:hover{
  background: var(--ywv6su-uxlb); color:#fff; border-color: var(--ywv6su-uxlb);
}

/* Mobile */
@media (max-width: 768px){
  .b96e{ bottom:16px; right:16px; }
  .b96e.kkl3{ left:16px; }
  .oytn{ --jnn7-alhk:60px; }
  .q7og{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--p7f-w7) var(--p7f-w7) 0 0; transform: translateY(100%);
  }
  .q7og.duz60y{ transform: translateY(0); }
  .mujf{ padding:20px; }
  .uo0d{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.b96e :focus-visible{ outline:2px solid var(--ywv6su-uxlb); outline-offset:2px; }

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