/* CSS Variables */
:root {
  --or4b90-zbg: #4f46e5;
  --grljir-a837: #ffffff;
  --vfe-o721: #f9fafb;
  --o3coy-m3: #0f172a;
  --dnx-hs: #6b7280;
  --da1-jz: #e5e7eb;
  --eo94-di4: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --sce7-eiyo: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --wvt-a13: 16px;
  --mn1-f1: 56px;
  --t43-m71: 12px;
  --p0zm2h-ru: 999999;
}

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

/* Main Container */
.oblWl8 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--p0zm2h-ru);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--o3coy-m3);
}
.oblWl8.fesSct { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.nnRhv { display: flex; flex-direction: column-reverse; gap: var(--t43-m71); align-items: center; }
.q8mI27l {
  width: var(--mn1-f1); height: var(--mn1-f1); min-width: var(--mn1-f1); min-height: var(--mn1-f1);
  border-radius: 50%; border: none; background: var(--or4b90-zbg); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--eo94-di4);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.q8mI27l:hover { transform: scale(1.05); box-shadow: var(--sce7-eiyo); }
.q8mI27l:active { transform: scale(0.95); }
.q8mI27l:focus { outline: 2px solid var(--or4b90-zbg); outline-offset: 2px; }
.q8mI27l svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .q8mI27l.zkpT95{ animation:none; }
  .q8mI27l,.nr2Avq,.pjwE53{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.nr2Avq{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--grljir-a837); border-radius: var(--wvt-a13); box-shadow: var(--sce7-eiyo);
  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;
}
.oblWl8.fesSct .nr2Avq{ right:auto; left:24px; }
.nr2Avq.i65Kqci{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.zs7fD24a{
  padding:16px 20px; background:var(--grljir-a837); border-bottom:1px solid var(--da1-jz);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.ssE7n{ width:10px; height:10px; border-radius:50%; background:var(--or4b90-zbg); flex-shrink:0; }
.zmmqPrkb{ flex:1; min-width:0; }
.e0Zhk{ font-size:16px; font-weight:600; color:var(--o3coy-m3); margin:0 0 2px 0; }
.rt1Huu9{ font-size:13px; color:var(--dnx-hs); margin:0; }
.zunCf9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--dnx-hs);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.zunCf9:hover{ background:var(--vfe-o721); color:var(--o3coy-m3); }
.zunCf9:focus{ outline:2px solid var(--or4b90-zbg); outline-offset:2px; }
.zunCf9 svg{ width:20px; height:20px; }

/* Body */
.h3rMey2{
  flex:1; overflow-y:auto; padding:16px; background:var(--vfe-o721);
  display:flex; flex-direction:column; gap:12px;
}
.h3rMey2::-webkit-scrollbar{ width:6px; }
.h3rMey2::-webkit-scrollbar-track{ background:transparent; }
.h3rMey2::-webkit-scrollbar-thumb{ background:var(--da1-jz); border-radius:3px; }
.h3rMey2::-webkit-scrollbar-thumb:hover{ background:var(--dnx-hs); }

/* Messages */
.pjwE53{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pjwE53.v1qAjs{ flex-direction:row-reverse; }
.uw2Ku08{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.uw2Ku08 a{ color:inherit; }
.pjwE53.arjRga9 .uw2Ku08{ background:var(--grljir-a837); color:var(--o3coy-m3); border-bottom-left-radius:4px; }
.pjwE53.v1qAjs .uw2Ku08{ background:var(--or4b90-zbg); color:#fff; border-bottom-right-radius:4px; }
.vyMd1{ font-size:11px; color:var(--dnx-hs); margin-top:4px; display:block; }

/* Typing Indicator */
.ygvWqd{
  display:flex; gap:8px; padding:10px 14px; background:var(--grljir-a837);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ddV3r{ width:8px; height:8px; border-radius:50%; background:var(--dnx-hs); animation:typingDot 1.4s infinite; }
.ddV3r:nth-child(2){ animation-delay:.2s; }
.ddV3r: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) */
.xum7Xmh1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.d9E3l{
  border:0; border-radius:999px; padding:8px 12px; background:var(--or4b90-zbg); 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(--eo94-di4);
}
.d9E3l:is(:hover,:focus){ transform:translateY(-1px); }
a.d9E3l{ text-decoration:none; display:inline-block; }
a.d9E3l:link, a.d9E3l:visited{ color:#fff; }
a.d9E3l:hover, a.d9E3l:focus{ color:#fff; }

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

/* Footer */
.dtOff{
  padding:16px; background:var(--grljir-a837); border-top:1px solid var(--da1-jz);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.p9Res{
  flex:1; padding:10px 14px; border:1px solid var(--da1-jz); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--o3coy-m3);
  background:var(--vfe-o721); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.p9Res:focus{ border-color:var(--or4b90-zbg); }
.p9Res::placeholder{ color:var(--dnx-hs); }
.p9Res.lcN5d{ border-color:#c00; }
.e9Fyo{
  width:40px; height:40px; min-width:40px; border:none; background:var(--or4b90-zbg); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.e9Fyo:disabled{ opacity:.5; cursor:not-allowed; }
.e9Fyo:not(:disabled):hover{ transform:scale(1.05); }
.e9Fyo:not(:disabled):active{ transform:scale(0.95); }
.e9Fyo:focus{ outline:2px solid var(--or4b90-zbg); outline-offset:2px; }
.e9Fyo svg{ width:20px; height:20px; }

/* Character Counter */
.ldecHxb7{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--dnx-hs); }
.ldecHxb7.djoMw3{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.tm4D44m{
  align-self:flex-start;
  max-width:75%;
  background: var(--grljir-a837);
  color: var(--o3coy-m3);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--eo94-di4);
}
.hhsnGdfq{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.h5Aai.eju6Duoc{
  background: transparent; color: var(--o3coy-m3); border-color: var(--da1-jz);
}
.h5Aai.eju6Duoc:hover{
  background: var(--or4b90-zbg); color:#fff; border-color: var(--or4b90-zbg);
}

/* Mobile */
@media (max-width: 768px){
  .oblWl8{ bottom:16px; right:16px; }
  .oblWl8.fesSct{ left:16px; }
  .q8mI27l{ --mn1-f1:60px; }
  .nr2Avq{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--wvt-a13) var(--wvt-a13) 0 0; transform: translateY(100%);
  }
  .nr2Avq.i65Kqci{ transform: translateY(0); }
  .zs7fD24a{ padding:20px; }
  .dtOff{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.oblWl8 :focus-visible{ outline:2px solid var(--or4b90-zbg); outline-offset:2px; }

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