/* CSS Variables */
:root {
  --dmr-ve: #4f46e5;
  --a7e6j9-tq9n: #ffffff;
  --uyjdr2-qf: #f9fafb;
  --vzvnrw-gb: #0f172a;
  --xy6zl-aq6: #6b7280;
  --ybrzcu-ns6: #e5e7eb;
  --urji-ivu5: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --k2ysds-su: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vmuk32-rm5: 16px;
  --fsvfi7-l9: 56px;
  --rddo9o-wjzi: 12px;
  --l8agq-hl: 999999;
}

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

/* Main Container */
.ywd5k {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--l8agq-hl);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--vzvnrw-gb);
}
.ywd5k.uk1zr { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.zti2ya { display: flex; flex-direction: column-reverse; gap: var(--rddo9o-wjzi); align-items: center; }
.lxsa {
  width: var(--fsvfi7-l9); height: var(--fsvfi7-l9); min-width: var(--fsvfi7-l9); min-height: var(--fsvfi7-l9);
  border-radius: 50%; border: none; background: var(--dmr-ve); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--urji-ivu5);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.lxsa:hover { transform: scale(1.05); box-shadow: var(--k2ysds-su); }
.lxsa:active { transform: scale(0.95); }
.lxsa:focus { outline: 2px solid var(--dmr-ve); outline-offset: 2px; }
.lxsa svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .lxsa.m2ry{ animation:none; }
  .lxsa,.uw1k,.eumf9i{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.uw1k{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--a7e6j9-tq9n); border-radius: var(--vmuk32-rm5); box-shadow: var(--k2ysds-su);
  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;
}
.ywd5k.uk1zr .uw1k{ right:auto; left:24px; }
.uw1k.cy1ozn{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.tl3ze5{
  padding:16px 20px; background:var(--a7e6j9-tq9n); border-bottom:1px solid var(--ybrzcu-ns6);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.s1iuf3{ width:10px; height:10px; border-radius:50%; background:var(--dmr-ve); flex-shrink:0; }
.xlqr{ flex:1; min-width:0; }
.wdwnc8{ font-size:16px; font-weight:600; color:var(--vzvnrw-gb); margin:0 0 2px 0; }
.koe3n{ font-size:13px; color:var(--xy6zl-aq6); margin:0; }
.ngvn{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--xy6zl-aq6);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ngvn:hover{ background:var(--uyjdr2-qf); color:var(--vzvnrw-gb); }
.ngvn:focus{ outline:2px solid var(--dmr-ve); outline-offset:2px; }
.ngvn svg{ width:20px; height:20px; }

/* Body */
.slrxdh{
  flex:1; overflow-y:auto; padding:16px; background:var(--uyjdr2-qf);
  display:flex; flex-direction:column; gap:12px;
}
.slrxdh::-webkit-scrollbar{ width:6px; }
.slrxdh::-webkit-scrollbar-track{ background:transparent; }
.slrxdh::-webkit-scrollbar-thumb{ background:var(--ybrzcu-ns6); border-radius:3px; }
.slrxdh::-webkit-scrollbar-thumb:hover{ background:var(--xy6zl-aq6); }

/* Messages */
.eumf9i{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.eumf9i.tq0vq{ flex-direction:row-reverse; }
.dkxsue{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.dkxsue a{ color:inherit; }
.eumf9i.gmvr .dkxsue{ background:var(--a7e6j9-tq9n); color:var(--vzvnrw-gb); border-bottom-left-radius:4px; }
.eumf9i.tq0vq .dkxsue{ background:var(--dmr-ve); color:#fff; border-bottom-right-radius:4px; }
.c195r{ font-size:11px; color:var(--xy6zl-aq6); margin-top:4px; display:block; }

/* Typing Indicator */
.nrdv4{
  display:flex; gap:8px; padding:10px 14px; background:var(--a7e6j9-tq9n);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.ekx0q{ width:8px; height:8px; border-radius:50%; background:var(--xy6zl-aq6); animation:typingDot 1.4s infinite; }
.ekx0q:nth-child(2){ animation-delay:.2s; }
.ekx0q: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) */
.asynv1{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.gn5q{
  border:0; border-radius:999px; padding:8px 12px; background:var(--dmr-ve); 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(--urji-ivu5);
}
.gn5q:is(:hover,:focus){ transform:translateY(-1px); }
a.gn5q{ text-decoration:none; display:inline-block; }
a.gn5q:link, a.gn5q:visited{ color:#fff; }
a.gn5q:hover, a.gn5q:focus{ color:#fff; }

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

/* Footer */
.nsyq8s{
  padding:16px; background:var(--a7e6j9-tq9n); border-top:1px solid var(--ybrzcu-ns6);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ysgu{
  flex:1; padding:10px 14px; border:1px solid var(--ybrzcu-ns6); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--vzvnrw-gb);
  background:var(--uyjdr2-qf); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ysgu:focus{ border-color:var(--dmr-ve); }
.ysgu::placeholder{ color:var(--xy6zl-aq6); }
.ysgu.hx9eio{ border-color:#c00; }
.auykfq{
  width:40px; height:40px; min-width:40px; border:none; background:var(--dmr-ve); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.auykfq:disabled{ opacity:.5; cursor:not-allowed; }
.auykfq:not(:disabled):hover{ transform:scale(1.05); }
.auykfq:not(:disabled):active{ transform:scale(0.95); }
.auykfq:focus{ outline:2px solid var(--dmr-ve); outline-offset:2px; }
.auykfq svg{ width:20px; height:20px; }

/* Character Counter */
.oc24c{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--xy6zl-aq6); }
.oc24c.xqrn18{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.kjrei{
  align-self:flex-start;
  max-width:75%;
  background: var(--a7e6j9-tq9n);
  color: var(--vzvnrw-gb);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--urji-ivu5);
}
.n31m{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.izcawa.t5ait4{
  background: transparent; color: var(--vzvnrw-gb); border-color: var(--ybrzcu-ns6);
}
.izcawa.t5ait4:hover{
  background: var(--dmr-ve); color:#fff; border-color: var(--dmr-ve);
}

/* Mobile */
@media (max-width: 768px){
  .ywd5k{ bottom:16px; right:16px; }
  .ywd5k.uk1zr{ left:16px; }
  .lxsa{ --fsvfi7-l9:60px; }
  .uw1k{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--vmuk32-rm5) var(--vmuk32-rm5) 0 0; transform: translateY(100%);
  }
  .uw1k.cy1ozn{ transform: translateY(0); }
  .tl3ze5{ padding:20px; }
  .nsyq8s{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.ywd5k :focus-visible{ outline:2px solid var(--dmr-ve); outline-offset:2px; }

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