/* CSS Variables */
:root {
  --xcf-gsx: #4f46e5;
  --k8dm3d-uu: #ffffff;
  --yvfow-jz: #f9fafb;
  --a72o-aary: #0f172a;
  --r4ht-pzm: #6b7280;
  --g5hl-m9g: #e5e7eb;
  --piiao-vu1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --pyacb-n5: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --oemoj-i4o1: 16px;
  --xqfcy-avj3: 56px;
  --bac-u6b8: 12px;
  --dlju8-s5: 999999;
}

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

/* Main Container */
.crtu_t {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--dlju8-s5);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--a72o-aary);
}
.crtu_t.hqoypxuy7 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.i3dyua5g { display: flex; flex-direction: column-reverse; gap: var(--bac-u6b8); align-items: center; }
.q154x1cg {
  width: var(--xqfcy-avj3); height: var(--xqfcy-avj3); min-width: var(--xqfcy-avj3); min-height: var(--xqfcy-avj3);
  border-radius: 50%; border: none; background: var(--xcf-gsx); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--piiao-vu1);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.q154x1cg:hover { transform: scale(1.05); box-shadow: var(--pyacb-n5); }
.q154x1cg:active { transform: scale(0.95); }
.q154x1cg:focus { outline: 2px solid var(--xcf-gsx); outline-offset: 2px; }
.q154x1cg svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .q154x1cg.dixz0_y_5{ animation:none; }
  .q154x1cg,.luzkhrn,.cx8nkswo5{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.luzkhrn{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--k8dm3d-uu); border-radius: var(--oemoj-i4o1); box-shadow: var(--pyacb-n5);
  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;
}
.crtu_t.hqoypxuy7 .luzkhrn{ right:auto; left:24px; }
.luzkhrn.khr4r94yc{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.hya865{
  padding:16px 20px; background:var(--k8dm3d-uu); border-bottom:1px solid var(--g5hl-m9g);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.fus5u4{ width:10px; height:10px; border-radius:50%; background:var(--xcf-gsx); flex-shrink:0; }
.gt1u89{ flex:1; min-width:0; }
.o8xjzg{ font-size:16px; font-weight:600; color:var(--a72o-aary); margin:0 0 2px 0; }
.wtnv37sgy1{ font-size:13px; color:var(--r4ht-pzm); margin:0; }
.frj2q2q7u{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--r4ht-pzm);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.frj2q2q7u:hover{ background:var(--yvfow-jz); color:var(--a72o-aary); }
.frj2q2q7u:focus{ outline:2px solid var(--xcf-gsx); outline-offset:2px; }
.frj2q2q7u svg{ width:20px; height:20px; }

/* Body */
.k18y75hv{
  flex:1; overflow-y:auto; padding:16px; background:var(--yvfow-jz);
  display:flex; flex-direction:column; gap:12px;
}
.k18y75hv::-webkit-scrollbar{ width:6px; }
.k18y75hv::-webkit-scrollbar-track{ background:transparent; }
.k18y75hv::-webkit-scrollbar-thumb{ background:var(--g5hl-m9g); border-radius:3px; }
.k18y75hv::-webkit-scrollbar-thumb:hover{ background:var(--r4ht-pzm); }

/* Messages */
.cx8nkswo5{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.cx8nkswo5.mqj4kn5y{ flex-direction:row-reverse; }
.han64xw{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.han64xw a{ color:inherit; }
.cx8nkswo5.vigctc .han64xw{ background:var(--k8dm3d-uu); color:var(--a72o-aary); border-bottom-left-radius:4px; }
.cx8nkswo5.mqj4kn5y .han64xw{ background:var(--xcf-gsx); color:#fff; border-bottom-right-radius:4px; }
.ukbntlpht{ font-size:11px; color:var(--r4ht-pzm); margin-top:4px; display:block; }

/* Typing Indicator */
.hsdmi5n{
  display:flex; gap:8px; padding:10px 14px; background:var(--k8dm3d-uu);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.wezpw8u1n{ width:8px; height:8px; border-radius:50%; background:var(--r4ht-pzm); animation:typingDot 1.4s infinite; }
.wezpw8u1n:nth-child(2){ animation-delay:.2s; }
.wezpw8u1n: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) */
.dfxi99od{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.tah6fg60{
  border:0; border-radius:999px; padding:8px 12px; background:var(--xcf-gsx); 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(--piiao-vu1);
}
.tah6fg60:is(:hover,:focus){ transform:translateY(-1px); }
a.tah6fg60{ text-decoration:none; display:inline-block; }
a.tah6fg60:link, a.tah6fg60:visited{ color:#fff; }
a.tah6fg60:hover, a.tah6fg60:focus{ color:#fff; }

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

/* Footer */
.jpb006{
  padding:16px; background:var(--k8dm3d-uu); border-top:1px solid var(--g5hl-m9g);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.im65ug2dem{
  flex:1; padding:10px 14px; border:1px solid var(--g5hl-m9g); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--a72o-aary);
  background:var(--yvfow-jz); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.im65ug2dem:focus{ border-color:var(--xcf-gsx); }
.im65ug2dem::placeholder{ color:var(--r4ht-pzm); }
.im65ug2dem.r6zherc{ border-color:#c00; }
.u0au8q2{
  width:40px; height:40px; min-width:40px; border:none; background:var(--xcf-gsx); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.u0au8q2:disabled{ opacity:.5; cursor:not-allowed; }
.u0au8q2:not(:disabled):hover{ transform:scale(1.05); }
.u0au8q2:not(:disabled):active{ transform:scale(0.95); }
.u0au8q2:focus{ outline:2px solid var(--xcf-gsx); outline-offset:2px; }
.u0au8q2 svg{ width:20px; height:20px; }

/* Character Counter */
.nzv3cz{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--r4ht-pzm); }
.nzv3cz.b79umzpaf{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.aho7sh5z59{
  align-self:flex-start;
  max-width:75%;
  background: var(--k8dm3d-uu);
  color: var(--a72o-aary);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--piiao-vu1);
}
.skely5s8{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.pql664kp.xacoqwnyi{
  background: transparent; color: var(--a72o-aary); border-color: var(--g5hl-m9g);
}
.pql664kp.xacoqwnyi:hover{
  background: var(--xcf-gsx); color:#fff; border-color: var(--xcf-gsx);
}

/* Mobile */
@media (max-width: 768px){
  .crtu_t{ bottom:16px; right:16px; }
  .crtu_t.hqoypxuy7{ left:16px; }
  .q154x1cg{ --xqfcy-avj3:60px; }
  .luzkhrn{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--oemoj-i4o1) var(--oemoj-i4o1) 0 0; transform: translateY(100%);
  }
  .luzkhrn.khr4r94yc{ transform: translateY(0); }
  .hya865{ padding:20px; }
  .jpb006{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.crtu_t :focus-visible{ outline:2px solid var(--xcf-gsx); outline-offset:2px; }

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