/* CSS Variables */
:root {
  --s22z-e4xe: #4f46e5;
  --oie-q1: #ffffff;
  --vij1qn-fxv: #f9fafb;
  --az2-khdg: #0f172a;
  --yj7oz3-pq: #6b7280;
  --z9qo-ixfe: #e5e7eb;
  --fz5-j1kk: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --for-yugt: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --lb5nv-ej27: 16px;
  --h3uo6-z6rc: 56px;
  --sfcg-xs0: 12px;
  --yoplx-q4mq: 999999;
}

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

/* Main Container */
.kt1X1i {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--yoplx-q4mq);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--az2-khdg);
}
.kt1X1i.lrfqGtbt { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.cudEd6j { display: flex; flex-direction: column-reverse; gap: var(--sfcg-xs0); align-items: center; }
.mnxDbm {
  width: var(--h3uo6-z6rc); height: var(--h3uo6-z6rc); min-width: var(--h3uo6-z6rc); min-height: var(--h3uo6-z6rc);
  border-radius: 50%; border: none; background: var(--s22z-e4xe); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--fz5-j1kk);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.mnxDbm:hover { transform: scale(1.05); box-shadow: var(--for-yugt); }
.mnxDbm:active { transform: scale(0.95); }
.mnxDbm:focus { outline: 2px solid var(--s22z-e4xe); outline-offset: 2px; }
.mnxDbm svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .mnxDbm.ueaXx1y{ animation:none; }
  .mnxDbm,.y11nO7sl,.oraDy74{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.y11nO7sl{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--oie-q1); border-radius: var(--lb5nv-ej27); box-shadow: var(--for-yugt);
  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;
}
.kt1X1i.lrfqGtbt .y11nO7sl{ right:auto; left:24px; }
.y11nO7sl.kkgMr3n{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.r01Uin{
  padding:16px 20px; background:var(--oie-q1); border-bottom:1px solid var(--z9qo-ixfe);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.roNo9{ width:10px; height:10px; border-radius:50%; background:var(--s22z-e4xe); flex-shrink:0; }
.ed5Tjb{ flex:1; min-width:0; }
.eiRr3{ font-size:16px; font-weight:600; color:var(--az2-khdg); margin:0 0 2px 0; }
.tkpG2u7{ font-size:13px; color:var(--yj7oz3-pq); margin:0; }
.rq1Ru9{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--yj7oz3-pq);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.rq1Ru9:hover{ background:var(--vij1qn-fxv); color:var(--az2-khdg); }
.rq1Ru9:focus{ outline:2px solid var(--s22z-e4xe); outline-offset:2px; }
.rq1Ru9 svg{ width:20px; height:20px; }

/* Body */
.tyuVlo5{
  flex:1; overflow-y:auto; padding:16px; background:var(--vij1qn-fxv);
  display:flex; flex-direction:column; gap:12px;
}
.tyuVlo5::-webkit-scrollbar{ width:6px; }
.tyuVlo5::-webkit-scrollbar-track{ background:transparent; }
.tyuVlo5::-webkit-scrollbar-thumb{ background:var(--z9qo-ixfe); border-radius:3px; }
.tyuVlo5::-webkit-scrollbar-thumb:hover{ background:var(--yj7oz3-pq); }

/* Messages */
.oraDy74{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.oraDy74.g7cF3ee{ flex-direction:row-reverse; }
.sxYnf{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.sxYnf a{ color:inherit; }
.oraDy74.dlm2Xg8z .sxYnf{ background:var(--oie-q1); color:var(--az2-khdg); border-bottom-left-radius:4px; }
.oraDy74.g7cF3ee .sxYnf{ background:var(--s22z-e4xe); color:#fff; border-bottom-right-radius:4px; }
.l10cC452{ font-size:11px; color:var(--yj7oz3-pq); margin-top:4px; display:block; }

/* Typing Indicator */
.e9B0p{
  display:flex; gap:8px; padding:10px 14px; background:var(--oie-q1);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.w5gEy2{ width:8px; height:8px; border-radius:50%; background:var(--yj7oz3-pq); animation:typingDot 1.4s infinite; }
.w5gEy2:nth-child(2){ animation-delay:.2s; }
.w5gEy2: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) */
.ghhZrh{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.fr8Nx9t{
  border:0; border-radius:999px; padding:8px 12px; background:var(--s22z-e4xe); 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(--fz5-j1kk);
}
.fr8Nx9t:is(:hover,:focus){ transform:translateY(-1px); }
a.fr8Nx9t{ text-decoration:none; display:inline-block; }
a.fr8Nx9t:link, a.fr8Nx9t:visited{ color:#fff; }
a.fr8Nx9t:hover, a.fr8Nx9t:focus{ color:#fff; }

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

/* Footer */
.vvP1g{
  padding:16px; background:var(--oie-q1); border-top:1px solid var(--z9qo-ixfe);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.xpCg4{
  flex:1; padding:10px 14px; border:1px solid var(--z9qo-ixfe); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--az2-khdg);
  background:var(--vij1qn-fxv); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.xpCg4:focus{ border-color:var(--s22z-e4xe); }
.xpCg4::placeholder{ color:var(--yj7oz3-pq); }
.xpCg4.qzU0s{ border-color:#c00; }
.mdD9f{
  width:40px; height:40px; min-width:40px; border:none; background:var(--s22z-e4xe); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.mdD9f:disabled{ opacity:.5; cursor:not-allowed; }
.mdD9f:not(:disabled):hover{ transform:scale(1.05); }
.mdD9f:not(:disabled):active{ transform:scale(0.95); }
.mdD9f:focus{ outline:2px solid var(--s22z-e4xe); outline-offset:2px; }
.mdD9f svg{ width:20px; height:20px; }

/* Character Counter */
.rlRny{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--yj7oz3-pq); }
.rlRny.baA26{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.dayHgi{
  align-self:flex-start;
  max-width:75%;
  background: var(--oie-q1);
  color: var(--az2-khdg);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--fz5-j1kk);
}
.ugqA12y{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.q8aGh5.bpmUzs{
  background: transparent; color: var(--az2-khdg); border-color: var(--z9qo-ixfe);
}
.q8aGh5.bpmUzs:hover{
  background: var(--s22z-e4xe); color:#fff; border-color: var(--s22z-e4xe);
}

/* Mobile */
@media (max-width: 768px){
  .kt1X1i{ bottom:16px; right:16px; }
  .kt1X1i.lrfqGtbt{ left:16px; }
  .mnxDbm{ --h3uo6-z6rc:60px; }
  .y11nO7sl{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--lb5nv-ej27) var(--lb5nv-ej27) 0 0; transform: translateY(100%);
  }
  .y11nO7sl.kkgMr3n{ transform: translateY(0); }
  .r01Uin{ padding:20px; }
  .vvP1g{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.kt1X1i :focus-visible{ outline:2px solid var(--s22z-e4xe); outline-offset:2px; }

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