/* Support team BD — built-in chat assistant. */
.sbot { --sb-g: #7b2fbf; --sb-gd: #5a1f91; --sb-bg: #fff; --sb-ink: #1c1630; --sb-mu: #5b5670; --sb-line: #e6dff2; --sb-soft: #f6f2fb; position: fixed; right: 20px; bottom: 20px; z-index: 9990; font-family: var(--f-body, system-ui, sans-serif); }
@media (prefers-color-scheme: dark) { .sbot { --sb-bg: #12211b; --sb-ink: #e7f0eb; --sb-mu: #9db3a8; --sb-line: #20352c; --sb-soft: #173328; --sb-g: #a66ee0; } }
@media (max-width: 759px) { .sbot { right: 12px; bottom: calc(var(--dock-h, 0px) + 12px); } }
.sbot__launch { display: flex; align-items: center; gap: 10px; margin-left: auto; padding: 8px 20px 8px 8px; text-align: left; animation: sbotIn .5s ease-out both; border: 0; border-radius: 999px; background: var(--sb-g); color: #fff; font: 700 .95rem/1 inherit; box-shadow: 0 14px 30px -12px rgba(70,25,110,.6); cursor: pointer; position: relative; }
.sbot__launch:hover { background: var(--sb-gd); }
.sbot__dot { position: absolute; top: 4px; right: 4px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2.5px #fff; animation: sbotLive 1.8s infinite; }
@media (max-width: 480px) { .sbot__lbl { display: none; } .sbot__launch { padding: 10px; } }
.sbot.is-open .sbot__launch { display: none; }
.sbot__teaser { position: absolute; right: 0; bottom: 70px; width: 270px; margin: 0; padding: 14px 16px; line-height: 1.45; animation: sbotIn .35s ease-out both; border-radius: 14px 14px 4px 14px; background: var(--sb-bg); color: var(--sb-ink); box-shadow: 0 12px 30px -12px rgba(0,0,0,.35); font-size: .9rem; cursor: pointer; border: 1px solid var(--sb-line); }
.sbot__panel { position: fixed; right: 20px; bottom: 20px; width: min(390px, calc(100vw - 24px)); height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: var(--sb-bg); color: var(--sb-ink); border: 1px solid var(--sb-line); border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(40,15,70,.45); }
.sbot__panel[hidden] { display: none; }
@media (max-width: 520px) { .sbot__panel { inset: 0; width: 100%; height: 100%; border-radius: 0; border: 0; } }
.sbot__head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 16px; background: var(--sb-g); color: #fff; }
.sbot__head > div { flex: 1; min-width: 0; }
.sbot__head h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.sbot__head p { margin: 2px 0 0; font-size: .78rem; opacity: .9; }
.sbot__av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--sb-g); font-weight: 800; font-size: .8rem; }
.sbot__av--sm { width: 28px; height: 28px; font-size: .62rem; background: var(--sb-soft); }
.sbot__x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; font-size: 1rem; cursor: pointer; }
.sbot__x:hover { background: rgba(255,255,255,.26); }
.sbot__log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; background: var(--sb-soft); overscroll-behavior: contain; }
.sbot__msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.sbot__msg--me { justify-content: flex-end; }
.sbot__bub { max-width: 86%; padding: 10px 12px; border-radius: 16px 16px 16px 4px; background: var(--sb-bg); border: 1px solid var(--sb-line); font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere; }
.sbot__msg--me .sbot__bub { border-radius: 16px 16px 4px 16px; background: var(--sb-g); border-color: var(--sb-g); color: #fff; }
.sbot__bub p { margin: 0 0 6px; }
.sbot__bub p:last-child { margin-bottom: 0; }
.sbot__h { font-weight: 800; }
.sbot__small { font-size: .78rem; color: var(--sb-mu); }
.sbot__bub ul { margin: 4px 0 8px; padding-left: 18px; }
.sbot__bub li { margin: 2px 0; }
.sbot__tiers { display: grid; gap: 8px; margin: 6px 0; }
.sbot__tier { padding: 10px; border: 1px solid var(--sb-line); border-radius: 12px; display: grid; gap: 2px; }
.sbot__tier.is-pop { border-color: var(--sb-g); background: var(--sb-soft); }
.sbot__tier b { font-size: .9rem; }
.sbot__amt { font-weight: 800; font-size: 1.1rem; color: var(--sb-g); }
.sbot__tier small { color: var(--sb-mu); font-size: .75rem; }
.sbot__tier ul { margin: 4px 0 4px; font-size: .8rem; }
.sbot__mini { justify-self: start; font-size: .8rem; font-weight: 700; color: var(--sb-g); }
.sbot__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sbot__act { display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--sb-g); background: transparent; color: var(--sb-g); font: 700 .8rem inherit; text-decoration: none; cursor: pointer; }
.sbot__act:hover, .sbot__act.is-primary { background: var(--sb-g); color: #fff; }
.sbot__act.is-wa { border-color: #1da851; color: #128c4b; }
.sbot__act.is-wa:hover { background: #1da851; color: #fff; }
.sbot__groups details { border-top: 1px solid var(--sb-line); padding: 6px 0; }
.sbot__groups summary { cursor: pointer; font-weight: 700; font-size: .88rem; }
.sbot__chiprow, .sbot__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sbot__chiprow { padding-top: 6px; }
.sbot__chips { padding: 8px 12px 0; background: var(--sb-bg); }
.sbot__chips:empty { display: none; }
.sbot__chip { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--sb-line); background: var(--sb-bg); color: var(--sb-ink); font: 600 .8rem inherit; cursor: pointer; }
.sbot__chip:hover { border-color: var(--sb-g); color: var(--sb-g); }
.sbot__form { display: flex; gap: 8px; padding: 10px 12px; background: var(--sb-bg); border-top: 1px solid var(--sb-line); }
.sbot__form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--sb-line); border-radius: 999px; background: var(--sb-soft); color: var(--sb-ink); font: inherit; font-size: 16px; }
.sbot__form input:focus { outline: 2px solid var(--sb-g); outline-offset: 0; }
.sbot__form button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sb-g); color: #fff; font-size: 1rem; cursor: pointer; }
.sbot__foot { margin: 0; padding: 0 12px 10px; background: var(--sb-bg); font-size: .72rem; color: var(--sb-mu); text-align: center; }
.sbot__foot a { color: inherit; }
.sbot__typing .sbot__bub { display: flex; gap: 4px; padding: 12px 14px; }
.sbot__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sb-mu); animation: sbotDot 1s infinite ease-in-out; }
.sbot__typing i:nth-child(2) { animation-delay: .15s; } .sbot__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes sbotDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sbot__typing i { animation: none; } }
.sbot .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .sbot { display: none; } }

