/* stylelint-disable selector-class-pattern */
.mw-message-box,
/* The following classes are kept for cached HTML and will be removed shortly. */
.messagebox,
.errorbox,
.warningbox,
.successbox {
	color: #000;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	margin-bottom: 16px;
	border: 1px solid;
	padding: 12px 24px;
	word-wrap: break-word;
	/* Standard property is `overflow-wrap` */
	overflow-wrap: break-word;
	overflow: hidden;

	/* Ensure box inner spacing is not all over the place no matter what element is only child. */
	:only-child {
		margin: 0;
	}

	// Used in MobileFrontend/Nearby extensions
	h2 {
		color: inherit;
		display: block;
		border: 0;
		font-size: 1em;
		font-weight: bold;
	}

	// Formerly provided by mw-warning-with-logexcerpt, now available for all messageboxes.
	.mw-logevent-loglines li {
		font-size: 90%;
	}
}

.mw-message-box,
.messagebox {
	background-color: #eaecf0;
	border-color: #a2a9b1;
}

.mw-message-box-error,
.errorbox {
	background-color: #fee7e6;
	border-color: #d33;
}

.mw-message-box-warning,
.warningbox {
	background-color: #fef6e7;
	border-color: #fc3;
}

.mw-message-box-success,
.successbox {
	background-color: #d5fdf4;
	border-color: #14866d;
}
