/* CSS Variables */
:root {
  --vq4qj-e0: #4f46e5;
  --qxeoa5-qp7: #ffffff;
  --z1d8hx-l8: #f9fafb;
  --ydd0-bu: #0f172a;
  --vbhr-h70: #6b7280;
  --mipz-fash: #e5e7eb;
  --padm7r-u3o: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --zeji-e2xq: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --jym7-wdo: 16px;
  --u7v1r-cwvy: 56px;
  --d6w-fu: 12px;
  --bbchbi-zn3m: 999999;
}

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

/* Main Container */
.pla-u4mls11zud {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--bbchbi-zn3m);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--ydd0-bu);
}
.pla-u4mls11zud.pla-ym1bzbmwij { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.pla-r3d7revhg { display: flex; flex-direction: column-reverse; gap: var(--d6w-fu); align-items: center; }
.pla-bxvotbdk4ad {
  width: var(--u7v1r-cwvy); height: var(--u7v1r-cwvy); min-width: var(--u7v1r-cwvy); min-height: var(--u7v1r-cwvy);
  border-radius: 50%; border: none; background: var(--vq4qj-e0); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--padm7r-u3o);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.pla-bxvotbdk4ad:hover { transform: scale(1.05); box-shadow: var(--zeji-e2xq); }
.pla-bxvotbdk4ad:active { transform: scale(0.95); }
.pla-bxvotbdk4ad:focus { outline: 2px solid var(--vq4qj-e0); outline-offset: 2px; }
.pla-bxvotbdk4ad svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .pla-bxvotbdk4ad.pla-l42eb0lpg{ animation:none; }
  .pla-bxvotbdk4ad,.pla-vncqgris8tg6,.pla-moq5gwbw8ok{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.pla-vncqgris8tg6{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--qxeoa5-qp7); border-radius: var(--jym7-wdo); box-shadow: var(--zeji-e2xq);
  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;
}
.pla-u4mls11zud.pla-ym1bzbmwij .pla-vncqgris8tg6{ right:auto; left:24px; }
.pla-vncqgris8tg6.pla-giyjlpkb{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.pla-qw98482ww5{
  padding:16px 20px; background:var(--qxeoa5-qp7); border-bottom:1px solid var(--mipz-fash);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.pla-g1ch28lwhxbd{ width:10px; height:10px; border-radius:50%; background:var(--vq4qj-e0); flex-shrink:0; }
.pla-d32ilt31{ flex:1; min-width:0; }
.pla-ifmgnywjg{ font-size:16px; font-weight:600; color:var(--ydd0-bu); margin:0 0 2px 0; }
.pla-pl9hotrj4xp{ font-size:13px; color:var(--vbhr-h70); margin:0; }
.pla-xj2vxuin9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--vbhr-h70);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.pla-xj2vxuin9:hover{ background:var(--z1d8hx-l8); color:var(--ydd0-bu); }
.pla-xj2vxuin9:focus{ outline:2px solid var(--vq4qj-e0); outline-offset:2px; }
.pla-xj2vxuin9 svg{ width:20px; height:20px; }

/* Body */
.pla-tmtl115uyirk{
  flex:1; overflow-y:auto; padding:16px; background:var(--z1d8hx-l8);
  display:flex; flex-direction:column; gap:12px;
}
.pla-tmtl115uyirk::-webkit-scrollbar{ width:6px; }
.pla-tmtl115uyirk::-webkit-scrollbar-track{ background:transparent; }
.pla-tmtl115uyirk::-webkit-scrollbar-thumb{ background:var(--mipz-fash); border-radius:3px; }
.pla-tmtl115uyirk::-webkit-scrollbar-thumb:hover{ background:var(--vbhr-h70); }

/* Messages */
.pla-moq5gwbw8ok{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.pla-moq5gwbw8ok.pla-u1963py81{ flex-direction:row-reverse; }
.pla-quirrvsik31{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.pla-quirrvsik31 a{ color:inherit; }
.pla-moq5gwbw8ok.pla-iroh4yfh1 .pla-quirrvsik31{ background:var(--qxeoa5-qp7); color:var(--ydd0-bu); border-bottom-left-radius:4px; }
.pla-moq5gwbw8ok.pla-u1963py81 .pla-quirrvsik31{ background:var(--vq4qj-e0); color:#fff; border-bottom-right-radius:4px; }
.pla-t1c6y1kzb{ font-size:11px; color:var(--vbhr-h70); margin-top:4px; display:block; }

/* Typing Indicator */
.pla-mkapmuf2{
  display:flex; gap:8px; padding:10px 14px; background:var(--qxeoa5-qp7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.pla-gloksl956dl{ width:8px; height:8px; border-radius:50%; background:var(--vbhr-h70); animation:typingDot 1.4s infinite; }
.pla-gloksl956dl:nth-child(2){ animation-delay:.2s; }
.pla-gloksl956dl: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) */
.pla-yn5kcontez{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.pla-ct381qlm{
  border:0; border-radius:999px; padding:8px 12px; background:var(--vq4qj-e0); 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(--padm7r-u3o);
}
.pla-ct381qlm:is(:hover,:focus){ transform:translateY(-1px); }
a.pla-ct381qlm{ text-decoration:none; display:inline-block; }
a.pla-ct381qlm:link, a.pla-ct381qlm:visited{ color:#fff; }
a.pla-ct381qlm:hover, a.pla-ct381qlm:focus{ color:#fff; }

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

/* Footer */
.pla-md0z2u6wtsg{
  padding:16px; background:var(--qxeoa5-qp7); border-top:1px solid var(--mipz-fash);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.pla-j7d9yqm6qvod{
  flex:1; padding:10px 14px; border:1px solid var(--mipz-fash); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--ydd0-bu);
  background:var(--z1d8hx-l8); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.pla-j7d9yqm6qvod:focus{ border-color:var(--vq4qj-e0); }
.pla-j7d9yqm6qvod::placeholder{ color:var(--vbhr-h70); }
.pla-j7d9yqm6qvod.pla-umyxpmfm2ye{ border-color:#c00; }
.pla-jfylav8n{
  width:40px; height:40px; min-width:40px; border:none; background:var(--vq4qj-e0); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.pla-jfylav8n:disabled{ opacity:.5; cursor:not-allowed; }
.pla-jfylav8n:not(:disabled):hover{ transform:scale(1.05); }
.pla-jfylav8n:not(:disabled):active{ transform:scale(0.95); }
.pla-jfylav8n:focus{ outline:2px solid var(--vq4qj-e0); outline-offset:2px; }
.pla-jfylav8n svg{ width:20px; height:20px; }

/* Character Counter */
.pla-o93o5lcgm{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--vbhr-h70); }
.pla-o93o5lcgm.pla-s0mobbnzca{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pla-i8ti382k8byd{
  align-self:flex-start;
  max-width:75%;
  background: var(--qxeoa5-qp7);
  color: var(--ydd0-bu);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--padm7r-u3o);
}
.pla-emm4k9b7z{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pla-hp7cf5ma8.pla-sjgsieboqj{
  background: transparent; color: var(--ydd0-bu); border-color: var(--mipz-fash);
}
.pla-hp7cf5ma8.pla-sjgsieboqj:hover{
  background: var(--vq4qj-e0); color:#fff; border-color: var(--vq4qj-e0);
}

/* Mobile */
@media (max-width: 768px){
  .pla-u4mls11zud{ bottom:16px; right:16px; }
  .pla-u4mls11zud.pla-ym1bzbmwij{ left:16px; }
  .pla-bxvotbdk4ad{ --u7v1r-cwvy:60px; }
  .pla-vncqgris8tg6{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--jym7-wdo) var(--jym7-wdo) 0 0; transform: translateY(100%);
  }
  .pla-vncqgris8tg6.pla-giyjlpkb{ transform: translateY(0); }
  .pla-qw98482ww5{ padding:20px; }
  .pla-md0z2u6wtsg{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.pla-u4mls11zud :focus-visible{ outline:2px solid var(--vq4qj-e0); outline-offset:2px; }

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