/**
 * Webhive COD Control — Frontend styles
 *
 * Per-item notice renders as a compact subline directly under the product
 * title, similar to how "Origin: UAE · Unit: 500g" already reads. No banner,
 * no extra row — just a small line of colored text with a leading icon.
 *
 * Three notice styles: info (blue), warning (amber), subtle (gray).
 */

/* ============ Per-item notice (subline below "Title × N") ============
 *
 * The notice is appended after the quantity HTML via the
 * woocommerce_checkout_cart_item_quantity filter. We make it a block-level
 * element so it drops to its own line immediately below the title+quantity.
 */

.whcc-item-notice {
	display: flex;
	align-items: center;
	gap: 5px;
	margin: 4px 0 0 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.4;
	font-weight: 400;
	background: transparent;
	border: none;
	border-radius: 0;
	width: 100%;
	box-sizing: border-box;
}

.whcc-item-notice .whcc-icon {
	flex-shrink: 0;
	display: inline-flex;
}

.whcc-item-notice .whcc-icon svg {
	width: 13px;
	height: 13px;
}

.whcc-item-notice .whcc-message {
	flex: 1;
	min-width: 0;
}

/* ============ Cart-level notice (above payment methods) ============ */
.whcc-cart-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 16px 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.whcc-cart-notice .whcc-icon {
	flex-shrink: 0;
	margin-top: 1px;
	display: inline-flex;
}

.whcc-cart-notice .whcc-message {
	flex: 1;
}

/* ============ Shortcode notice (custom product pages) ============ */
.whcc-shortcode-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 12px 0;
	padding: 10px 12px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	width: 100%;
	box-sizing: border-box;
}

.whcc-shortcode-notice .whcc-icon {
	flex-shrink: 0;
	margin-top: 2px;
	display: inline-flex;
}

.whcc-shortcode-notice .whcc-message {
	flex: 1;
}

/* ============ Product page badge ============ */
.whcc-product-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 500;
	margin: 6px 0 10px 0;
	line-height: 1.3;
}

.whcc-product-badge .whcc-icon {
	display: inline-flex;
}

/* ============ Style: Info (blue) ============ */
.whcc-style-info.whcc-item-notice {
	color: #185fa5;
}
.whcc-style-info.whcc-shortcode-notice {
	background: #e6f1fb;
	color: #0c447c;
	border-left: 3px solid #378add;
}
.whcc-style-info.whcc-cart-notice {
	background: #e6f1fb;
	color: #0c447c;
	border: 1px solid #b5d4f4;
	border-left: 4px solid #378add;
}
.whcc-style-info.whcc-product-badge {
	background: #e6f1fb;
	color: #0c447c;
}

/* ============ Style: Warning (amber) ============ */
.whcc-style-warning.whcc-item-notice {
	color: #854f0b;
}
.whcc-style-warning.whcc-shortcode-notice {
	background: #faeeda;
	color: #633806;
	border-left: 3px solid #ef9f27;
}
.whcc-style-warning.whcc-cart-notice {
	background: #faeeda;
	color: #633806;
	border: 1px solid #fac775;
	border-left: 4px solid #ef9f27;
}
.whcc-style-warning.whcc-product-badge {
	background: #faeeda;
	color: #633806;
}

/* ============ Style: Subtle (gray) ============ */
.whcc-style-subtle.whcc-item-notice {
	color: #5f5e5a;
}
.whcc-style-subtle.whcc-shortcode-notice {
	background: #f1efe8;
	color: #444441;
	border-left: 3px solid #888780;
}
.whcc-style-subtle.whcc-cart-notice {
	background: #f1efe8;
	color: #444441;
	border: 1px solid #d3d1c7;
	border-left: 4px solid #888780;
}
.whcc-style-subtle.whcc-product-badge {
	background: #f1efe8;
	color: #444441;
}

/* ============ Mobile ============ */
@media (max-width: 600px) {
	.whcc-cart-notice {
		font-size: 12px;
		padding: 8px 10px;
	}

	.whcc-item-notice {
		font-size: 11px;
	}

	.whcc-item-notice .whcc-icon svg {
		width: 12px;
		height: 12px;
	}

	.whcc-shortcode-notice {
		font-size: 13px;
		padding: 8px 10px;
	}

	.whcc-product-badge {
		font-size: 12px;
		padding: 4px 8px;
	}
}
