.trs-sh-product-notices {
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
	gap: 6px;
	width: 100%;
	margin: 0 0 6px;
}

/*
 * Keep a single warning explanatory. When several warnings apply, the
 * shortcode adds is-compact and the cards become title-only. The fluid grid
 * renders every saved notice, including more than four, and wraps only when
 * the product-information column runs out of room.
 */
.trs-sh-product-notices.is-compact {
	grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.trs-sh-product-notice {
	box-sizing: border-box;
	display: grid;
	min-width: 0;
	height: 100%;
	gap: 2px;
	padding: 9px 11px;
	border: 1px solid #dcdcde;
	border-left: 4px solid #2271b1;
	border-radius: 5px;
	background: #f6f7f7;
	color: #2c3338;
	font-size: 14px;
	line-height: 1.35;
}

.trs-sh-product-notice strong {
	color: inherit;
	font-size: 14px;
	line-height: 1.35;
}

.trs-sh-product-notices.is-compact .trs-sh-product-notice {
	display: flex;
	align-items: center;
	min-height: 40px;
	padding: 7px 9px;
}

.trs-sh-product-notice.notice-warning {
	border-color: #e7cf73;
	border-left-color: #b78500;
	background: #fff8df;
	color: #5f4700;
}

.trs-sh-product-notice.notice-danger {
	border-color: #e3a3a3;
	border-left-color: #d1232a;
	background: #fff0f0;
	color: #7c1d21;
}

/*
 * Divi adds its own spacing around Text and Code modules. Pull only this
 * shortcode closer to the fitment module above it and the order form below it.
 */
.et_pb_text_inner .trs-sh-product-notices,
.et_pb_code_inner .trs-sh-product-notices {
	margin-top: -8px;
	margin-bottom: 2px;
}

@media (max-width: 600px) {
	.trs-sh-product-notices,
	.trs-sh-product-notices.is-compact {
		grid-template-columns: 1fr;
	}

	.trs-sh-product-notice {
		padding: 10px 11px;
	}

	.trs-sh-product-notices.is-compact .trs-sh-product-notice {
		min-height: 0;
		padding: 8px 10px;
	}
}
