/* CSS Variables */
:root {
  --zozb-mdhg: #4f46e5;
  --rxob8p-do: #ffffff;
  --c9re-ty8: #f9fafb;
  --gd34s-dl: #0f172a;
  --omz-erm: #6b7280;
  --i7i-ria: #e5e7eb;
  --mwk-elc: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --biast-n5a: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --vthxsk-qx3: 16px;
  --xbmnit-h4j: 56px;
  --bz54gl-ob48: 12px;
  --v70d-jo: 999999;
}

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

/* Main Container */
.qkmx1 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--v70d-jo);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--gd34s-dl);
}
.qkmx1.w8kxf { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.vhxfz { display: flex; flex-direction: column-reverse; gap: var(--bz54gl-ob48); align-items: center; }
.zncgc {
  width: var(--xbmnit-h4j); height: var(--xbmnit-h4j); min-width: var(--xbmnit-h4j); min-height: var(--xbmnit-h4j);
  border-radius: 50%; border: none; background: var(--zozb-mdhg); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mwk-elc);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.zncgc:hover { transform: scale(1.05); box-shadow: var(--biast-n5a); }
.zncgc:active { transform: scale(0.95); }
.zncgc:focus { outline: 2px solid var(--zozb-mdhg); outline-offset: 2px; }
.zncgc svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .zncgc.buanu7{ animation:none; }
  .zncgc,.cwr4vp,.gcgpxk{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.cwr4vp{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--rxob8p-do); border-radius: var(--vthxsk-qx3); box-shadow: var(--biast-n5a);
  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;
}
.qkmx1.w8kxf .cwr4vp{ right:auto; left:24px; }
.cwr4vp.bmguwd{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.wkspeh{
  padding:16px 20px; background:var(--rxob8p-do); border-bottom:1px solid var(--i7i-ria);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.dsw4{ width:10px; height:10px; border-radius:50%; background:var(--zozb-mdhg); flex-shrink:0; }
.yits{ flex:1; min-width:0; }
.eq2i9q{ font-size:16px; font-weight:600; color:var(--gd34s-dl); margin:0 0 2px 0; }
.vuy7{ font-size:13px; color:var(--omz-erm); margin:0; }
.iib6{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--omz-erm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.iib6:hover{ background:var(--c9re-ty8); color:var(--gd34s-dl); }
.iib6:focus{ outline:2px solid var(--zozb-mdhg); outline-offset:2px; }
.iib6 svg{ width:20px; height:20px; }

/* Body */
.cpzt{
  flex:1; overflow-y:auto; padding:16px; background:var(--c9re-ty8);
  display:flex; flex-direction:column; gap:12px;
}
.cpzt::-webkit-scrollbar{ width:6px; }
.cpzt::-webkit-scrollbar-track{ background:transparent; }
.cpzt::-webkit-scrollbar-thumb{ background:var(--i7i-ria); border-radius:3px; }
.cpzt::-webkit-scrollbar-thumb:hover{ background:var(--omz-erm); }

/* Messages */
.gcgpxk{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.gcgpxk.qr2m{ flex-direction:row-reverse; }
.mlv9a{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.mlv9a a{ color:inherit; }
.gcgpxk.uo4vc .mlv9a{ background:var(--rxob8p-do); color:var(--gd34s-dl); border-bottom-left-radius:4px; }
.gcgpxk.qr2m .mlv9a{ background:var(--zozb-mdhg); color:#fff; border-bottom-right-radius:4px; }
.vxe8e4{ font-size:11px; color:var(--omz-erm); margin-top:4px; display:block; }

/* Typing Indicator */
.ix88{
  display:flex; gap:8px; padding:10px 14px; background:var(--rxob8p-do);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.fm9h{ width:8px; height:8px; border-radius:50%; background:var(--omz-erm); animation:typingDot 1.4s infinite; }
.fm9h:nth-child(2){ animation-delay:.2s; }
.fm9h: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) */
.ap2m{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.t4ogi{
  border:0; border-radius:999px; padding:8px 12px; background:var(--zozb-mdhg); 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(--mwk-elc);
}
.t4ogi:is(:hover,:focus){ transform:translateY(-1px); }
a.t4ogi{ text-decoration:none; display:inline-block; }
a.t4ogi:link, a.t4ogi:visited{ color:#fff; }
a.t4ogi:hover, a.t4ogi:focus{ color:#fff; }

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

/* Footer */
.qwex{
  padding:16px; background:var(--rxob8p-do); border-top:1px solid var(--i7i-ria);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ai6lbb{
  flex:1; padding:10px 14px; border:1px solid var(--i7i-ria); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--gd34s-dl);
  background:var(--c9re-ty8); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ai6lbb:focus{ border-color:var(--zozb-mdhg); }
.ai6lbb::placeholder{ color:var(--omz-erm); }
.ai6lbb.o6gf{ border-color:#c00; }
.b77dp{
  width:40px; height:40px; min-width:40px; border:none; background:var(--zozb-mdhg); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.b77dp:disabled{ opacity:.5; cursor:not-allowed; }
.b77dp:not(:disabled):hover{ transform:scale(1.05); }
.b77dp:not(:disabled):active{ transform:scale(0.95); }
.b77dp:focus{ outline:2px solid var(--zozb-mdhg); outline-offset:2px; }
.b77dp svg{ width:20px; height:20px; }

/* Character Counter */
.o2fol{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--omz-erm); }
.o2fol.hcqcg5{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.y7tvyp{
  align-self:flex-start;
  max-width:75%;
  background: var(--rxob8p-do);
  color: var(--gd34s-dl);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mwk-elc);
}
.ewo8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.ti70.xd74vw{
  background: transparent; color: var(--gd34s-dl); border-color: var(--i7i-ria);
}
.ti70.xd74vw:hover{
  background: var(--zozb-mdhg); color:#fff; border-color: var(--zozb-mdhg);
}

/* Mobile */
@media (max-width: 768px){
  .qkmx1{ bottom:16px; right:16px; }
  .qkmx1.w8kxf{ left:16px; }
  .zncgc{ --xbmnit-h4j:60px; }
  .cwr4vp{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--vthxsk-qx3) var(--vthxsk-qx3) 0 0; transform: translateY(100%);
  }
  .cwr4vp.bmguwd{ transform: translateY(0); }
  .wkspeh{ padding:20px; }
  .qwex{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.qkmx1 :focus-visible{ outline:2px solid var(--zozb-mdhg); outline-offset:2px; }

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