/* CSS Variables */
:root {
  --yj0-icbm: #4f46e5;
  --rxd-wj: #ffffff;
  --g5is-w4d: #f9fafb;
  --yj2o-o8: #0f172a;
  --ooqlj4-xg: #6b7280;
  --duhog-n8x2: #e5e7eb;
  --nk8wqs-xn7: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --wlzhu-hbu: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --qx5vae-nnx: 16px;
  --cklx-q46: 56px;
  --ged5-sxbb: 12px;
  --ddz4sn-eqh: 999999;
}

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

/* Main Container */
.dbon {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ddz4sn-eqh);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--yj2o-o8);
}
.dbon.yn8mb { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.tl8uf6 { display: flex; flex-direction: column-reverse; gap: var(--ged5-sxbb); align-items: center; }
.jtewc {
  width: var(--cklx-q46); height: var(--cklx-q46); min-width: var(--cklx-q46); min-height: var(--cklx-q46);
  border-radius: 50%; border: none; background: var(--yj0-icbm); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nk8wqs-xn7);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.jtewc:hover { transform: scale(1.05); box-shadow: var(--wlzhu-hbu); }
.jtewc:active { transform: scale(0.95); }
.jtewc:focus { outline: 2px solid var(--yj0-icbm); outline-offset: 2px; }
.jtewc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .jtewc.ksdwhj{ animation:none; }
  .jtewc,.leiew,.f086z{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.leiew{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--rxd-wj); border-radius: var(--qx5vae-nnx); box-shadow: var(--wlzhu-hbu);
  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;
}
.dbon.yn8mb .leiew{ right:auto; left:24px; }
.leiew.gcelz3{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.lju0l{
  padding:16px 20px; background:var(--rxd-wj); border-bottom:1px solid var(--duhog-n8x2);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.invj8a{ width:10px; height:10px; border-radius:50%; background:var(--yj0-icbm); flex-shrink:0; }
.zban{ flex:1; min-width:0; }
.ntg3v{ font-size:16px; font-weight:600; color:var(--yj2o-o8); margin:0 0 2px 0; }
.tbjy{ font-size:13px; color:var(--ooqlj4-xg); margin:0; }
.kpjo{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--ooqlj4-xg);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.kpjo:hover{ background:var(--g5is-w4d); color:var(--yj2o-o8); }
.kpjo:focus{ outline:2px solid var(--yj0-icbm); outline-offset:2px; }
.kpjo svg{ width:20px; height:20px; }

/* Body */
.wkxfpq{
  flex:1; overflow-y:auto; padding:16px; background:var(--g5is-w4d);
  display:flex; flex-direction:column; gap:12px;
}
.wkxfpq::-webkit-scrollbar{ width:6px; }
.wkxfpq::-webkit-scrollbar-track{ background:transparent; }
.wkxfpq::-webkit-scrollbar-thumb{ background:var(--duhog-n8x2); border-radius:3px; }
.wkxfpq::-webkit-scrollbar-thumb:hover{ background:var(--ooqlj4-xg); }

/* Messages */
.f086z{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.f086z.fpq4{ flex-direction:row-reverse; }
.wie82{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.wie82 a{ color:inherit; }
.f086z.b34w .wie82{ background:var(--rxd-wj); color:var(--yj2o-o8); border-bottom-left-radius:4px; }
.f086z.fpq4 .wie82{ background:var(--yj0-icbm); color:#fff; border-bottom-right-radius:4px; }
.ywi0lw{ font-size:11px; color:var(--ooqlj4-xg); margin-top:4px; display:block; }

/* Typing Indicator */
.tylmc3{
  display:flex; gap:8px; padding:10px 14px; background:var(--rxd-wj);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.o9d27s{ width:8px; height:8px; border-radius:50%; background:var(--ooqlj4-xg); animation:typingDot 1.4s infinite; }
.o9d27s:nth-child(2){ animation-delay:.2s; }
.o9d27s: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) */
.l0n1rm{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.x3nznb{
  border:0; border-radius:999px; padding:8px 12px; background:var(--yj0-icbm); 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(--nk8wqs-xn7);
}
.x3nznb:is(:hover,:focus){ transform:translateY(-1px); }
a.x3nznb{ text-decoration:none; display:inline-block; }
a.x3nznb:link, a.x3nznb:visited{ color:#fff; }
a.x3nznb:hover, a.x3nznb:focus{ color:#fff; }

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

/* Footer */
.yko3m{
  padding:16px; background:var(--rxd-wj); border-top:1px solid var(--duhog-n8x2);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.d1a1jq{
  flex:1; padding:10px 14px; border:1px solid var(--duhog-n8x2); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--yj2o-o8);
  background:var(--g5is-w4d); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.d1a1jq:focus{ border-color:var(--yj0-icbm); }
.d1a1jq::placeholder{ color:var(--ooqlj4-xg); }
.d1a1jq.jqz4f9{ border-color:#c00; }
.prdsa{
  width:40px; height:40px; min-width:40px; border:none; background:var(--yj0-icbm); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.prdsa:disabled{ opacity:.5; cursor:not-allowed; }
.prdsa:not(:disabled):hover{ transform:scale(1.05); }
.prdsa:not(:disabled):active{ transform:scale(0.95); }
.prdsa:focus{ outline:2px solid var(--yj0-icbm); outline-offset:2px; }
.prdsa svg{ width:20px; height:20px; }

/* Character Counter */
.tnoj{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--ooqlj4-xg); }
.tnoj.zz3u4{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.xw93{
  align-self:flex-start;
  max-width:75%;
  background: var(--rxd-wj);
  color: var(--yj2o-o8);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nk8wqs-xn7);
}
.yprmj{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.o5tcar.bm1v{
  background: transparent; color: var(--yj2o-o8); border-color: var(--duhog-n8x2);
}
.o5tcar.bm1v:hover{
  background: var(--yj0-icbm); color:#fff; border-color: var(--yj0-icbm);
}

/* Mobile */
@media (max-width: 768px){
  .dbon{ bottom:16px; right:16px; }
  .dbon.yn8mb{ left:16px; }
  .jtewc{ --cklx-q46:60px; }
  .leiew{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--qx5vae-nnx) var(--qx5vae-nnx) 0 0; transform: translateY(100%);
  }
  .leiew.gcelz3{ transform: translateY(0); }
  .lju0l{ padding:20px; }
  .yko3m{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.dbon :focus-visible{ outline:2px solid var(--yj0-icbm); outline-offset:2px; }

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