/* ============================================
   DLE Alert Styles - Centered Modal
   ============================================ */

#alert.alert.alert-fixed {
	visibility: visible;
	position: fixed !important;
	top: 50% !important;
	left: 50% !important;
	right: auto !important;
	bottom: auto !important;
	width: auto;
	max-width: 550px;
	min-width: 380px;
	z-index: 999999;
	border-radius: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	-webkit-transition: all 0.3s ease;
	transition: all 0.3s ease;
	-webkit-transform: translate(-50%, -50%) scale(0.9);
	        transform: translate(-50%, -50%) scale(0.9);
	opacity: 0;
	margin: 0 !important;
	padding: 2.5em 3em;
	display: flex;
	align-items: center;
	color: #fff;
	font-size: 15px;
	font-family: 'Barlow', sans-serif;
	background-color: #2a2a2a;
	border: 1px solid #aa8453;
}

#alert.alert.alert-fixed.alert-visible {
	opacity: 1;
	-webkit-transform: translate(-50%, -50%) scale(1);
	        transform: translate(-50%, -50%) scale(1);
}

#alert .alert-content {
	font-size: 1.1em;
	font-weight: 400;
	line-height: 1.4;
}

/* Hide alert if content is empty or whitespace-only */
#alert .alert-content:empty {
	display: none;
}
#alert:not(.alert-visible) {
	pointer-events: none;
}

/* Hide entire alert when content is empty - use :has() for modern browsers */
@supports selector(:has(*)) {
	#alert.alert-visible:has(.alert-content:empty) {
		opacity: 0 !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}
}

#alert .alert-content strong {
	color: #aa8453;
}

#alert:before {
	content: "\e697";
	font-family: 'themify';
	font-size: 2em;
	margin-right: 0.5em;
	color: #aa8453;
}

#alert[data-alert-type="error"]:before {
	content: "\e6c5";
	color: #ce0916;
}

#alert[data-alert-type="warning"]:before {
	content: "\e6c5";
	color: #f0ad4e;
}

#alert[data-alert-type="success"]:before {
	content: "\e64c";
	color: #aa8453;
}

#alert[data-alert-type="success"] {
	background-color: #2a2a2a;
	border-color: #aa8453;
}

#alert[data-alert-type="warning"] {
	background-color: #2a2a2a;
	border-color: #f0ad4e;
	color: #fff;
}

#alert[data-alert-type="error"] {
	background-color: #2a2a2a;
	border-color: #ce0916;
}

#alert .alert-close {
	position: absolute;
	top: 1em;
	right: 1em;
	cursor: pointer;
	width: 1em;
	height: 1em;
	display: inline-block;
	opacity: 0.8;
	transition: opacity 0.25s;
}

#alert .alert-close:hover {
	opacity: 1;
}

#alert:not(.alert-closable) .alert-close {
	display: none;
}

#alert .alert-close:before,
#alert .alert-close:after {
	content: "";
	position: absolute;
	left: 50%;
	top: 0;
	width: 2px;
	margin-left: -1px;
	height: 100%;
	background: rgba(255,255,255,0.6);
}

#alert .alert-close:hover:before,
#alert .alert-close:hover:after {
	background: #aa8453;
}

#alert .alert-close:before {
	transform: rotate(45deg);
}

#alert .alert-close:after {
	transform: rotate(-45deg);
}
