/**
 * 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;
	display: flex;
	justify-content: center; /* center the card */
}

.ab_announce {
	display: block;
	box-sizing: border-box;

	/* Centered card width */
	width: 92%;
	max-width: 520px;

	margin: 10px auto;
	padding: 16px 18px;

	/* Premium look */
	background: linear-gradient(135deg, #f8fffb, #e6f4ef);
	border-radius: 16px;
	border: 1px solid rgba(0,0,0,0.05);

	/* Soft shadow */
	box-shadow: 
		0 8px 25px rgba(0,0,0,0.08),
		inset 0 0 10px rgba(255,255,255,0.6);

	/* Typography */
	text-align: left;
	line-height: 1.6;
	white-space: pre-wrap;
	word-wrap: break-word;

	/* Smooth animation */
	transition: all 0.25s ease;
}

/* Hover effect (optional, looks premium) */
.ab_announce:hover {
	transform: translateY(-2px);
	box-shadow: 
		0 12px 30px rgba(0,0,0,0.12),
		inset 0 0 12px rgba(255,255,255,0.7);
}

/* 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;
}
