/* dt-notices.css — brand look for Woodmart's orange (warning) notices. Loaded site-wide by 15-checkout-brand-notices.php.
   Source: 41_Brand_Theme/pipeline/notices/dt-notices.css · look: STD-040 (ribbon gradient, emblem badge, #faf5fc tint).
   Woodmart paints these with --notices-warning-bg #E0B252 + white text (measured live 2026-11-24, order-pay page):
   .wd-notice.wd-warning · CF7 error · mc4wp error/notice · block notice is-info/is-error · .woocommerce-error · .woocommerce-info.
   Not touched: green success notices (.woocommerce-message), the checkout coupon / login toggles (styled by 12-checkout-style),
   the password-strength meter, and Woodmart's ::after close button. */

body :is(.wd-notice.wd-warning, .wpcf7 form:not(.sent) .wpcf7-response-output, .mc4wp-error, .mc4wp-notice,
	div.wc-block-components-notice-banner:is(.is-info, .is-error), .woocommerce-error, .woocommerce-info):not(:is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) > *) {
	--wd-link-color: var(--dt-backdoor, #7b1fa2);
	--wd-link-color-hover: var(--dt-her, #c2185b);
	background: linear-gradient(180deg, var(--dt-his, #1565c0), var(--dt-backdoor, #7b1fa2) 52%, var(--dt-her, #c2185b)) left top / 5px 100% no-repeat, #faf5fc !important;
	color: var(--dt-ink, #2c3e50) !important;
	border: 1px solid #f3e5ec !important;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(136, 14, 79, .08);
	padding: 16px 20px 16px 64px;
	font-size: 15px;
	line-height: 1.55;
}

/* Icon: Woodmart's own glyph, in the STD-040 emblem badge style (ribbon circle, white mark). */
body :is(.wd-notice.wd-warning, .wpcf7 form:not(.sent) .wpcf7-response-output, .mc4wp-error, .mc4wp-notice,
	div.wc-block-components-notice-banner:is(.is-info, .is-error), .woocommerce-error, .woocommerce-info):not(:is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) > *)::before {
	left: 18px;
	top: 14px;
	width: 32px;
	height: 32px;
	line-height: 32px;
	font-size: 15px;
	text-align: center;
	color: #fff !important;
	background: linear-gradient(100deg, var(--dt-his, #1565c0), var(--dt-backdoor, #7b1fa2) 52%, var(--dt-her, #c2185b));
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}

body :is(.woocommerce-error, .woocommerce-info, .wd-notice.wd-warning, div.wc-block-components-notice-banner:is(.is-info, .is-error)) li {
	color: var(--dt-ink, #2c3e50);
}

body :is(.woocommerce-error, .woocommerce-info, .wd-notice.wd-warning, .mc4wp-error, .mc4wp-notice, .wpcf7-response-output) a:not(.button):not(.wc-backward) {
	color: var(--dt-backdoor, #7b1fa2) !important;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
body :is(.woocommerce-error, .woocommerce-info, .wd-notice.wd-warning, .mc4wp-error, .mc4wp-notice, .wpcf7-response-output) a:not(.button):not(.wc-backward):hover {
	color: var(--dt-her, #c2185b) !important;
}

/* Buttons inside a notice ("Return to shop", "View cart"): ribbon pill. */
body :is(.woocommerce-error, .woocommerce-info, .wd-notice.wd-warning) :is(.button, .wc-backward) {
	background: linear-gradient(100deg, var(--dt-his, #1565c0), var(--dt-backdoor, #7b1fa2) 52%, var(--dt-her, #c2185b)) !important;
	color: #fff !important;
	border-radius: 50px !important;
	padding: 8px 18px !important;
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: none !important;
}

/* Good-news notice (the "already paid" message carries .dt-notice-title): teal check instead of the warning mark. */
body :is(.woocommerce-error, .woocommerce-info):has(.dt-notice-title)::before {
	content: "\2713" !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-weight: 700;
	background: #039bb6 !important;
}

/* Lines added by 15-checkout-brand-notices.php: the "already paid" title + the help line. */
.dt-notice-title {
	display: block;
	font-family: Rosarivo, Georgia, 'Times New Roman', serif;
	font-size: 19px;
	line-height: 1.3;
	color: var(--dt-ink, #2c3e50);
	margin: 0 0 4px;
}
.dt-notice-help {
	display: block;
	margin-top: 6px;
	font-size: 14px;
	color: #4a5560;
}
.dt-notice-help a { white-space: nowrap; }

@media (max-width: 600px) {
	body :is(.wd-notice.wd-warning, .wpcf7 form:not(.sent) .wpcf7-response-output, .mc4wp-error, .mc4wp-notice,
		div.wc-block-components-notice-banner:is(.is-info, .is-error), .woocommerce-error, .woocommerce-info):not(:is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) > *) {
		padding: 14px 16px 14px 58px;
		font-size: 15px;
	}
	body :is(.wd-notice.wd-warning, .wpcf7 form:not(.sent) .wpcf7-response-output, .mc4wp-error, .mc4wp-notice,
		div.wc-block-components-notice-banner:is(.is-info, .is-error), .woocommerce-error, .woocommerce-info):not(:is(.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle) > *)::before {
		left: 14px;
		top: 13px;
		width: 30px;
		height: 30px;
		line-height: 30px;
	}
}
