/* Chatbot window (AI Auto-Poster package). Everything is scoped to #fdChatbot so it never touches the site's own styles. */
#fdChatbot { --cb: #4f46e5; position: fixed; bottom: 22px; z-index: 9000; font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.45; color: #1e293b; }
#fdChatbot.right { right: 22px; } #fdChatbot.left { left: 22px; }
#fdChatbot *, #fdChatbot *::before, #fdChatbot *::after { box-sizing: border-box; }
#fdChatbot .cb-launch { position: relative; display: flex; align-items: center; gap: 11px; height: 58px; padding: 0 22px 0 8px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: 700 14.5px/1 inherit; letter-spacing: .01em;
    background: linear-gradient(135deg, var(--cb), color-mix(in srgb, var(--cb) 62%, #7c3aed));
    box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--cb) 85%, #000), 0 3px 8px rgba(15,23,42,.2), inset 0 1px 0 rgba(255,255,255,.3); transition: transform .2s, box-shadow .2s; }
#fdChatbot .cb-launch:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -12px color-mix(in srgb, var(--cb) 90%, #000), 0 4px 10px rgba(15,23,42,.22), inset 0 1px 0 rgba(255,255,255,.3); }
#fdChatbot .cb-launch:active { transform: translateY(0) scale(.98); }
#fdChatbot .cb-launch:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
#fdChatbot .cb-launch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; animation: cbPulse 2.8s ease-out infinite; }
#fdChatbot .cb-launch:hover::before { animation: none; }
@keyframes cbPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cb) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }
#fdChatbot .cb-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
#fdChatbot .cb-launch svg { width: 22px; height: 22px; }
#fdChatbot .cb-lbl { white-space: nowrap; }
#fdChatbot .cb-dot { position: absolute; top: 7px; left: 41px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
#fdChatbot .cb-teaser { position: absolute; bottom: 72px; width: 246px; padding: 12px 34px 12px 14px; background: #fff; border-radius: 16px; border-bottom-right-radius: 5px; cursor: pointer; text-align: left;
    box-shadow: 0 18px 40px -14px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06); opacity: 0; transform: translateY(8px) scale(.97); transform-origin: bottom right; pointer-events: none; transition: opacity .25s, transform .25s; }
#fdChatbot.right .cb-teaser { right: 0; } #fdChatbot.left .cb-teaser { left: 0; border-bottom-right-radius: 16px; border-bottom-left-radius: 5px; transform-origin: bottom left; }
#fdChatbot .cb-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
#fdChatbot .cb-teaser b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #0f172a; margin-bottom: 2px; }
#fdChatbot .cb-teaser b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
#fdChatbot .cb-teaser span { display: block; font-size: 12.5px; line-height: 1.4; color: #475569; }
#fdChatbot .cb-tx { position: absolute; top: 6px; right: 7px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: #94a3b8; font-size: 16px; line-height: 1; cursor: pointer; }
#fdChatbot .cb-tx:hover { background: #f1f5f9; color: #475569; }
#fdChatbot.open .cb-teaser { display: none; }
#fdChatbot.open .cb-launch, #fdChatbot.open .cb-dot { display: none; }
#fdChatbot .cb-panel { display: none; width: 372px; max-width: calc(100vw - 28px); height: 540px; max-height: calc(100vh - 44px); background: #fff; border-radius: 18px; overflow: hidden; flex-direction: column;
    box-shadow: 0 30px 70px -20px rgba(15,23,42,.55), 0 0 0 1px rgba(15,23,42,.08); animation: cbIn .22s ease-out; }
