/* CSS Variables */
:root {
  --omar-pta: #4f46e5;
  --ldck-fsfp: #ffffff;
  --p24wd-fusm: #f9fafb;
  --spr-nyo: #0f172a;
  --p7su-up: #6b7280;
  --xwhn-l9: #e5e7eb;
  --nfz-d55: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --p7l3u9-cko: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --kuq-molv: 16px;
  --kczg-gy9a: 56px;
  --f20zcm-t1: 12px;
  --ozwclu-awk7: 999999;
}

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

/* Main Container */
.cd3ewz {
  position: fixed; bottom: 24px; right: 24px; z-index: var(--ozwclu-awk7);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px; line-height: 1.5; color: var(--spr-nyo);
}
.cd3ewz.lsojso73 { right: auto; left: 24px; }

/* Floating Panel - Buttons */
.oxt3x__7 { display: flex; flex-direction: column-reverse; gap: var(--f20zcm-t1); align-items: center; }
.y8rd87ikz7 {
  width: var(--kczg-gy9a); height: var(--kczg-gy9a); min-width: var(--kczg-gy9a); min-height: var(--kczg-gy9a);
  border-radius: 50%; border: none; background: var(--omar-pta); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nfz-d55);
  transition: transform .2s ease, box-shadow .2s ease; position: relative; overflow: visible;
}
.y8rd87ikz7:hover { transform: scale(1.05); box-shadow: var(--p7l3u9-cko); }
.y8rd87ikz7:active { transform: scale(0.95); }
.y8rd87ikz7:focus { outline: 2px solid var(--omar-pta); outline-offset: 2px; }
.y8rd87ikz7 svg { width: 24px; height: 24px; fill: currentColor; }

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .y8rd87ikz7.e1wg97ev{ animation:none; }
  .y8rd87ikz7,.w3o54h3am,.l5vitkxtsj{ transition:none!important; animation:none!important; }
}

/* Chat Window (animate with visibility/pointer-events, not display) */
.w3o54h3am{
  position: fixed; bottom: 96px; right: 24px; width: 360px; height: 480px;
  background: var(--ldck-fsfp); border-radius: var(--kuq-molv); box-shadow: var(--p7l3u9-cko);
  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;
}
.cd3ewz.lsojso73 .w3o54h3am{ right:auto; left:24px; }
.w3o54h3am.okjs87v7sy{ opacity:1; transform:translateY(0) scale(1); visibility:visible; pointer-events:auto; }

/* Header */
.h2cj_0prl{
  padding:16px 20px; background:var(--ldck-fsfp); border-bottom:1px solid var(--xwhn-l9);
  display:flex; align-items:center; gap:12px; min-height:64px;
}
.npmmxbb64{ width:10px; height:10px; border-radius:50%; background:var(--omar-pta); flex-shrink:0; }
.qyvncrj9{ flex:1; min-width:0; }
.zwcgl07xaq{ font-size:16px; font-weight:600; color:var(--spr-nyo); margin:0 0 2px 0; }
.flipjh{ font-size:13px; color:var(--p7su-up); margin:0; }
.ghfq48g5lh{
  width:32px; height:32px; min-width:32px; border:none; background:transparent; color:var(--p7su-up);
  cursor:pointer; border-radius:8px; display:flex; align-items:center; justify-content:center;
  transition: background .2s ease, color .2s ease; flex-shrink:0;
}
.ghfq48g5lh:hover{ background:var(--p24wd-fusm); color:var(--spr-nyo); }
.ghfq48g5lh:focus{ outline:2px solid var(--omar-pta); outline-offset:2px; }
.ghfq48g5lh svg{ width:20px; height:20px; }

/* Body */
.d_2wmapu{
  flex:1; overflow-y:auto; padding:16px; background:var(--p24wd-fusm);
  display:flex; flex-direction:column; gap:12px;
}
.d_2wmapu::-webkit-scrollbar{ width:6px; }
.d_2wmapu::-webkit-scrollbar-track{ background:transparent; }
.d_2wmapu::-webkit-scrollbar-thumb{ background:var(--xwhn-l9); border-radius:3px; }
.d_2wmapu::-webkit-scrollbar-thumb:hover{ background:var(--p7su-up); }

