#royceflow-chat-root, #royceflow-chat-root * {
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.rf-fab {
	position: fixed;
	bottom: 24px;
	left: 24px;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--rf-color, #25D366);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,0.25);
	cursor: pointer;
	z-index: 999998;
	border: none;
	transition: transform .15s ease;
}
.rf-fab:hover { transform: scale(1.06); }
.rf-fab svg { width: 28px; height: 28px; }

.rf-panel {
	position: fixed;
	bottom: 96px;
	right: 24px;
	width: 360px;
	max-width: calc(100vw - 32px);
	height: 560px;
	max-height: calc(100vh - 140px);
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 12px 40px rgba(0,0,0,0.25);
	z-index: 999999;
	display: none;
	flex-direction: column;
	overflow: hidden;
}
.rf-panel.rf-open { display: flex; }

.rf-header {
	background: #000;
	padding: 20px 20px 16px;
	position: relative;
	flex-shrink: 0;
}
.rf-brand {
	font-weight: 700;
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px;
}
.rf-brand-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--rf-color, #25D366);
	display: inline-block;
}
.rf-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: #fff; }
.rf-subtitle { font-size: 13px; color: #fff; margin: 0; }

.rf-close, .rf-back {
	position: absolute;
	top: 16px;
	background: rgba(255,255,255,0.6);
	border: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rf-close { right: 16px; }
.rf-back { left: 16px; }

.rf-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	background: #fff;
}

.rf-cta-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 18px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.06);
	margin-bottom: 16px;
}
.rf-cta-card h3 { margin: 0 0 14px; font-size: 15px; color:#000; }
.rf-btn {
	display: block;
	width: 100%;
	background: var(--rf-color, #25D366);
	color: #111;
	border: none;
	border-radius: 24px;
	padding: 12px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.rf-btn:hover { filter: brightness(0.95); }

.rf-option-list { display: flex; flex-direction: column; gap: 10px; }
.rf-option-btn {
	background: #f4f5f7;
	border: 1px solid #e6e7ea;
	border-radius: 10px;
	padding: 14px 16px;
	font-size: 14px;
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	color: #1a1a1a;
}
.rf-option-btn:hover { background: #ececef; }

.rf-prompt { font-size: 14px; font-weight: 600; margin: 0 0 12px; color: #1a1a1a; }

.rf-form label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin: 12px 0 4px;
	color: #333;
}
.rf-form input, .rf-form textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #d7d7db;
	font-size: 14px;
}
.rf-form textarea { min-height: 70px; resize: vertical; }
.rf-error { color: #c0392b; font-size: 12px; margin-top: 4px; }

.rf-thanks { text-align: center; padding: 30px 10px; }
.rf-thanks h3 { margin: 10px 0 6px; color:#000; }
.rf-thanks p{color:#000;}

.rf-footer {
	border-top: 1px solid #eee;
	padding: 10px 12px;
	display: flex;
	gap: 8px;
	flex-shrink: 0;
	background: #fff;
}
.rf-footer input {
	flex: 1;
	border: 1px solid #d7d7db;
	border-radius: 20px;
	padding: 10px 14px;
	font-size: 14px;
}
.rf-footer button {
	background: var(--rf-color, #25D366);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

@media (max-width: 480px) {
	.rf-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
	.rf-fab { right: 16px; bottom: 16px; }
}
