/**
 * Mixed Cart Notice Styles
 *
 * Styles for preorder + regular items shipping notice
 *
 * @package DROIX_Woo_Deposits
 * @since 1.5.0
 */

/* Mini-Cart Notice */
.cwdp-mixed-cart-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 15px;
	margin-bottom: 15px;
	background: #e7f3ff;
	border-left: 4px solid #2196F3;
	font-size: 14px;
	line-height: 1.6;
	border-radius: 3px;
}

.cwdp-mixed-cart-notice .cwdp-info-icon {
	flex-shrink: 0;
	margin-top: 2px;
	color: #2196F3;
	width: 18px;
	height: 18px;
}

.cwdp-mixed-cart-notice span {
	flex: 1;
	color: #fff;
}

.cwdp-mixed-cart-notice strong {
	font-weight: 700;
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* Mini-Cart Specific Styles */
.shoptimizer-mini-cart-wrap .cwdp-mixed-cart-notice {
	margin: 0 15px 15px;
	font-size: 13px;
	padding: 10px 12px;
}

.shoptimizer-mini-cart-wrap .cwdp-mixed-cart-notice .cwdp-info-icon {
	width: 16px;
	height: 16px;
}

/* Cart Page - WooCommerce native notice already styled */
.woocommerce-cart .woocommerce-info,
.woocommerce-checkout .woocommerce-info {
	/* Inherits WooCommerce default styling */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
	.cwdp-mixed-cart-notice {
		font-size: 13px;
		padding: 10px 12px;
		gap: 8px;
	}

	.shoptimizer-mini-cart-wrap .cwdp-mixed-cart-notice {
		font-size: 12px;
		padding: 8px 10px;
	}
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
	.cwdp-mixed-cart-notice {
		background: #1a3a52;
		border-left-color: #42a5f5;
	}

	.cwdp-mixed-cart-notice span {
		color: #fff;
	}

	.cwdp-mixed-cart-notice strong {
		color: #fff;
		text-decoration: underline;
		text-decoration-color: #42a5f5;
	}

	.cwdp-mixed-cart-notice .cwdp-info-icon {
		color: #42a5f5;
	}
}

/* RTL Support */
[dir="rtl"] .cwdp-mixed-cart-notice {
	border-left: none;
	border-right: 4px solid #2196F3;
}

/* Accessibility - High Contrast Mode */
@media (prefers-contrast: high) {
	.cwdp-mixed-cart-notice {
		border-width: 2px;
		border-style: solid;
	}
}

/* Animation for AJAX updates */
.cwdp-mixed-cart-notice {
	animation: cwdp-fade-in 0.3s ease-in-out;
}

@keyframes cwdp-fade-in {
	from {
		opacity: 0;
		transform: translateY(-5px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
