/**
 * Error Message Styles
 * 
 * Professional error message styling
 * 
 * @package CafeHospitality
 */

/* Error Messages - Enhanced for readability */
.cafe-error-message {
	position: fixed;
	top: 20px;
	right: 20px;
	max-width: 400px;
	padding: 18px 24px;
	background: #ffffff !important;
	border: 2px solid var(--cafe-error, #e74c3c);
	border-left: 6px solid var(--cafe-error, #e74c3c);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
	z-index: 999999 !important; /* Very high z-index for customizer */
	display: flex;
	align-items: flex-start;
	gap: 14px;
	animation: slideInRight 0.3s ease-out;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	backdrop-filter: blur(10px);
}

@keyframes slideInRight {
	from {
		transform: translateX(100%);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.cafe-error-message.cafe-warning {
	border-left-color: var(--cafe-warning, #f39c12);
}

.cafe-error-message.cafe-success {
	border-left-color: var(--cafe-success, #27ae60);
}

.cafe-error-icon {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
	color: var(--cafe-error, #e74c3c);
}

.cafe-error-message.cafe-warning .cafe-error-icon {
	color: var(--cafe-warning, #f39c12);
}

.cafe-error-message.cafe-success .cafe-error-icon {
	color: var(--cafe-success, #27ae60);
}

.cafe-error-text {
	flex: 1;
	color: #1a1a1a !important; /* High contrast dark text */
	font-size: 15px;
	line-height: 1.6;
	font-weight: 500;
	text-shadow: none;
}

.cafe-error-close {
	background: none;
	border: none;
	font-size: 20px;
	line-height: 1;
	color: var(--cafe-text-light, #666);
	cursor: pointer;
	padding: 0;
	margin-left: 8px;
	transition: color 0.2s;
	flex-shrink: 0;
}

.cafe-error-close:hover {
	color: var(--cafe-text, #333);
}

/* Admin Error Notices */
.cafe-error-notice {
	margin: 20px 0;
}

.cafe-error-notice p {
	margin: 0;
}

/* Cart Branch Info Notification */
.cafe-cart-branch-info {
	background: #fff8e1 !important;
	border: 2px solid #ffc107;
	border-left: 6px solid #ffc107;
	border-radius: 8px;
	padding: 16px 20px;
	margin: 20px 0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	position: relative;
	z-index: 100;
}

.cafe-cart-branch-info p {
	margin: 0 !important;
	color: #1a1a1a !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
}

.cafe-cart-branch-info strong {
	color: #f57c00 !important;
	font-weight: 700;
}

/* Branch Change Notification */
.cafe-branch-change-notification {
	position: fixed;
	top: 20px;
	right: 20px;
	max-width: 420px;
	padding: 20px 24px;
	background: #ffffff !important;
	border: 2px solid #4caf50;
	border-left: 6px solid #4caf50;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
	z-index: 999999 !important;
	display: flex;
	align-items: flex-start;
	gap: 14px;
	animation: slideInRight 0.3s ease-out;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cafe-branch-change-notification .cafe-notification-icon {
	font-size: 24px;
	line-height: 1;
	flex-shrink: 0;
	color: #4caf50;
}

.cafe-branch-change-notification .cafe-notification-content {
	flex: 1;
}

.cafe-branch-change-notification .cafe-notification-title {
	color: #1a1a1a !important;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 6px 0;
	line-height: 1.4;
}

.cafe-branch-change-notification .cafe-notification-text {
	color: #333333 !important;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}

.cafe-branch-change-notification .cafe-notification-close {
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	color: #666 !important;
	cursor: pointer;
	padding: 0;
	margin-left: 8px;
	transition: color 0.2s;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cafe-branch-change-notification .cafe-notification-close:hover {
	color: #1a1a1a !important;
	background: #f5f5f5;
	border-radius: 4px;
}

/* WooCommerce Notices - Better visibility */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	padding: 16px 20px !important;
	border-left-width: 6px !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.6 !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
	border-radius: 6px !important;
}

.woocommerce-message {
	background: #e8f5e9 !important;
	border-color: #4caf50 !important;
	color: #1a1a1a !important;
}

.woocommerce-info {
	background: #e3f2fd !important;
	border-color: #2196f3 !important;
	color: #1a1a1a !important;
}

.woocommerce-error {
	background: #ffebee !important;
	border-color: #f44336 !important;
	color: #1a1a1a !important;
}

/* Customizer compatibility */
.customize-preview-active .cafe-error-message,
.customize-preview-active .cafe-branch-change-notification {
	position: fixed !important;
	z-index: 999999 !important;
}

/* Responsive */
@media (max-width: 768px) {
	.cafe-error-message,
	.cafe-branch-change-notification {
		right: 10px;
		left: 10px;
		max-width: none;
		top: 10px;
	}
}

