/**
 * Announce_Bot — themed wrapper inside .mbubble.bubble (main chat).
 * Scoped so other messages are unaffected.
 */

.mbubble.bubble:has(.ab_announce) {
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
}

.ab_announce {
	display: block;
	box-sizing: border-box;

	width: 100%;
	margin: 8px 0 0 0;

	padding: 12px 16px;
	border-radius: 12px;

	line-height: 1.5;
}

/* Poster name pill (non-default themes) */
.ab_announce .ab_announce_poster {
	display: inline-block;
	font-weight: 700;
	padding: 2px 10px;
	margin: 0 2px;
	border-radius: 999px;
	vertical-align: baseline;
	line-height: 1.35;
}

.ab_announce--radio {
	background: #f9f3ed;
	border-left: 6px solid #7d563a;
	color: #3d2e22;
}

.ab_announce--radio .ab_announce_poster {
	background: #38bdf8;
	color: #fff !important;
}

.ab_announce--ocean {
	background: #e8f4f3;
	border-left: 6px solid #0d9488;
	color: #134e4a;
}

.ab_announce--ocean .ab_announce_poster {
	background: #14b8a6;
	color: #fff !important;
}

.ab_announce--slate {
	background: #f1f5f9;
	border-left: 6px solid #64748b;
	color: #1e293b;
}

.ab_announce--slate .ab_announce_poster {
	background: #7c3aed;
	color: #fff !important;
}

/* Admin page mini previews */
.ab_theme_preview_wrap {
	margin-top: 8px;
	max-width: 420px;
}

.ab_theme_preview_wrap .mbubble {
	display: inline-block;
	padding: 8px 12px;
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.06);
}

.ab_theme_preview_wrap .ab_announce {
	margin: 4px -12px 0 0;
	border-radius: 12px;
}
