/* CSS Variables */
:root {
  --j7ai9c-uk1z: #4f46e5;
  --u50-of59: #ffffff;
  --iou-qm: #f9fafb;
  --pemm-daqy: #0f172a;
  --zdit-zz: #6b7280;
  --xzin2-d87: #e5e7eb;
  --q7qt2-jrc6: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --yhyl-dal5: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --xkskso-w14: 16px;
  --nxa-yq: 56px;
  --pfni-sf6y: 12px;
  --scdyq4-w4er: 999999;
}

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

/* Main Container */
.nehSe68 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--scdyq4-w4er);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--pemm-daqy);
}
.nehSe68.l1veEqa7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.b1lEv8w { display: flex; flex-direction: column-reverse; gap: var(--pfni-sf6y); align-items: center; }
.urGz4 {
  width: var(--nxa-yq); height: var(--nxa-yq); min-width: var(--nxa-yq); min-height: var(--nxa-yq);
  border-radius: 50%; border: none; background: var(--j7ai9c-uk1z); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--q7qt2-jrc6);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.urGz4:hover { transform: scale(1.05); box-shadow: var(--yhyl-dal5); }
.urGz4:active { transform: scale(0.95); }
.urGz4:focus { outline: 2px solid var(--j7ai9c-uk1z); outline-offset: 2px; }
.urGz4 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .urGz4.ojDp4{ animation:none; }
  .urGz4,.wde3Vj5u,.cgYhu{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.wde3Vj5u{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--u50-of59); border-radius: var(--xkskso-w14); box-shadow: var(--yhyl-dal5);
  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;
}
.nehSe68.l1veEqa7 .wde3Vj5u{ right:auto; left:24px; }
.wde3Vj5u.tchY30{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.l3Hob{
  padding:16px 20px; background:var(--u50-of59); border-bottom:1px solid var(--xzin2-d87);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.fmfWn55{ width:10px; height:10px; border-radius:50%; background:var(--j7ai9c-uk1z); flex-shrink:0; }
.xqcdJz55{ flex:1; min-width:0; }
.ypj4O14v{ font-size:16px; font-weight:600; color:var(--pemm-daqy); margin:0 0 2px 0; }
.fviVaf{ font-size:13px; color:var(--zdit-zz); margin:0; }
.sjuQm9a{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--zdit-zz);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.sjuQm9a:hover{ background:var(--iou-qm); color:var(--pemm-daqy); }
.sjuQm9a:focus{ outline:2px solid var(--j7ai9c-uk1z); outline-offset:2px; }
.sjuQm9a svg{ width:20px; height:20px; }

/* Body */
.j4Qul{
  flex:1; overflow-y:auto; padding:16px; background:var(--iou-qm);
  display:flex; flex-direction:column; gap:12px;
}
.j4Qul::-webkit-scrollbar{ width:6px; }
.j4Qul::-webkit-scrollbar-track{ background:transparent; }
.j4Qul::-webkit-scrollbar-thumb{ background:var(--xzin2-d87); border-radius:3px; }
.j4Qul::-webkit-scrollbar-thumb:hover{ background:var(--zdit-zz); }

/* Messages */
.cgYhu{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.cgYhu.seiA3k{ flex-direction:row-reverse; }
.ex1S00u{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ex1S00u a{ color:inherit; }
.cgYhu.smoIzu0 .ex1S00u{ background:var(--u50-of59); color:var(--pemm-daqy); border-bottom-left-radius:4px; }
.cgYhu.seiA3k .ex1S00u{ background:var(--j7ai9c-uk1z); color:#fff; border-bottom-right-radius:4px; }
.fzpDvw{ font-size:11px; color:var(--zdit-zz); margin-top:4px; display:block; }

/* Typing Indicator */
.iyboVub9{
  display:flex; gap:8px; padding:10px 14px; background:var(--u50-of59);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.qjpxM5ol{ width:8px; height:8px; border-radius:50%; background:var(--zdit-zz); animation:typingDot 1.4s infinite; }
.qjpxM5ol:nth-child(2){ animation-delay:.2s; }
.qjpxM5ol: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) */
.p6sHy5{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.ayzBoq{
  border:0; border-radius:999px; padding:8px 12px; background:var(--j7ai9c-uk1z); 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(--q7qt2-jrc6);
}
.ayzBoq:is(:hover,:focus){ transform:translateY(-1px); }
a.ayzBoq{ text-decoration:none; display:inline-block; }
a.ayzBoq:link, a.ayzBoq:visited{ color:#fff; }
a.ayzBoq:hover, a.ayzBoq:focus{ color:#fff; }

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

/* Footer */
.w0Xul{
  padding:16px; background:var(--u50-of59); border-top:1px solid var(--xzin2-d87);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.p9Fdi{
  flex:1; padding:10px 14px; border:1px solid var(--xzin2-d87); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--pemm-daqy);
  background:var(--iou-qm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.p9Fdi:focus{ border-color:var(--j7ai9c-uk1z); }
.p9Fdi::placeholder{ color:var(--zdit-zz); }
.p9Fdi.axT2p{ border-color:#c00; }
.zmgXsxq{
  width:40px; height:40px; min-width:40px; border:none; background:var(--j7ai9c-uk1z); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.zmgXsxq:disabled{ opacity:.5; cursor:not-allowed; }
.zmgXsxq:not(:disabled):hover{ transform:scale(1.05); }
.zmgXsxq:not(:disabled):active{ transform:scale(0.95); }
.zmgXsxq:focus{ outline:2px solid var(--j7ai9c-uk1z); outline-offset:2px; }
.zmgXsxq svg{ width:20px; height:20px; }

/* Character Counter */
.x3pQcb6{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--zdit-zz); }
.x3pQcb6.p2eVmb{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.dniSgiz{
  align-self:flex-start;
  max-width:75%;
  background: var(--u50-of59);
  color: var(--pemm-daqy);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--q7qt2-jrc6);
}
.g7P9s{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.d2Otx.nkjVq8{
  background: transparent; color: var(--pemm-daqy); border-color: var(--xzin2-d87);
}
.d2Otx.nkjVq8:hover{
  background: var(--j7ai9c-uk1z); color:#fff; border-color: var(--j7ai9c-uk1z);
}

/* Mobile */
@media (max-width: 768px){
  .nehSe68{ bottom:16px; right:16px; }
  .nehSe68.l1veEqa7{ left:16px; }
  .urGz4{ --nxa-yq:60px; }
  .wde3Vj5u{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--xkskso-w14) var(--xkskso-w14) 0 0; transform: translateY(100%);
  }
  .wde3Vj5u.tchY30{ transform: translateY(0); }
  .l3Hob{ padding:20px; }
  .w0Xul{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.nehSe68 :focus-visible{ outline:2px solid var(--j7ai9c-uk1z); outline-offset:2px; }

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