.dr-root {
	position: fixed;
	right: 20px;
	bottom: 90px;
	z-index: 2147483000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
}

.dr-root.dr-pos-left {
	right: auto;
	left: 20px;
}

.dr-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	transition: transform 0.18s ease;
}

.dr-toggle:hover {
	transform: translateY(-3px);
}

.dr-badge {
	position: relative;
	width: 62px;
	height: 62px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: linear-gradient(145deg, #f97316 0%, #ea580c 55%, #c2410c 100%);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.4);
	animation: drPulse 2.4s infinite;
}

.dr-toggle:hover .dr-badge {
	animation-play-state: paused;
}

.dr-badge-icon {
	position: relative;
	z-index: 2;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
	animation: drBob 2.6s ease-in-out infinite;
}

.dr-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(249, 115, 22, 0.7);
	animation: drRing 2.4s ease-out infinite;
}

.dr-dot {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #22c55e;
	border: 2px solid #fff;
	z-index: 3;
	box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
	animation: drDot 2s infinite;
}

.dr-label {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-align: left;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.93);
	color: #1f2937;
	padding: 7px 14px;
	border-radius: 14px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
	border-left: 4px solid #ea580c;
	backdrop-filter: blur(6px);
}

.dr-label-top {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.3px;
	color: #c2410c;
	text-transform: uppercase;
}

.dr-label-bottom {
	font-size: 12.5px;
	font-weight: 600;
	color: #334155;
}

.dr-toggle.dr-hidden {
	display: none;
}

@keyframes drPulse {
	0% { box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5), 0 0 0 0 rgba(234, 88, 12, 0.55); }
	70% { box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5), 0 0 0 16px rgba(234, 88, 12, 0); }
	100% { box-shadow: 0 10px 28px rgba(234, 88, 12, 0.5), 0 0 0 0 rgba(234, 88, 12, 0); }
}

@keyframes drRing {
	0% { transform: scale(1); opacity: 0.9; }
	100% { transform: scale(1.35); opacity: 0; }
}

@keyframes drBob {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-2px); }
}

@keyframes drDot {
	0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
	70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
	100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.dr-panel {
	position: absolute;
	right: 0;
	bottom: 76px;
	width: 350px;
	max-width: calc(100vw - 32px);
	height: 480px;
	max-height: calc(100vh - 120px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px) scale(0.97);
	transform-origin: bottom right;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dr-root.dr-pos-left .dr-panel {
	right: auto;
	left: 0;
	transform-origin: bottom left;
}

.dr-panel.dr-open {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
}

.dr-header {
	background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
	color: #fff;
	padding: 14px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.dr-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	flex: 0 0 auto;
}

.dr-title {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-width: 0;
}

.dr-title strong {
	font-size: 15px;
	font-weight: 600;
}

.dr-title small {
	font-size: 12px;
	opacity: 0.9;
}

.dr-close {
	background: transparent;
	border: 0;
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	opacity: 0.85;
}

.dr-close:hover { opacity: 1; }

.dr-messages {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 16px 14px;
	background: #f7f7f5;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.dr-row { display: flex; }
.dr-row.dr-user { justify-content: flex-end; }
.dr-row.dr-bot { justify-content: flex-start; }

.dr-bubble {
	max-width: 82%;
	padding: 10px 13px;
	border-radius: 16px;
	font-size: 14.5px;
	word-wrap: break-word;
	overflow-wrap: anywhere;
	white-space: pre-wrap;
}

.dr-bot .dr-bubble {
	background: #fff;
	color: #1f2937;
	border-bottom-left-radius: 5px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.dr-user .dr-bubble {
	background: #ea580c;
	color: #fff;
	border-bottom-right-radius: 5px;
}

.dr-cta {
	padding: 4px 0 0;
	background: transparent;
	box-shadow: none;
	max-width: 100%;
}

.dr-wa {
	display: block;
	width: 100%;
	text-align: center;
	background: #25d366;
	color: #06281a;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	padding: 12px 14px;
	border-radius: 14px;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
	transition: transform 0.15s ease, filter 0.15s ease;
}

.dr-wa:hover { transform: translateY(-2px); filter: brightness(1.05); }

.dr-typing {
	display: flex;
	gap: 5px;
	padding: 12px 16px;
	background: #f7f7f5;
	align-items: center;
}

.dr-typing[hidden] { display: none; }

.dr-typing span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #94a3b8;
	animation: drBounce 1.3s infinite ease-in-out;
}

.dr-typing span:nth-child(2) { animation-delay: 0.18s; }
.dr-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes drBounce {
	0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
	30% { transform: translateY(-5px); opacity: 1; }
}

.dr-form {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px;
	background: #fff;
	border-top: 1px solid #e5e9ec;
}

.dr-input {
	flex: 1 1 auto;
	min-width: 0;
	border: 1px solid #d6dde2;
	border-radius: 22px;
	padding: 11px 15px;
	font-size: 15px;
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s ease;
}

.dr-input:focus { border-color: #ea580c; }

.dr-send {
	width: 42px;
	height: 42px;
	flex: 0 0 auto;
	border: 0;
	border-radius: 50%;
	background: #ea580c;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s ease, transform 0.15s ease;
}

.dr-send:hover { background: #c2410c; transform: scale(1.06); }

@media (max-width: 480px) {
	.dr-root { right: 12px; bottom: 80px; }
	.dr-root.dr-pos-left { right: auto; left: 12px; }
	.dr-toggle { gap: 8px; }
	.dr-badge { width: 52px; height: 52px; }
	.dr-badge-icon { width: 24px; height: 24px; }
	.dr-label { padding: 5px 10px; }
	.dr-label-top { font-size: 12.5px; }
	.dr-label-bottom { font-size: 11px; }
	.dr-panel {
		position: fixed;
		right: 10px;
		left: 10px;
		bottom: 84px;
		width: auto;
		max-width: none;
		height: 70vh;
		max-height: none;
		transform-origin: bottom center;
	}
	.dr-root.dr-pos-left .dr-panel { left: 10px; right: 10px; }
}
