/**
 * Alert Box Widget Styles
 *
 * @package UXD_Elementor_Widgets
 * @since 1.9.1
 */

.uxdwfe-alert-box {
	position: relative;
	padding: 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	margin-bottom: 20px;
	transition: opacity 0.3s ease;
}

.uxdwfe-alert-box.uxdwfe-alert-hidden {
	opacity: 0;
	pointer-events: none;
}

.uxdwfe-alert-content {
	display: flex;
	align-items: flex-start;
}

.uxdwfe-alert-icon {
	flex-shrink: 0;
	margin-right: 15px;
	line-height: 1;
}

.uxdwfe-alert-icon i,
.uxdwfe-alert-icon svg {
	display: block;
}

.uxdwfe-alert-text {
	flex: 1;
}

.uxdwfe-alert-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.4;
}

.uxdwfe-alert-description {
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

/* Close Button */
.uxdwfe-alert-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: transparent;
	border: none;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
	transition: opacity 0.2s ease;
	padding: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.uxdwfe-alert-close:focus {
	outline: none;
	opacity: 1;
}

/* Default Alert Types */
.uxdwfe-alert-box.type-info {
	background-color: #d1ecf1;
	color: #0c5460;
	border-color: #bee5eb;
}

.uxdwfe-alert-box.type-success {
	background-color: #d4edda;
	color: #155724;
	border-color: #c3e6cb;
}

.uxdwfe-alert-box.type-warning {
	background-color: #fff3cd;
	color: #856404;
	border-color: #ffeaa7;
}

.uxdwfe-alert-box.type-danger {
	background-color: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
}

/* Dismissible padding adjustment */
.uxdwfe-alert-box.dismissible {
	padding-right: 50px;
}
