/* Alert widget — structural layout + variant preset colors.
   Colors/radius set via the widget's Style-tab controls (which default to
   '') always outrank the variant classes below because the compiled CSS is
   scoped to `.ractro-element-{id}`, giving it higher specificity than the
   bare `.ractro-alert--*` rules here. */

.ractro-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	border-style: solid;
	border-width: 1px;
	border-left-width: 4px;
	border-radius: 8px;
	line-height: 1.55;
}

.ractro-alert--info {
	background: #eff6ff;
	color: #1d4ed8;
	border-color: #bfdbfe;
}

.ractro-alert--success {
	background: #f0fdf4;
	color: #15803d;
	border-color: #bbf7d0;
}

.ractro-alert--warning {
	background: #fffbeb;
	color: #b45309;
	border-color: #fde68a;
}

.ractro-alert--error {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
}

.ractro-alert__icon {
	flex: 0 0 auto;
	line-height: 1.4;
	color: inherit;
}

.ractro-alert__icon-svg {
	display: block;
	width: 20px;
	height: 20px;
}

.ractro-alert__body {
	flex: 1;
	min-width: 0;
}

.ractro-alert__title {
	font-weight: 600;
	margin-bottom: 2px;
}

.ractro-alert__msg {
	font-size: 14px;
}

.ractro-alert__close {
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	font-size: 18px;
	line-height: 1;
}

.ractro-alert__close:hover {
	opacity: 1;
}
