/* CSS Variables */
:root {
  --bobrp4-pd: #4f46e5;
  --ockc-hn: #ffffff;
  --luo4k-hngq: #f9fafb;
  --m7ycub-lg: #0f172a;
  --wn7wz6-oh: #6b7280;
  --nia-ih0i: #e5e7eb;
  --tff7-zi3: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --uljo-vmu: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --bkf5x-g16c: 16px;
  --mcnh-hd: 56px;
  --hwj-m1: 12px;
  --fgu-uxln: 999999;
}

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

/* Main Container */
.riaf3 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--fgu-uxln);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--m7ycub-lg);
}
.riaf3.xaq0e { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.x6r1td { display: flex; flex-direction: column-reverse; gap: var(--hwj-m1); align-items: center; }
.jzl0 {
  width: var(--mcnh-hd); height: var(--mcnh-hd); min-width: var(--mcnh-hd); min-height: var(--mcnh-hd);
  border-radius: 50%; border: none; background: var(--bobrp4-pd); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--tff7-zi3);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jzl0:hover { transform: scale(1.05); box-shadow: var(--uljo-vmu); }
.jzl0:active { transform: scale(0.95); }
.jzl0:focus { outline: 2px solid var(--bobrp4-pd); outline-offset: 2px; }
.jzl0 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jzl0.ckzsa{ animation:none; }
  .jzl0,.bb6rf,.ggj5{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.bb6rf{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ockc-hn); border-radius: var(--bkf5x-g16c); box-shadow: var(--uljo-vmu);
  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;
}
.riaf3.xaq0e .bb6rf{ right:auto; left:24px; }
.bb6rf.n4sgx{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.i0rr0p{
  padding:16px 20px; background:var(--ockc-hn); border-bottom:1px solid var(--nia-ih0i);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.v0yy1{ width:10px; height:10px; border-radius:50%; background:var(--bobrp4-pd); flex-shrink:0; }
.hvo9{ flex:1; min-width:0; }
.iy40r{ font-size:16px; font-weight:600; color:var(--m7ycub-lg); margin:0 0 2px 0; }
.kq1q{ font-size:13px; color:var(--wn7wz6-oh); margin:0; }
.jc4kh0{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--wn7wz6-oh);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.jc4kh0:hover{ background:var(--luo4k-hngq); color:var(--m7ycub-lg); }
.jc4kh0:focus{ outline:2px solid var(--bobrp4-pd); outline-offset:2px; }
.jc4kh0 svg{ width:20px; height:20px; }

/* Body */
.qct29{
  flex:1; overflow-y:auto; padding:16px; background:var(--luo4k-hngq);
  display:flex; flex-direction:column; gap:12px;
}
.qct29::-webkit-scrollbar{ width:6px; }
.qct29::-webkit-scrollbar-track{ background:transparent; }
.qct29::-webkit-scrollbar-thumb{ background:var(--nia-ih0i); border-radius:3px; }
.qct29::-webkit-scrollbar-thumb:hover{ background:var(--wn7wz6-oh); }

/* Messages */
.ggj5{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ggj5.phqf3{ flex-direction:row-reverse; }
.q6ce{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.q6ce a{ color:inherit; }
.ggj5.z28o .q6ce{ background:var(--ockc-hn); color:var(--m7ycub-lg); border-bottom-left-radius:4px; }
.ggj5.phqf3 .q6ce{ background:var(--bobrp4-pd); color:#fff; border-bottom-right-radius:4px; }
.kcs3gw{ font-size:11px; color:var(--wn7wz6-oh); margin-top:4px; display:block; }

/* Typing Indicator */
.j126lk{
  display:flex; gap:8px; padding:10px 14px; background:var(--ockc-hn);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.hw8oe{ width:8px; height:8px; border-radius:50%; background:var(--wn7wz6-oh); animation:typingDot 1.4s infinite; }
.hw8oe:nth-child(2){ animation-delay:.2s; }
.hw8oe: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) */
.gi2wk{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ho9y{
  border:0; border-radius:999px; padding:8px 12px; background:var(--bobrp4-pd); 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(--tff7-zi3);
}
.ho9y:is(:hover,:focus){ transform:translateY(-1px); }
a.ho9y{ text-decoration:none; display:inline-block; }
a.ho9y:link, a.ho9y:visited{ color:#fff; }
a.ho9y:hover, a.ho9y:focus{ color:#fff; }

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

/* Footer */
.lcwugj{
  padding:16px; background:var(--ockc-hn); border-top:1px solid var(--nia-ih0i);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.r8iqbw{
  flex:1; padding:10px 14px; border:1px solid var(--nia-ih0i); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--m7ycub-lg);
  background:var(--luo4k-hngq); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.r8iqbw:focus{ border-color:var(--bobrp4-pd); }
.r8iqbw::placeholder{ color:var(--wn7wz6-oh); }
.r8iqbw.pjcj{ border-color:#c00; }
.si42{
  width:40px; height:40px; min-width:40px; border:none; background:var(--bobrp4-pd); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.si42:disabled{ opacity:.5; cursor:not-allowed; }
.si42:not(:disabled):hover{ transform:scale(1.05); }
.si42:not(:disabled):active{ transform:scale(0.95); }
.si42:focus{ outline:2px solid var(--bobrp4-pd); outline-offset:2px; }
.si42 svg{ width:20px; height:20px; }

/* Character Counter */
.cumt{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--wn7wz6-oh); }
.cumt.b1kyb{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.g7unws{
  align-self:flex-start;
  max-width:75%;
  background: var(--ockc-hn);
  color: var(--m7ycub-lg);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--tff7-zi3);
}
.h1kxf{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.o18we4.obo16f{
  background: transparent; color: var(--m7ycub-lg); border-color: var(--nia-ih0i);
}
.o18we4.obo16f:hover{
  background: var(--bobrp4-pd); color:#fff; border-color: var(--bobrp4-pd);
}

/* Mobile */
@media (max-width: 768px){
  .riaf3{ bottom:16px; right:16px; }
  .riaf3.xaq0e{ left:16px; }
  .jzl0{ --mcnh-hd:60px; }
  .bb6rf{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--bkf5x-g16c) var(--bkf5x-g16c) 0 0; transform: translateY(100%);
  }
  .bb6rf.n4sgx{ transform: translateY(0); }
  .i0rr0p{ padding:20px; }
  .lcwugj{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.riaf3 :focus-visible{ outline:2px solid var(--bobrp4-pd); outline-offset:2px; }

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