/* SEOdefend Chat widget */
#sdc-root { position: fixed; right: 18px; bottom: 18px; z-index: 9999; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

#sdc-root .sdc-launcher {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 12px 18px; border: 0; border-radius: 999px;
	background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
	color: #fff; font-weight: 600; font-size: 15px;
	box-shadow: 0 8px 24px rgba(37,99,235,.35), 0 2px 6px rgba(0,0,0,.1);
	cursor: pointer; transition: transform .18s ease, box-shadow .18s ease;
	position: relative;
}
#sdc-root .sdc-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(37,99,235,.5); }
#sdc-root .sdc-launcher-icon { display: inline-flex; }
#sdc-root .sdc-launcher-pulse { position: absolute; inset: 0; border-radius: 999px; background: rgba(14,165,233,.45); animation: sdc-pulse 2.4s ease-out infinite; z-index: -1; }
@keyframes sdc-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.4); opacity: 0; } }

#sdc-root.sdc-open .sdc-launcher { display: none; }

#sdc-root .sdc-panel {
	position: fixed; right: 18px; bottom: 18px; width: 380px; max-width: calc(100vw - 24px); height: 560px; max-height: calc(100vh - 36px);
	background: #fff; border-radius: 18px; overflow: hidden; display: none; flex-direction: column;
	box-shadow: 0 20px 60px rgba(0,0,0,.25), 0 4px 14px rgba(0,0,0,.1);
	border: 1px solid rgba(0,0,0,.06);
	transform-origin: bottom right; animation: sdc-pop .22s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes sdc-pop { 0% { transform: scale(.92) translateY(8px); opacity: 0; } 100% { transform: scale(1) translateY(0); opacity: 1; } }
#sdc-root.sdc-open .sdc-panel { display: flex; }

#sdc-root .sdc-head {
	display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
	background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%); color: #fff;
}
#sdc-root .sdc-head-id { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
#sdc-root .sdc-head-id strong { font-size: 15px; }
#sdc-root .sdc-sub { font-size: 11px; opacity: .8; }
#sdc-root .sdc-dot { display: inline-block; width: 8px; height: 8px; background: #34d399; border-radius: 50%; box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: sdc-blink 1.6s ease-out infinite; margin-right: 6px; vertical-align: middle; }
@keyframes sdc-blink { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 50% { box-shadow: 0 0 0 6px rgba(52,211,153,0); } }
#sdc-root .sdc-close { background: transparent; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
#sdc-root .sdc-close:hover { opacity: 1; }

#sdc-root .sdc-thread { flex: 1; overflow-y: auto; padding: 14px 14px 4px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
#sdc-root .sdc-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; line-height: 1.45; font-size: 14px; word-wrap: break-word; }
#sdc-root .sdc-msg-user { align-self: flex-end; background: #2563eb; color: #fff; border-bottom-right-radius: 4px; }
#sdc-root .sdc-msg-bot  { align-self: flex-start; background: #fff; color: #0f172a; border: 1px solid #e2e8f0; border-bottom-left-radius: 4px; }
#sdc-root .sdc-msg-bot a { color: #2563eb; text-decoration: underline; }
#sdc-root .sdc-msg-typing { display: inline-block; }
#sdc-root .sdc-msg-typing span { display: inline-block; width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; margin: 0 2px; animation: sdc-typing 1.2s infinite; }
#sdc-root .sdc-msg-typing span:nth-child(2) { animation-delay: .15s; }
#sdc-root .sdc-msg-typing span:nth-child(3) { animation-delay: .30s; }
@keyframes sdc-typing { 0%,80%,100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }

#sdc-root .sdc-starters { padding: 6px 12px 4px; display: flex; flex-wrap: wrap; gap: 6px; background: #f8fafc; }
#sdc-root .sdc-starter { background: #fff; border: 1px solid #e2e8f0; color: #1e293b; font-size: 12px; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background .15s; }
#sdc-root .sdc-starter:hover { background: #eff6ff; border-color: #bfdbfe; }

#sdc-root .sdc-form { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid #e2e8f0; background: #fff; }
#sdc-root .sdc-form input { flex: 1; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 14px; outline: none; }
#sdc-root .sdc-form input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
#sdc-root .sdc-send { width: 38px; height: 38px; border: 0; border-radius: 10px; background: #2563eb; color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
#sdc-root .sdc-send:hover { background: #1d4ed8; }
#sdc-root .sdc-send[disabled] { opacity: .5; cursor: not-allowed; }

#sdc-root .sdc-foot { padding: 8px 12px 10px; background: #fff; border-top: 1px solid #e2e8f0; }
#sdc-root .sdc-funnel-cta { display: block; padding: 9px 12px; border-radius: 10px; background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%); color: #fff; font-weight: 600; text-align: center; text-decoration: none; font-size: 13px; box-shadow: 0 4px 12px rgba(234,88,12,.3); transition: transform .15s; }
#sdc-root .sdc-funnel-cta:hover { transform: translateY(-1px); color: #fff; text-decoration: none; }

@media (max-width: 480px) {
	#sdc-root .sdc-panel { right: 8px; bottom: 8px; left: 8px; width: auto; height: 80vh; }
}
@media (prefers-reduced-motion: reduce) {
	#sdc-root .sdc-launcher-pulse, #sdc-root .sdc-dot { animation: none; }
}
