/* CSS Variables */
:root {
  --cwy-g215: #4f46e5;
  --txl-f6: #ffffff;
  --a9n-q1: #f9fafb;
  --cp908-icfm: #0f172a;
  --a7x-qa: #6b7280;
  --nv8hk-if: #e5e7eb;
  --xjwb-nn: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --iint-d0: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --m7fq8p-za: 16px;
  --utrj-b27: 56px;
  --vu5tp-ee2x: 12px;
  --ore6td-ece: 999999;
}

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

/* Main Container */
.rtmbc6 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ore6td-ece);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--cp908-icfm);
}
.rtmbc6.m60au { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.wror { display: flex; flex-direction: column-reverse; gap: var(--vu5tp-ee2x); align-items: center; }
.m2ybz {
  width: var(--utrj-b27); height: var(--utrj-b27); min-width: var(--utrj-b27); min-height: var(--utrj-b27);
  border-radius: 50%; border: none; background: var(--cwy-g215); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--xjwb-nn);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.m2ybz:hover { transform: scale(1.05); box-shadow: var(--iint-d0); }
.m2ybz:active { transform: scale(0.95); }
.m2ybz:focus { outline: 2px solid var(--cwy-g215); outline-offset: 2px; }
.m2ybz svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .m2ybz.fcwpv{ animation:none; }
  .m2ybz,.mg8xvp,.n06i54{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.mg8xvp{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--txl-f6); border-radius: var(--m7fq8p-za); box-shadow: var(--iint-d0);
  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;
}
.rtmbc6.m60au .mg8xvp{ right:auto; left:24px; }
.mg8xvp.ja5h{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.e2yei{
  padding:16px 20px; background:var(--txl-f6); border-bottom:1px solid var(--nv8hk-if);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.vedw5{ width:10px; height:10px; border-radius:50%; background:var(--cwy-g215); flex-shrink:0; }
.bwatk{ flex:1; min-width:0; }
.z3opy{ font-size:16px; font-weight:600; color:var(--cp908-icfm); margin:0 0 2px 0; }
.y2fk74{ font-size:13px; color:var(--a7x-qa); margin:0; }
.f8zi{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--a7x-qa);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.f8zi:hover{ background:var(--a9n-q1); color:var(--cp908-icfm); }
.f8zi:focus{ outline:2px solid var(--cwy-g215); outline-offset:2px; }
.f8zi svg{ width:20px; height:20px; }

/* Body */
.tweq3{
  flex:1; overflow-y:auto; padding:16px; background:var(--a9n-q1);
  display:flex; flex-direction:column; gap:12px;
}
.tweq3::-webkit-scrollbar{ width:6px; }
.tweq3::-webkit-scrollbar-track{ background:transparent; }
.tweq3::-webkit-scrollbar-thumb{ background:var(--nv8hk-if); border-radius:3px; }
.tweq3::-webkit-scrollbar-thumb:hover{ background:var(--a7x-qa); }

/* Messages */
.n06i54{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.n06i54.s4sd{ flex-direction:row-reverse; }
.en6o{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.en6o a{ color:inherit; }
.n06i54.wqgj3h .en6o{ background:var(--txl-f6); color:var(--cp908-icfm); border-bottom-left-radius:4px; }
.n06i54.s4sd .en6o{ background:var(--cwy-g215); color:#fff; border-bottom-right-radius:4px; }
.g1dug{ font-size:11px; color:var(--a7x-qa); margin-top:4px; display:block; }

/* Typing Indicator */
.y3jwyk{
  display:flex; gap:8px; padding:10px 14px; background:var(--txl-f6);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.gimww{ width:8px; height:8px; border-radius:50%; background:var(--a7x-qa); animation:typingDot 1.4s infinite; }
.gimww:nth-child(2){ animation-delay:.2s; }
.gimww: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) */
.hemje5{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.xq8f{
  border:0; border-radius:999px; padding:8px 12px; background:var(--cwy-g215); 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(--xjwb-nn);
}
.xq8f:is(:hover,:focus){ transform:translateY(-1px); }
a.xq8f{ text-decoration:none; display:inline-block; }
a.xq8f:link, a.xq8f:visited{ color:#fff; }
a.xq8f:hover, a.xq8f:focus{ color:#fff; }

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

/* Footer */
.vi16g{
  padding:16px; background:var(--txl-f6); border-top:1px solid var(--nv8hk-if);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.lrwupp{
  flex:1; padding:10px 14px; border:1px solid var(--nv8hk-if); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--cp908-icfm);
  background:var(--a9n-q1); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.lrwupp:focus{ border-color:var(--cwy-g215); }
.lrwupp::placeholder{ color:var(--a7x-qa); }
.lrwupp.sn3z{ border-color:#c00; }
.tvgbk{
  width:40px; height:40px; min-width:40px; border:none; background:var(--cwy-g215); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.tvgbk:disabled{ opacity:.5; cursor:not-allowed; }
.tvgbk:not(:disabled):hover{ transform:scale(1.05); }
.tvgbk:not(:disabled):active{ transform:scale(0.95); }
.tvgbk:focus{ outline:2px solid var(--cwy-g215); outline-offset:2px; }
.tvgbk svg{ width:20px; height:20px; }

/* Character Counter */
.hk3er{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--a7x-qa); }
.hk3er.hur5t{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.k986{
  align-self:flex-start;
  max-width:75%;
  background: var(--txl-f6);
  color: var(--cp908-icfm);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--xjwb-nn);
}
.hwzpf{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.nkv2y1.j940{
  background: transparent; color: var(--cp908-icfm); border-color: var(--nv8hk-if);
}
.nkv2y1.j940:hover{
  background: var(--cwy-g215); color:#fff; border-color: var(--cwy-g215);
}

/* Mobile */
@media (max-width: 768px){
  .rtmbc6{ bottom:16px; right:16px; }
  .rtmbc6.m60au{ left:16px; }
  .m2ybz{ --utrj-b27:60px; }
  .mg8xvp{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--m7fq8p-za) var(--m7fq8p-za) 0 0; transform: translateY(100%);
  }
  .mg8xvp.ja5h{ transform: translateY(0); }
  .e2yei{ padding:20px; }
  .vi16g{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.rtmbc6 :focus-visible{ outline:2px solid var(--cwy-g215); outline-offset:2px; }

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