/* CSS Variables */
:root {
  --qohdyu-jq: #4f46e5;
  --x418bu-xxw7: #ffffff;
  --oq8id3-d2dv: #f9fafb;
  --h8txj-wxhh: #0f172a;
  --iq521u-p0w: #6b7280;
  --edtt-pfks: #e5e7eb;
  --z0ccdo-tdi: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --w8pu5-i9: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --gey-dy: 16px;
  --t1e0ft-jlyc: 56px;
  --ud0f1t-b0: 12px;
  --gfhxnu-n4w: 999999;
}

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

/* Main Container */
.tsw1Dki4 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--gfhxnu-n4w);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--h8txj-wxhh);
}
.tsw1Dki4.kxW00 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.im5Q9sc { display: flex; flex-direction: column-reverse; gap: var(--ud0f1t-b0); align-items: center; }
.euxEmh8 {
  width: var(--t1e0ft-jlyc); height: var(--t1e0ft-jlyc); min-width: var(--t1e0ft-jlyc); min-height: var(--t1e0ft-jlyc);
  border-radius: 50%; border: none; background: var(--qohdyu-jq); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--z0ccdo-tdi);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.euxEmh8:hover { transform: scale(1.05); box-shadow: var(--w8pu5-i9); }
.euxEmh8:active { transform: scale(0.95); }
.euxEmh8:focus { outline: 2px solid var(--qohdyu-jq); outline-offset: 2px; }
.euxEmh8 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .euxEmh8.y3sSs7g{ animation:none; }
  .euxEmh8,.hp1Wgv,.ex0Mcn{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.hp1Wgv{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--x418bu-xxw7); border-radius: var(--gey-dy); box-shadow: var(--w8pu5-i9);
  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;
}
.tsw1Dki4.kxW00 .hp1Wgv{ right:auto; left:24px; }
.hp1Wgv.tt31N1kl{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.vkY2x{
  padding:16px 20px; background:var(--x418bu-xxw7); border-bottom:1px solid var(--edtt-pfks);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.cmkGnu{ width:10px; height:10px; border-radius:50%; background:var(--qohdyu-jq); flex-shrink:0; }
.hauDf5n{ flex:1; min-width:0; }
.h4vMe7{ font-size:16px; font-weight:600; color:var(--h8txj-wxhh); margin:0 0 2px 0; }
.wf0D72h{ font-size:13px; color:var(--iq521u-p0w); margin:0; }
.munzYx28{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--iq521u-p0w);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.munzYx28:hover{ background:var(--oq8id3-d2dv); color:var(--h8txj-wxhh); }
.munzYx28:focus{ outline:2px solid var(--qohdyu-jq); outline-offset:2px; }
.munzYx28 svg{ width:20px; height:20px; }

/* Body */
.bqzjDgg9{
  flex:1; overflow-y:auto; padding:16px; background:var(--oq8id3-d2dv);
  display:flex; flex-direction:column; gap:12px;
}
.bqzjDgg9::-webkit-scrollbar{ width:6px; }
.bqzjDgg9::-webkit-scrollbar-track{ background:transparent; }
.bqzjDgg9::-webkit-scrollbar-thumb{ background:var(--edtt-pfks); border-radius:3px; }
.bqzjDgg9::-webkit-scrollbar-thumb:hover{ background:var(--iq521u-p0w); }

/* Messages */
.ex0Mcn{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.ex0Mcn.zn5E72{ flex-direction:row-reverse; }
.d9x7Ogzv{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.d9x7Ogzv a{ color:inherit; }
.ex0Mcn.y4jU10 .d9x7Ogzv{ background:var(--x418bu-xxw7); color:var(--h8txj-wxhh); border-bottom-left-radius:4px; }
.ex0Mcn.zn5E72 .d9x7Ogzv{ background:var(--qohdyu-jq); color:#fff; border-bottom-right-radius:4px; }
.i8dgSp5v{ font-size:11px; color:var(--iq521u-p0w); margin-top:4px; display:block; }

/* Typing Indicator */
.mwUyv{
  display:flex; gap:8px; padding:10px 14px; background:var(--x418bu-xxw7);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.yjkwBxi4{ width:8px; height:8px; border-radius:50%; background:var(--iq521u-p0w); animation:typingDot 1.4s infinite; }
.yjkwBxi4:nth-child(2){ animation-delay:.2s; }
.yjkwBxi4: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) */
.dvmSti{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.lktRhw{
  border:0; border-radius:999px; padding:8px 12px; background:var(--qohdyu-jq); 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(--z0ccdo-tdi);
}
.lktRhw:is(:hover,:focus){ transform:translateY(-1px); }
a.lktRhw{ text-decoration:none; display:inline-block; }
a.lktRhw:link, a.lktRhw:visited{ color:#fff; }
a.lktRhw:hover, a.lktRhw:focus{ color:#fff; }

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

/* Footer */
.k8ySvc{
  padding:16px; background:var(--x418bu-xxw7); border-top:1px solid var(--edtt-pfks);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.euglXjnl{
  flex:1; padding:10px 14px; border:1px solid var(--edtt-pfks); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--h8txj-wxhh);
  background:var(--oq8id3-d2dv); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.euglXjnl:focus{ border-color:var(--qohdyu-jq); }
.euglXjnl::placeholder{ color:var(--iq521u-p0w); }
.euglXjnl.r0Wa3{ border-color:#c00; }
.ghpAoj4{
  width:40px; height:40px; min-width:40px; border:none; background:var(--qohdyu-jq); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.ghpAoj4:disabled{ opacity:.5; cursor:not-allowed; }
.ghpAoj4:not(:disabled):hover{ transform:scale(1.05); }
.ghpAoj4:not(:disabled):active{ transform:scale(0.95); }
.ghpAoj4:focus{ outline:2px solid var(--qohdyu-jq); outline-offset:2px; }
.ghpAoj4 svg{ width:20px; height:20px; }

/* Character Counter */
.j0awRn2i{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--iq521u-p0w); }
.j0awRn2i.umdYue{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.ib7aTp89{
  align-self:flex-start;
  max-width:75%;
  background: var(--x418bu-xxw7);
  color: var(--h8txj-wxhh);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--z0ccdo-tdi);
}
.m2fPjl{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.cz2Bnc2.fcvgN7iq{
  background: transparent; color: var(--h8txj-wxhh); border-color: var(--edtt-pfks);
}
.cz2Bnc2.fcvgN7iq:hover{
  background: var(--qohdyu-jq); color:#fff; border-color: var(--qohdyu-jq);
}

/* Mobile */
@media (max-width: 768px){
  .tsw1Dki4{ bottom:16px; right:16px; }
  .tsw1Dki4.kxW00{ left:16px; }
  .euxEmh8{ --t1e0ft-jlyc:60px; }
  .hp1Wgv{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--gey-dy) var(--gey-dy) 0 0; transform: translateY(100%);
  }
  .hp1Wgv.tt31N1kl{ transform: translateY(0); }
  .vkY2x{ padding:20px; }
  .k8ySvc{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.tsw1Dki4 :focus-visible{ outline:2px solid var(--qohdyu-jq); outline-offset:2px; }

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