.sbot__lbl { display: grid; gap: 2px; }
.sbot__lbl strong { font-size: .98rem; }
.sbot__lbl small { font-size: .74rem; font-weight: 600; opacity: .9; }
.sbot__launch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(123,47,191,.45); animation: sbotPulse 2.6s 1.5s infinite; pointer-events: none; }
@keyframes sbotPulse { 0% { box-shadow: 0 0 0 0 rgba(123,47,191,.45); } 70% { box-shadow: 0 0 0 14px rgba(123,47,191,0); } 100% { box-shadow: 0 0 0 0 rgba(123,47,191,0); } }
@keyframes sbotIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sbot__launch, .sbot__teaser { animation: none; } .sbot__launch::after { animation: none; } }
.sbot__teaser p { margin: 0 0 4px; font-size: .88rem; }
.sbot__teaser p:last-child { margin: 0; }
.sbot__tz-bn { color: var(--sb-mu); font-size: .82rem !important; }
.sbot__tz-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--sb-soft); color: var(--sb-mu); cursor: pointer; font-size: .7rem; }
.has-sbot .totop { bottom: 96px; }
@media (max-width: 759px) { .has-sbot .totop { bottom: calc(var(--dock-h, 0px) + 80px); } }

/* 4.3 launcher: brand badge, gentle float, live dot, hover greeting */
.sbot__launch { padding: 6px 20px 6px 6px; gap: 12px; background: linear-gradient(135deg, #7b2fbf, #9b4dd6); }
.sbot__badge { position: relative; flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #fff; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35), inset 0 0 0 1px rgba(123,47,191,.12); animation: sbotFloat 4s ease-in-out infinite; }
.sbot__badge img { width: 54px; height: 54px; object-fit: contain; display: block; animation: sbotWave 9s ease-in-out 3s infinite; transform-origin: 50% 80%; }
.sbot__launch:hover .sbot__badge img { animation: sbotWave .9s ease-in-out 1; }
.sbot__tip { position: absolute; right: 8px; bottom: calc(100% + 12px); padding: 9px 14px; border-radius: 12px 12px 4px 12px; background: #1c1630; color: #fff; font: 700 .9rem/1.2 inherit; white-space: nowrap; box-shadow: 0 12px 24px -10px rgba(0,0,0,.45); opacity: 0; transform: translateY(6px) scale(.96); transform-origin: bottom right; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.sbot__tip::after { content: ""; position: absolute; right: 18px; top: 100%; border: 7px solid transparent; border-top-color: #1c1630; border-right: 0; }
.sbot__launch:hover .sbot__tip, .sbot__launch:focus-visible .sbot__tip { opacity: 1; transform: none; }
.sbot.has-teaser .sbot__tip { display: none; }
@keyframes sbotFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes sbotWave { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-10deg); } 94% { transform: rotate(8deg); } 97% { transform: rotate(-4deg); } }
@keyframes sbotLive { 0% { box-shadow: 0 0 0 2.5px #fff, 0 0 0 2.5px rgba(34,197,94,.6); } 70% { box-shadow: 0 0 0 2.5px #fff, 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 2.5px #fff, 0 0 0 2.5px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .sbot__badge, .sbot__badge img, .sbot__dot { animation: none !important; } }
@media (max-width: 480px) { .sbot__launch { padding: 5px; } .sbot__badge { width: 58px; height: 58px; } }
/* Teaser: fully opaque card above the launcher and above the back-to-top button */
.sbot__teaser { z-index: 2; background: var(--sb-bg); opacity: 1; bottom: 84px; width: 280px; }
.sbot__teaser::after { content: ""; position: absolute; right: 30px; top: 100%; border: 8px solid transparent; border-top-color: var(--sb-bg); }
.sbot__av { object-fit: cover; padding: 0; background: #fff; }
.has-sbot .totop { bottom: 104px; }
.has-sbot.sbot-tz .totop { opacity: 0 !important; pointer-events: none; }

/* 4.4: icon-only launcher */
.sbot__launch { padding: 0; background: transparent; box-shadow: none; border-radius: 50%; }
.sbot__launch:hover { background: transparent; }
.sbot__launch::after { border-radius: 50%; }
.sbot__badge { width: 68px; height: 68px; box-shadow: 0 14px 28px -10px rgba(70,25,110,.55), inset 0 0 0 1px rgba(123,47,191,.14); }
.sbot__badge img { width: 62px; height: 62px; }
.sbot__lbl { display: none; }
.sbot__tip { right: 0; }
.sbot__count { position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #e0344a; color: #fff; font: 800 .75rem/22px inherit; text-align: center; box-shadow: 0 0 0 2px #fff; }
.sbot__count[hidden] { display: none; }
@media (max-width: 480px) { .sbot__badge { width: 60px; height: 60px; } .sbot__badge img { width: 54px; height: 54px; } }
.has-sbot .totop { bottom: 100px; }

/* Live agents */
.sbot__msg--agent { align-items: flex-start; }
.sbot__agentwrap { display: grid; gap: 3px; max-width: 86%; }
.sbot__agentwrap .sbot__bub { max-width: 100%; background: #fff8ec; border-color: #f5d9a8; }
.sbot__agentname { font-size: .72rem; font-weight: 700; color: var(--sb-mu); padding-left: 4px; }
.sbot__av--init { display: grid; place-items: center; background: #f5a623; color: #fff; font-weight: 800; font-size: .75rem; border-radius: 50%; }
.sbot__av--agent { border-radius: 50%; object-fit: cover; }
.sbot__msg--sys { justify-content: center; }
.sbot__sys { margin: 0; padding: 4px 10px; border-radius: 99px; background: var(--sb-bg); border: 1px dashed var(--sb-line); color: var(--sb-mu); font-size: .75rem; text-align: center; }
.sbot__team { display: inline-flex; margin-top: 4px; }
.sbot__team > * { width: 22px !important; height: 22px !important; margin-left: -6px; border: 2px solid var(--sb-g); border-radius: 50%; font-size: .6rem; }
.sbot__team > *:first-child { margin-left: 0; }
.sbot.is-live .sbot__head { background: linear-gradient(135deg, #7b2fbf, #3858e9); }
.sbot.is-live .sbot__head .sbot__av { border-radius: 50%; object-fit: cover; }

/* Digital Product BD */
.sbot { font-family: var(--dpbd-font-body, system-ui, sans-serif); }
.sbot__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sbot__launch { background: transparent !important; }
.sbot__head { background: linear-gradient(135deg, #7b2fbf, #3858e9); }
.sbot__msg--me .sbot__bub { background: linear-gradient(135deg, #7b2fbf, #6a3ad8); border-color: transparent; }
.sbot__badge { box-shadow: 0 14px 30px -10px rgba(123,47,191,.6), inset 0 0 0 1px rgba(123,47,191,.14); }
.sbot__launch::after { box-shadow: 0 0 0 0 rgba(123,47,191,.45); animation-name: sbotPulseP; }
@keyframes sbotPulseP { 0% { box-shadow: 0 0 0 0 rgba(123,47,191,.45); } 70% { box-shadow: 0 0 0 16px rgba(123,47,191,0); } 100% { box-shadow: 0 0 0 0 rgba(123,47,191,0); } }
/* Number first */
.sbot__gate { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 20px 18px; background: var(--sb-soft); }
.sbot__gate[hidden], .sbot__log[hidden], .sbot__form[hidden] { display: none; }
.sbot__gate-h { margin: 0; font-weight: 800; font-size: 1.1rem; }
.sbot__gate-t { margin: 0 0 6px; color: var(--sb-mu); line-height: 1.5; font-size: .92rem; }
.sbot__gate label { font-weight: 700; font-size: .85rem; }
.sbot__gate label span { color: #d33; }
.sbot__gate input { padding: 12px 14px; border: 1.5px solid var(--sb-line); border-radius: 12px; background: var(--sb-bg); color: var(--sb-ink); font: inherit; font-size: 16px; }
.sbot__gate input:focus { outline: 2px solid var(--sb-g); border-color: var(--sb-g); }
.sbot__gate button { margin-top: 6px; padding: 13px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #7b2fbf, #3858e9); color: #fff; font: 800 1rem inherit; cursor: pointer; }
.sbot__gate-err { margin: 0; color: #c62828; font-size: .82rem; }
.sbot__gate-err[hidden] { display: none; }
.sbot__gate-f { margin: 4px 0 0; color: var(--sb-mu); font-size: .78rem; text-align: center; }
.has-sbot .dpbd-wa { display: none !important; }
.sbot .sbot__head h2, .sbot .sbot__head p { color: #fff !important; }
.sbot .sbot__head p { opacity: .92; }
.sbot .sbot__gate button { font-size: 1rem !important; font-weight: 800 !important; } .sbot .sbot__gate-h { color: var(--sb-ink) !important; }

/* 2.4: the badge itself is the button — no white disc behind it, transparent background */
.sbot .sbot__badge { width: 76px; height: 76px; background: transparent !important; box-shadow: none !important; border-radius: 0; }
.sbot .sbot__badge img { width: 76px; height: 76px; filter: drop-shadow(0 10px 16px rgba(91, 33, 160, .35)) drop-shadow(0 2px 4px rgba(0,0,0,.15)); }
.sbot .sbot__launch::after { display: none; }
.sbot .sbot__dot { top: 6px; right: 8px; }
.sbot .sbot__count { top: 0; left: 2px; }
@media (max-width: 480px) { .sbot .sbot__badge, .sbot .sbot__badge img { width: 64px; height: 64px; } }
/* Customer dashboard: on phones and tablets the bottom bar has the chat button, so the floating one hides */
@media (max-width: 1023px) { .dpbd-is-app .sbot__launch, .dpbd-is-app .sbot__teaser { display: none !important; } }
.dpbd-ic--sbot { object-fit: contain; margin: -4px 0; }

/* 2.5: round launcher like iT Services BD (white disc, badge inside, no square) */
.sbot .sbot__badge { width: 70px !important; height: 70px !important; border-radius: 50% !important; background: #fff !important; overflow: visible; box-shadow: 0 14px 28px -10px rgba(91, 33, 160, .55), 0 0 0 1px rgba(123, 47, 191, .12) !important; display: grid; place-items: center; animation: sbotFloat 4s ease-in-out infinite; }
.sbot .sbot__badge img { width: 60px !important; height: 60px !important; filter: none !important; border-radius: 0; }
.sbot .sbot__dot { top: 2px; right: 2px; z-index: 2; }
.sbot__launch { position: relative; }
.sbot .sbot__launch .sbot__dot { position: absolute; }
@media (max-width: 480px) { .sbot .sbot__badge { width: 62px !important; height: 62px !important; } .sbot .sbot__badge img { width: 54px !important; height: 54px !important; } }
/* attachments + agent typing */
.sbot__attach { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--sb-mu); cursor: pointer; }
.sbot__attach:hover { background: var(--sb-soft); color: var(--sb-g); }
.sbot__img { display: block; margin: 0 0 4px; }
.sbot__img img { display: block; max-width: 100%; max-height: 220px; border-radius: 10px; object-fit: cover; }
.sbot__file { display: block; margin: 0 0 4px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.06); color: inherit; font-weight: 600; text-decoration: none; word-break: break-all; }
.sbot__msg--me .sbot__file { background: rgba(255,255,255,.18); color: #fff; }
.sbot__agent-typing { flex-direction: column; align-items: flex-start; gap: 3px; }
.sbot__agent-typing .sbot__bub { display: flex; gap: 4px; padding: 12px 14px; }
.sbot__agent-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--sb-mu); animation: sbotDot 1s infinite ease-in-out; }
.sbot__agent-typing i:nth-child(2) { animation-delay: .15s; } .sbot__agent-typing i:nth-child(3) { animation-delay: .3s; }
