/**
 * Shared public message dialog.
 *
 * @package Sbd
 */
.sbd-modal[hidden] {
	display: none !important;
}

.sbd-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(10, 22, 48, 0.6);
}

.sbd-modal__panel {
	position: relative;
	width: min(100%, 420px);
	padding: 28px;
	border-radius: 12px;
	background: #fff;
	color: #1b2230;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
	font-family: system-ui, sans-serif;
}

.sbd-modal__panel h2 {
	margin: 0 30px 12px 0;
	font-size: 22px;
	line-height: 1.2;
}

.sbd-modal__panel p {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.5;
}

.sbd-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	border: 0;
	background: transparent;
	color: #5b6472;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.sbd-modal__ok {
	border: 0;
	border-radius: 8px;
	padding: 10px 20px;
	background: #2a4fda;
	color: #fff;
	font: 600 15px system-ui, sans-serif;
	cursor: pointer;
}

.sbd-modal__ok:hover {
	background: #1f3bb5;
}

.sbd-modal[data-kind="success"] .sbd-modal__panel {
	border-top: 5px solid #61b466;
}

.sbd-modal[data-kind="error"] .sbd-modal__panel {
	border-top: 5px solid #e0565d;
}

.sbd-modal[data-kind="working"] .sbd-modal__panel {
	border-top: 5px solid #2a4fda;
}
