/* CSS Variables */
:root {
  --kkf-bc3: #4f46e5;
  --g4kpc-s327: #ffffff;
  --u31-he7: #f9fafb;
  --p2t-nr5b: #0f172a;
  --eszz-hx9m: #6b7280;
  --zh1l-la45: #e5e7eb;
  --mk1dt-qwyc: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --d1z-ly: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --fywdv-tf: 16px;
  --xke-ytk6: 56px;
  --ht41d-hsy8: 12px;
  --jf7f-u4: 999999;
}

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

/* Main Container */
.xnpzwq4v8 {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--jf7f-u4);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--p2t-nr5b);
}
.xnpzwq4v8.ovaz4rj { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.zuoolxb6j { display: flex; flex-direction: column-reverse; gap: var(--ht41d-hsy8); align-items: center; }
.gngcwiebad {
  width: var(--xke-ytk6); height: var(--xke-ytk6); min-width: var(--xke-ytk6); min-height: var(--xke-ytk6);
  border-radius: 50%; border: none; background: var(--kkf-bc3); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--mk1dt-qwyc);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.gngcwiebad:hover { transform: scale(1.05); box-shadow: var(--d1z-ly); }
.gngcwiebad:active { transform: scale(0.95); }
.gngcwiebad:focus { outline: 2px solid var(--kkf-bc3); outline-offset: 2px; }
.gngcwiebad svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .gngcwiebad.i0j4c9c60{ animation:none; }
  .gngcwiebad,.gkogzjany,.q1s11umn{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.gkogzjany{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--g4kpc-s327); border-radius: var(--fywdv-tf); box-shadow: var(--d1z-ly);
  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;
}
.xnpzwq4v8.ovaz4rj .gkogzjany{ right:auto; left:24px; }
.gkogzjany.mv8psfg3{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.ssjuwwl7ul{
  padding:16px 20px; background:var(--g4kpc-s327); border-bottom:1px solid var(--zh1l-la45);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.wwgf5yq{ width:10px; height:10px; border-radius:50%; background:var(--kkf-bc3); flex-shrink:0; }
.m5ag9fy{ flex:1; min-width:0; }
.r8b3_ea2{ font-size:16px; font-weight:600; color:var(--p2t-nr5b); margin:0 0 2px 0; }
.r5c6400xv{ font-size:13px; color:var(--eszz-hx9m); margin:0; }
.ulzh_00{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--eszz-hx9m);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ulzh_00:hover{ background:var(--u31-he7); color:var(--p2t-nr5b); }
.ulzh_00:focus{ outline:2px solid var(--kkf-bc3); outline-offset:2px; }
.ulzh_00 svg{ width:20px; height:20px; }

/* Body */
.nktfs0xhu{
  flex:1; overflow-y:auto; padding:16px; background:var(--u31-he7);
  display:flex; flex-direction:column; gap:12px;
}
.nktfs0xhu::-webkit-scrollbar{ width:6px; }
.nktfs0xhu::-webkit-scrollbar-track{ background:transparent; }
.nktfs0xhu::-webkit-scrollbar-thumb{ background:var(--zh1l-la45); border-radius:3px; }
.nktfs0xhu::-webkit-scrollbar-thumb:hover{ background:var(--eszz-hx9m); }

/* Messages */
.q1s11umn{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.q1s11umn.gbdt6ma{ flex-direction:row-reverse; }
.ht46wopm{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.ht46wopm a{ color:inherit; }
.q1s11umn.dykcgrqtb4 .ht46wopm{ background:var(--g4kpc-s327); color:var(--p2t-nr5b); border-bottom-left-radius:4px; }
.q1s11umn.gbdt6ma .ht46wopm{ background:var(--kkf-bc3); color:#fff; border-bottom-right-radius:4px; }
.ulp_5ve381{ font-size:11px; color:var(--eszz-hx9m); margin-top:4px; display:block; }

/* Typing Indicator */
.g6qa04um1{
  display:flex; gap:8px; padding:10px 14px; background:var(--g4kpc-s327);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.suoroa{ width:8px; height:8px; border-radius:50%; background:var(--eszz-hx9m); animation:typingDot 1.4s infinite; }
.suoroa:nth-child(2){ animation-delay:.2s; }
.suoroa: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) */
.yyhl014{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.cq01iqav3s{
  border:0; border-radius:999px; padding:8px 12px; background:var(--kkf-bc3); 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(--mk1dt-qwyc);
}
.cq01iqav3s:is(:hover,:focus){ transform:translateY(-1px); }
a.cq01iqav3s{ text-decoration:none; display:inline-block; }
a.cq01iqav3s:link, a.cq01iqav3s:visited{ color:#fff; }
a.cq01iqav3s:hover, a.cq01iqav3s:focus{ color:#fff; }

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

/* Footer */
.w2cfnshb{
  padding:16px; background:var(--g4kpc-s327); border-top:1px solid var(--zh1l-la45);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.r02van{
  flex:1; padding:10px 14px; border:1px solid var(--zh1l-la45); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--p2t-nr5b);
  background:var(--u31-he7); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.r02van:focus{ border-color:var(--kkf-bc3); }
.r02van::placeholder{ color:var(--eszz-hx9m); }
.r02van.xxo3luvrkh{ border-color:#c00; }
.xwpmja7{
  width:40px; height:40px; min-width:40px; border:none; background:var(--kkf-bc3); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.xwpmja7:disabled{ opacity:.5; cursor:not-allowed; }
.xwpmja7:not(:disabled):hover{ transform:scale(1.05); }
.xwpmja7:not(:disabled):active{ transform:scale(0.95); }
.xwpmja7:focus{ outline:2px solid var(--kkf-bc3); outline-offset:2px; }
.xwpmja7 svg{ width:20px; height:20px; }

/* Character Counter */
.c2iz35e0{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--eszz-hx9m); }
.c2iz35e0.a_xxk5j{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.a0uin4jh{
  align-self:flex-start;
  max-width:75%;
  background: var(--g4kpc-s327);
  color: var(--p2t-nr5b);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--mk1dt-qwyc);
}
.lytnqx8gb3{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.e5zggj.edzcc1v_48{
  background: transparent; color: var(--p2t-nr5b); border-color: var(--zh1l-la45);
}
.e5zggj.edzcc1v_48:hover{
  background: var(--kkf-bc3); color:#fff; border-color: var(--kkf-bc3);
}

/* Mobile */
@media (max-width: 768px){
  .xnpzwq4v8{ bottom:16px; right:16px; }
  .xnpzwq4v8.ovaz4rj{ left:16px; }
  .gngcwiebad{ --xke-ytk6:60px; }
  .gkogzjany{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--fywdv-tf) var(--fywdv-tf) 0 0; transform: translateY(100%);
  }
  .gkogzjany.mv8psfg3{ transform: translateY(0); }
  .ssjuwwl7ul{ padding:20px; }
  .w2cfnshb{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.xnpzwq4v8 :focus-visible{ outline:2px solid var(--kkf-bc3); outline-offset:2px; }

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