#fdChatbot.open .cb-panel { display: flex; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
#fdChatbot .cb-head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; color: #fff; background: linear-gradient(135deg, var(--cb), color-mix(in srgb, var(--cb) 70%, #7c3aed)); flex: none; }
#fdChatbot .cb-av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; flex: none; }
#fdChatbot .cb-av svg { width: 20px; height: 20px; }
#fdChatbot .cb-title { font-weight: 700; font-size: 15px; } #fdChatbot .cb-sub { font-size: 11.5px; opacity: .85; display: flex; gap: 5px; align-items: center; }
#fdChatbot .cb-sub i { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
#fdChatbot .cb-close { margin-left: auto; border: 0; background: rgba(255,255,255,.16); color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
#fdChatbot .cb-close:hover { background: rgba(255,255,255,.3); }
#fdChatbot .cb-new { margin-left: auto; border: 0; background: rgba(255,255,255,.16); color: #fff; padding: 6px 11px; border-radius: 99px; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
#fdChatbot .cb-new:hover { background: rgba(255,255,255,.3); }
#fdChatbot .cb-new + .cb-close { margin-left: 8px; }
#fdChatbot .cb-msgs { flex: 1; overflow-y: auto; padding: 16px 14px 8px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
#fdChatbot .cb-m { max-width: 86%; padding: 10px 13px; border-radius: 16px; word-wrap: break-word; overflow-wrap: anywhere; }
#fdChatbot .cb-m.bot { align-self: flex-start; background: #fff; border: 1px solid #e2e8f0; border-bottom-left-radius: 5px; }
#fdChatbot .cb-m.admin { background: #ecfdf5; border-color: #a7f3d0; color: #064e3b; }
#fdChatbot .cb-m .cb-by { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #059669; margin-bottom: 3px; }
#fdChatbot .cb-launch.new .cb-dot { background: #f59e0b; animation: cbnew 1.1s ease-in-out infinite; }
@keyframes cbnew { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
#fdChatbot .cb-m.me { align-self: flex-end; color: #fff; background: var(--cb); border-bottom-right-radius: 5px; }
#fdChatbot .cb-src { margin-top: 8px; display: flex; flex-direction: column; gap: 5px; white-space: normal; }
#fdChatbot .cb-src a { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; color: var(--cb); text-decoration: none; padding: 5px 9px; border-radius: 9px; background: color-mix(in srgb, var(--cb) 9%, #fff); }
#fdChatbot .cb-src a:hover { background: color-mix(in srgb, var(--cb) 17%, #fff); }
#fdChatbot .cb-fb { margin-top: 6px; display: flex; gap: 4px; align-items: center; font-size: 11.5px; color: #94a3b8; white-space: normal; }
#fdChatbot .cb-fb button { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 2px 5px; border-radius: 7px; opacity: .65; } #fdChatbot .cb-fb button:hover { opacity: 1; background: #f1f5f9; } #fdChatbot .cb-fb button.on { opacity: 1; background: #e0e7ff; }
#fdChatbot .cb-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; border-bottom-left-radius: 5px; }
#fdChatbot .cb-typing i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: cbDot 1.2s infinite ease-in-out; } #fdChatbot .cb-typing i:nth-child(2) { animation-delay: .15s; } #fdChatbot .cb-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cbDot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
#fdChatbot .cb-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 14px 10px; background: #f8fafc; }
#fdChatbot .cb-chips button { border: 1px solid color-mix(in srgb, var(--cb) 35%, #fff); background: #fff; color: var(--cb); border-radius: 99px; padding: 6px 12px; font: 600 12.5px inherit; cursor: pointer; }
#fdChatbot .cb-chips button:hover { background: var(--cb); color: #fff; }
#fdChatbot .cb-form { display: flex; gap: 8px; padding: 11px 12px; background: #fff; border-top: 1px solid #e2e8f0; flex: none; }
#fdChatbot .cb-form input[type=text] { flex: 1; min-width: 0; border: 1.5px solid #e2e8f0; border-radius: 99px; padding: 10px 15px; font: inherit; color: #0f172a; background: #fff; outline: none; }
#fdChatbot .cb-form input[type=text]:focus { border-color: var(--cb); }
#fdChatbot .cb-send { width: 42px; height: 42px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: var(--cb); display: flex; align-items: center; justify-content: center; }
#fdChatbot .cb-send:disabled { opacity: .55; cursor: progress; } #fdChatbot .cb-send svg { width: 19px; height: 19px; }
#fdChatbot .cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 520px) {
    #fdChatbot.right, #fdChatbot.left { right: 12px; left: auto; bottom: 14px; }
    #fdChatbot .cb-lbl { display: none; }
    #fdChatbot .cb-launch { width: 58px; padding: 0; justify-content: center; }
    #fdChatbot .cb-ico { background: transparent; box-shadow: none; width: 30px; height: 30px; }
    #fdChatbot .cb-launch svg { width: 27px; height: 27px; }
    #fdChatbot .cb-dot { top: 3px; left: auto; right: 3px; }
    #fdChatbot .cb-teaser, #fdChatbot.left .cb-teaser, #fdChatbot.right .cb-teaser { width: 220px; bottom: 70px; left: auto; right: 0; transform-origin: bottom right; border-bottom-right-radius: 5px; border-bottom-left-radius: 16px; }
    #fdChatbot.open { right: 12px; left: 12px; bottom: 12px; }   /* an open chat floats with the same gap on every side */
    #fdChatbot .cb-panel { width: 100%; max-width: 100%; height: 82vh; max-height: calc(100vh - 24px); border-radius: 18px; }
    @supports (height: 100dvh) { #fdChatbot .cb-panel { height: min(calc(100dvh - 24px), 720px); max-height: calc(100dvh - 24px); } }
    html.fdcb-open { overflow: hidden; }   /* the page behind the open chat does not scroll */
    #fdChatbot .cb-form input[type=text] { font-size: 16px; }   /* 16px: phones do not zoom the page when the box is focused */
}
@media (prefers-reduced-motion: reduce) { #fdChatbot .cb-launch::before { animation: none; } #fdChatbot .cb-teaser { transition: none; } #fdChatbot .cb-panel { animation: none; } #fdChatbot .cb-typing i { animation: none; } #fdChatbot .cb-launch { transition: none; } #fdChatbot .cb-msgs { scroll-behavior: auto; } }

/* the website's "back to top" button (bottom corner) must not sit on the chat button or float over the chat window */
html.fdcb-r .site-footer .footer-back-top.fd-totop { bottom: 96px; }
html.fdcb-open .site-footer .footer-back-top.fd-totop { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
/* on a phone the chat button is always in the right corner, whichever side the setting says */
@media (max-width: 520px) { html.fdcb-r .site-footer .footer-back-top.fd-totop, html.fdcb-l .site-footer .footer-back-top.fd-totop { bottom: 84px; } }

/* Voice typing + read aloud (only drawn where the browser supports them) */
#fdChatbot .cb-inwrap { position: relative; flex: 1; min-width: 0; display: flex; }
#fdChatbot .cb-inwrap input[type=text] { width: 100%; }
#fdChatbot .cb-inwrap:has(.cb-lang) input[type=text] { padding-right: 62px; }
#fdChatbot .cb-lang { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); border: 0; cursor: pointer; font: 700 11px/1 inherit; padding: 5px 9px; border-radius: 99px; color: var(--cb); background: color-mix(in srgb, var(--cb) 12%, #fff); }
#fdChatbot .cb-lang:hover { background: color-mix(in srgb, var(--cb) 22%, #fff); }
#fdChatbot .cb-mic { width: 42px; height: 42px; flex: none; border: 1.5px solid #e2e8f0; border-radius: 50%; cursor: pointer; color: var(--cb); background: #fff; display: flex; align-items: center; justify-content: center; transition: background .15s, color .15s, border-color .15s; }
#fdChatbot .cb-mic:hover { border-color: var(--cb); }
#fdChatbot .cb-mic svg { width: 19px; height: 19px; }
#fdChatbot .cb-mic:disabled { opacity: .5; cursor: not-allowed; }
#fdChatbot .cb-mic.on { background: #ef4444; border-color: #ef4444; color: #fff; animation: cbRec 1.3s ease-out infinite; }
@keyframes cbRec { 0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 70%, 100% { box-shadow: 0 0 0 11px rgba(239,68,68,0); } }
#fdChatbot .cb-vmsg { flex: none; padding: 7px 14px; font-size: 12px; line-height: 1.4; color: #9a3412; background: #fff7ed; border-top: 1px solid #fed7aa; }
#fdChatbot .cb-vmsg[hidden] { display: none; }
#fdChatbot .cb-spk { margin-left: auto; width: 30px; height: 30px; flex: none; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; }
#fdChatbot .cb-spk svg { width: 16px; height: 16px; }
#fdChatbot .cb-spk:hover { background: rgba(255,255,255,.3); }
#fdChatbot .cb-spk.on { background: #fff; color: var(--cb); }
#fdChatbot .cb-spk + .cb-new { margin-left: 8px; }
@media (prefers-reduced-motion: reduce) { #fdChatbot .cb-mic.on { animation: none; } }

/* Files for the team (only drawn when the website has switched it on) */
#fdChatbot .cb-attach { width: 42px; height: 42px; flex: none; border: 1.5px solid #e2e8f0; border-radius: 50%; cursor: pointer; color: var(--cb); background: #fff; display: flex; align-items: center; justify-content: center; transition: border-color .15s, background .15s; }
#fdChatbot .cb-attach:hover { border-color: var(--cb); }
#fdChatbot .cb-attach.on { background: color-mix(in srgb, var(--cb) 12%, #fff); border-color: var(--cb); }
#fdChatbot .cb-attach svg { width: 19px; height: 19px; }
#fdChatbot .cb-attach:disabled { opacity: .5; cursor: not-allowed; }
#fdChatbot .cb-files { flex: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: #fff; border-top: 1px solid #e2e8f0; }
#fdChatbot .cb-files[hidden] { display: none; }
#fdChatbot .cb-fchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 10px; border-radius: 99px; font-size: 12px; background: color-mix(in srgb, var(--cb) 10%, #fff); color: #1e293b; }
#fdChatbot .cb-fchip b { font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#fdChatbot .cb-fchip i { font-style: normal; color: #64748b; font-size: 11px; white-space: nowrap; }
#fdChatbot .cb-fchip button { width: 20px; height: 20px; border: 0; border-radius: 50%; cursor: pointer; line-height: 1; font-size: 15px; color: #475569; background: rgba(15,23,42,.08); }
#fdChatbot .cb-fchip button:hover { background: rgba(15,23,42,.16); }
#fdChatbot .cb-fnote { flex-basis: 100%; font-size: 11px; line-height: 1.4; color: #64748b; padding-bottom: 2px; }
#fdChatbot .cb-panel.cb-drop { outline: 3px dashed var(--cb); outline-offset: -8px; }

/* Microphone permission card */
#fdChatbot .cb-perm { flex: none; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; background: #eef2ff; border-top: 1px solid #c7d2fe; color: #1e293b; }
#fdChatbot .cb-perm.bad { background: #fff7ed; border-top-color: #fed7aa; }
#fdChatbot .cb-perm-ic { flex: none; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--cb); color: #fff; }
#fdChatbot .cb-perm.bad .cb-perm-ic { background: #ea580c; }
#fdChatbot .cb-perm-ic svg { width: 18px; height: 18px; }
#fdChatbot .cb-perm-b { min-width: 0; flex: 1; font-size: 12.5px; line-height: 1.45; }
#fdChatbot .cb-perm-b b { display: block; font-size: 13.5px; margin-bottom: 2px; }
#fdChatbot .cb-perm-b p { margin: 0 0 8px; color: #475569; }
#fdChatbot .cb-perm-r { display: flex; gap: 8px; flex-wrap: wrap; }
#fdChatbot .cb-perm-r button { border: 1px solid #cbd5e1; background: #fff; color: #334155; border-radius: 99px; padding: 6px 14px; font: 600 12.5px/1.2 inherit; cursor: pointer; }
#fdChatbot .cb-perm-r button.pri { background: var(--cb); border-color: var(--cb); color: #fff; }
#fdChatbot .cb-perm-r button:hover { filter: brightness(.95); }
#fdChatbot .cb-mic.wait { opacity: .65; cursor: progress; }
#fdChatbot .cb-inwrap input[type=text] { caret-color: #4f46e5; text-overflow: clip; }