/* Messages */
.l5vitkxtsj{ display:flex; gap:8px; animation:slideIn .2s ease; }
@keyframes slideIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.l5vitkxtsj.njyb55rrv{ flex-direction:row-reverse; }
.h6r8_1h2k{
  max-width:75%; padding:10px 14px; border-radius:12px; word-wrap:break-word; word-break:break-word;
}
.h6r8_1h2k a{ color:inherit; }
.l5vitkxtsj.om8e4w0 .h6r8_1h2k{ background:var(--ldck-fsfp); color:var(--spr-nyo); border-bottom-left-radius:4px; }
.l5vitkxtsj.njyb55rrv .h6r8_1h2k{ background:var(--omar-pta); color:#fff; border-bottom-right-radius:4px; }
.pdruk0jg{ font-size:11px; color:var(--p7su-up); margin-top:4px; display:block; }

/* Typing Indicator */
.vv22zm57x{
  display:flex; gap:8px; padding:10px 14px; background:var(--ldck-fsfp);
  border-radius:12px; border-bottom-left-radius:4px; max-width:fit-content;
}
.cdo45_c{ width:8px; height:8px; border-radius:50%; background:var(--p7su-up); animation:typingDot 1.4s infinite; }
.cdo45_c:nth-child(2){ animation-delay:.2s; }
.cdo45_c: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) */
.sd5_9laa4y{
  display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 0; padding:0 2px;
}
.f0c2u2xg30{
  border:0; border-radius:999px; padding:8px 12px; background:var(--omar-pta); 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(--nfz-d55);
}
.f0c2u2xg30:is(:hover,:focus){ transform:translateY(-1px); }
a.f0c2u2xg30{ text-decoration:none; display:inline-block; }
a.f0c2u2xg30:link, a.f0c2u2xg30:visited{ color:#fff; }
a.f0c2u2xg30:hover, a.f0c2u2xg30:focus{ color:#fff; }

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

/* Footer */
.kmu8b2{
  padding:16px; background:var(--ldck-fsfp); border-top:1px solid var(--xwhn-l9);
  display:flex; gap:12px; align-items:flex-end; position:relative;
}
.ts8om4myqf{
  flex:1; padding:10px 14px; border:1px solid var(--xwhn-l9); border-radius:20px;
  font-family:inherit; font-size:14px; line-height:1.5; color:var(--spr-nyo);
  background:var(--p24wd-fusm); resize:none; max-height:96px; min-height:40px; outline:none; transition:border-color .2s ease;
}
.ts8om4myqf:focus{ border-color:var(--omar-pta); }
.ts8om4myqf::placeholder{ color:var(--p7su-up); }
.ts8om4myqf.kymvvl9r{ border-color:#c00; }
.d4sf4k{
  width:40px; height:40px; min-width:40px; border:none; background:var(--omar-pta); color:#fff;
  border-radius:50%; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:transform .2s ease, opacity .2s ease;
}
.d4sf4k:disabled{ opacity:.5; cursor:not-allowed; }
.d4sf4k:not(:disabled):hover{ transform:scale(1.05); }
.d4sf4k:not(:disabled):active{ transform:scale(0.95); }
.d4sf4k:focus{ outline:2px solid var(--omar-pta); outline-offset:2px; }
.d4sf4k svg{ width:20px; height:20px; }

/* Character Counter */
.lfvbvq{ position:absolute; bottom:4px; right:52px; font-size:11px; color:var(--p7su-up); }
.lfvbvq.pfcz10a1qp{ color:#c00; font-weight:600; }

/* ---- INLINE CTA BUTTONS ("buttons" payload) ---- */
/* Looks like an operator bubble with pill buttons inside */
.pb8dcypl{
  align-self:flex-start;
  max-width:75%;
  background: var(--ldck-fsfp);
  color: var(--spr-nyo);
  border-radius:12px; border-bottom-left-radius:4px;
  padding:10px 12px;
  box-shadow: var(--nfz-d55);
}
.xo3acgsi{ display:flex; flex-wrap:wrap; gap:8px; }

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

/* Optional outline variant */
.jhnh3q.uxl45bhrq{
  background: transparent; color: var(--spr-nyo); border-color: var(--xwhn-l9);
}
.jhnh3q.uxl45bhrq:hover{
  background: var(--omar-pta); color:#fff; border-color: var(--omar-pta);
}

/* Mobile */
@media (max-width: 768px){
  .cd3ewz{ bottom:16px; right:16px; }
  .cd3ewz.lsojso73{ left:16px; }
  .y8rd87ikz7{ --kczg-gy9a:60px; }
  .w3o54h3am{
    position:fixed; bottom:0; right:0; left:0; width:100%; height:65vh; max-height:65vh;
    border-radius: var(--kuq-molv) var(--kuq-molv) 0 0; transform: translateY(100%);
  }
  .w3o54h3am.okjs87v7sy{ transform: translateY(0); }
  .h2cj_0prl{ padding:20px; }
  .kmu8b2{ padding:16px; padding-bottom:max(16px, env(safe-area-inset-bottom)); }
}

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

/* Focus Visible */
.cd3ewz :focus-visible{ outline:2px solid var(--omar-pta); outline-offset:2px; }

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