/* CSS Variables */
:root {
  --ozlv-cs: #4f46e5;
  --a3dpwg-wph: #ffffff;
  --hikzb-a57i: #f9fafb;
  --vvb2a3-sd: #0f172a;
  --g9ms-yw: #6b7280;
  --r05-mr: #e5e7eb;
  --l0r1x-qq44: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --dgkc3p-g12r: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --w1ra-a65v: 16px;
  --zud7f9-bn: 56px;
  --se0mj-n0d: 12px;
  --b4eo5-xm: 999999;
}

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

/* Main Container */
.pva4 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--b4eo5-xm);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vvb2a3-sd);
}
.pva4.x9cf { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.i05b7 { display: flex; flex-direction: column-reverse; gap: var(--se0mj-n0d); align-items: center; }
.lqyou {
  width: var(--zud7f9-bn); height: var(--zud7f9-bn); min-width: var(--zud7f9-bn); min-height: var(--zud7f9-bn);
  border-radius: 50%; border: none; background: var(--ozlv-cs); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--l0r1x-qq44);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.lqyou:hover { transform: scale(1.05); box-shadow: var(--dgkc3p-g12r); }
.lqyou:active { transform: scale(0.95); }
.lqyou:focus { outline: 2px solid var(--ozlv-cs); outline-offset: 2px; }
.lqyou svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .lqyou.nn50{ animation:none; }
  .lqyou,.ay3mqt,.ndis{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.ay3mqt{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--a3dpwg-wph); border-radius: var(--w1ra-a65v); box-shadow: var(--dgkc3p-g12r);
  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;
}
.pva4.x9cf .ay3mqt{ right:auto; left:24px; }
.ay3mqt.bqhum{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.uwi5e{
  padding:16px 20px; background:var(--a3dpwg-wph); border-bottom:1px solid var(--r05-mr);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.b4qub{ width:10px; height:10px; border-radius:50%; background:var(--ozlv-cs); flex-shrink:0; }
.mb3yqc{ flex:1; min-width:0; }
.rref59{ font-size:16px; font-weight:600; color:var(--vvb2a3-sd); margin:0 0 2px 0; }
.gnik{ font-size:13px; color:var(--g9ms-yw); margin:0; }
.ovzt{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--g9ms-yw);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ovzt:hover{ background:var(--hikzb-a57i); color:var(--vvb2a3-sd); }
.ovzt:focus{ outline:2px solid var(--ozlv-cs); outline-offset:2px; }
.ovzt svg{ width:20px; height:20px; }

/* Body */
.nky71b{
  flex:1; overflow-y:auto; padding:16px; background:var(--hikzb-a57i);
  display:flex; flex-direction:column; gap:12px;
}
.nky71b::-webkit-scrollbar{ width:6px; }
.nky71b::-webkit-scrollbar-track{ background:transparent; }
.nky71b::-webkit-scrollbar-thumb{ background:var(--r05-mr); border-radius:3px; }
.nky71b::-webkit-scrollbar-thumb:hover{ background:var(--g9ms-yw); }

/* Messages */
.ndis{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ndis.pmgn8{ flex-direction:row-reverse; }
.e34tfn{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.e34tfn a{ color:inherit; }
.ndis.nyoc .e34tfn{ background:var(--a3dpwg-wph); color:var(--vvb2a3-sd); border-bottom-left-radius:4px; }
.ndis.pmgn8 .e34tfn{ background:var(--ozlv-cs); color:#fff; border-bottom-right-radius:4px; }
.inv2z9{ font-size:11px; color:var(--g9ms-yw); margin-top:4px; display:block; }

/* Typing Indicator */
.j4zy03{
  display:flex; gap:8px; padding:10px 14px; background:var(--a3dpwg-wph);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.a2cfq3{ width:8px; height:8px; border-radius:50%; background:var(--g9ms-yw); animation:typingDot 1.4s infinite; }
.a2cfq3:nth-child(2){ animation-delay:.2s; }
.a2cfq3: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) */
.nd47{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.cc8x1c{
  border:0; border-radius:999px; padding:8px 12px; background:var(--ozlv-cs); 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(--l0r1x-qq44);
}
.cc8x1c:is(:hover,:focus){ transform:translateY(-1px); }
a.cc8x1c{ text-decoration:none; display:inline-block; }
a.cc8x1c:link, a.cc8x1c:visited{ color:#fff; }
a.cc8x1c:hover, a.cc8x1c:focus{ color:#fff; }

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

/* Footer */
.w33w9{
  padding:16px; background:var(--a3dpwg-wph); border-top:1px solid var(--r05-mr);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.h9qu{
  flex:1; padding:10px 14px; border:1px solid var(--r05-mr); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vvb2a3-sd);
  background:var(--hikzb-a57i); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.h9qu:focus{ border-color:var(--ozlv-cs); }
.h9qu::placeholder{ color:var(--g9ms-yw); }
.h9qu.apzqn3{ border-color:#c00; }
.herul8{
  width:40px; height:40px; min-width:40px; border:none; background:var(--ozlv-cs); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.herul8:disabled{ opacity:.5; cursor:not-allowed; }
.herul8:not(:disabled):hover{ transform:scale(1.05); }
.herul8:not(:disabled):active{ transform:scale(0.95); }
.herul8:focus{ outline:2px solid var(--ozlv-cs); outline-offset:2px; }
.herul8 svg{ width:20px; height:20px; }

/* Character Counter */
.xh0w{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--g9ms-yw); }
.xh0w.ier5bx{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.vfm0c{
  align-self:flex-start;
  max-width:75%;
  background: var(--a3dpwg-wph);
  color: var(--vvb2a3-sd);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--l0r1x-qq44);
}
.aqtbxk{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ywr3i.cgjie{
  background: transparent; color: var(--vvb2a3-sd); border-color: var(--r05-mr);
}
.ywr3i.cgjie:hover{
  background: var(--ozlv-cs); color:#fff; border-color: var(--ozlv-cs);
}

/* Mobile */
@media (max-width: 768px){
  .pva4{ bottom:16px; right:16px; }
  .pva4.x9cf{ left:16px; }
  .lqyou{ --zud7f9-bn:60px; }
  .ay3mqt{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--w1ra-a65v) var(--w1ra-a65v) 0 0; transform: translateY(100%);
  }
  .ay3mqt.bqhum{ transform: translateY(0); }
  .uwi5e{ padding:20px; }
  .w33w9{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pva4 :focus-visible{ outline:2px solid var(--ozlv-cs); outline-offset:2px; }

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