.veller-error-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(20, 10, 10, .55);
	backdrop-filter: blur(2px);
}

.veller-error-modal-overlay.is-visible { display: flex; }
body.veller-modal-open { overflow: hidden; }

.veller-error-modal {
	position: relative;
	width: 100%;
	max-width: 420px;
	padding: 32px 28px 26px;
	background: #fff;
	border-top: 6px solid #d32f2f;
	border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
	text-align: center;
	animation: veller-error-modal-in .25s ease-out;
}

.veller-error-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #777;
	font-size: 24px;
	line-height: 32px;
	cursor: pointer;
}

.veller-error-modal-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	border: 2px solid #f1b0b0;
	border-radius: 50%;
	background: #fdecec;
	color: #d32f2f;
	font-size: 30px;
	font-weight: 800;
}

.veller-error-modal-title {
	margin: 0 0 10px;
	color: #b71c1c;
	font-size: 19px;
	font-weight: 800;
	line-height: 1.3;
}

.veller-error-modal-body {
	margin-bottom: 22px;
	color: #5a2323;
	font-size: 14.5px;
	line-height: 1.6;
	text-align: left;
}

.veller-error-modal-body p { margin: 0 0 8px; }
.veller-error-modal-body p:last-child { margin-bottom: 0; }

.veller-error-modal-btn {
	width: 100%;
	padding: 13px 20px;
	border: 0;
	border-radius: 8px;
	background: #d32f2f;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.veller-error-modal-btn:hover { background: #b71c1c; }
[data-veller-hidden="true"] { display: none !important; }

.veller-error-modal-overlay.is-success .veller-error-modal { border-top-color: #318a43; }
.veller-error-modal-overlay.is-success .veller-error-modal-icon { border-color: #9bcf9b; background: #edf8ef; color: #318a43; }
.veller-error-modal-overlay.is-success .veller-error-modal-title { color: #286f37; }
.veller-error-modal-overlay.is-success .veller-error-modal-body { color: #345c3c; }
.veller-error-modal-overlay.is-success .veller-error-modal-btn { background: #318a43; }
.veller-error-modal-overlay.is-success .veller-error-modal-btn:hover { background: #286f37; }

.veller-error-modal-overlay.is-info .veller-error-modal { border-top-color: #3656c8; }
.veller-error-modal-overlay.is-info .veller-error-modal-icon { border-color: #aebcf0; background: #eef2ff; color: #3656c8; }
.veller-error-modal-overlay.is-info .veller-error-modal-title { color: #2846ad; }
.veller-error-modal-overlay.is-info .veller-error-modal-body { color: #344a85; }
.veller-error-modal-overlay.is-info .veller-error-modal-btn { background: #3656c8; }
.veller-error-modal-overlay.is-info .veller-error-modal-btn:hover { background: #2846ad; }

@keyframes veller-error-modal-in {
	from { opacity: 0; transform: translateY(10px) scale(.96); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
	.veller-error-modal { padding: 26px 20px 22px; }
	.veller-error-modal-title { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
	.veller-error-modal { animation: none; }
}
