/* Seasonal return wording stays in the existing trust positions. */
body .ms-return-promise {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-height: 44px;
	max-width: 100%;
	color: inherit !important;
	font: 600 12px/16px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	white-space: normal !important;
	hyphens: none;
	word-break: normal;
	overflow-wrap: normal;
	text-decoration: none;
}
body .ms-return-promise b { font: inherit; }
body .ms-return-promise small { display: block; font: inherit; font-weight: 400; }
body .ms-return-promise:hover { text-decoration: underline; }
body .ms-return-promise:focus-visible { outline: 3px solid #2563EB; outline-offset: 2px; }
body .delivery-section p:has(> .ms-return-promise) { min-width: 0; white-space: normal !important; }
body .delivery-section > div:has(.ms-return-promise) { min-width: 0 !important; flex-shrink: 1 !important; }
body .ms-mlw-usps > span:has(.ms-return-promise) { flex-basis: 100%; text-align: center; }

/* Simple layout: the return row spans both benefits below it.
 * The checkout context in :is() beats its existing high-specificity rules.
 * :has() limits every layout change to an active Christmas return promise. */
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
	gap: 12px 8px !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	min-width: 0 !important;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise),
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) * {
	box-sizing: border-box !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .single-product-contact .delivery-section:has(.ms-return-promise) {
	margin-top: 12px !important;
	padding-top: 12px !important;
	border-top: 1px solid #E5E7EB !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .delivery-section-new:has(.ms-return-promise) {
	margin-bottom: 24px !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) > div {
	display: flex !important;
	flex: none !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	width: auto !important;
	max-width: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	text-align: center !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) > div:has(.ms-return-promise) {
	grid-column: 1 / -1 !important;
	grid-row: 1 !important;
	flex-direction: row !important;
	gap: 12px !important;
	padding-bottom: 12px !important;
	border-bottom: 1px solid #E5E7EB !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) > div:nth-child(2) {
	border-left: 1px solid #E5E7EB !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) img {
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	max-width: 20px !important;
	min-height: 20px !important;
	max-height: 20px !important;
	flex: 0 0 20px !important;
	object-fit: contain !important;
	margin: 0 !important;
	padding: 0 !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) > div:has(.ms-return-promise) img {
	width: 24px !important;
	height: 24px !important;
	min-width: 24px !important;
	max-width: 24px !important;
	min-height: 24px !important;
	max-height: 24px !important;
	flex-basis: 24px !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) p {
	margin: 0 !important;
	padding: 0 !important;
	font: 400 14px/21px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
	color: #334155 !important;
	letter-spacing: normal !important;
	white-space: normal !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) .ms-return-promise {
	gap: 0;
	color: #214249 !important;
	font: 400 14px/21px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif !important;
	text-align: left !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) .ms-return-promise b {
	font-weight: 700 !important;
}
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) .ms-return-promise small {
	color: #334155 !important;
}

/* Small holly sprig after the Christmas return title (picked by Azad 31 Oct). */
:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) :is(.delivery-section, .delivery-section-new):has(.ms-return-promise) .ms-return-promise b::after {
	content: "";
	display: inline-block;
	width: 24px;
	height: 17px;
	margin-left: 6px;
	vertical-align: -2px;
	background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%2028%2020%22%3E%3Cpath%20fill%3D%22%232F7A4D%22%20d%3D%22M13%2011C11%205%206%203%201%205c1.5%201%201.6%202.6.6%204%202.3-.3%203%20.9%202.7%202.6%201.6-1.1%203-.9%203.8.6.6-1.6%202.2-2.3%204.9-1.2z%22/%3E%3Cpath%20fill%3D%22%233B8C5A%22%20d%3D%22M15%2011c2-6%207-8%2012-6-1.5%201-1.6%202.6-.6%204-2.3-.3-3%20.9-2.7%202.6-1.6-1.1-3-.9-3.8.6-.6-1.6-2.2-2.3-4.9-1.2z%22/%3E%3Ccircle%20cx%3D%2211.6%22%20cy%3D%2213.6%22%20r%3D%222.6%22%20fill%3D%22%23C8102E%22/%3E%3Ccircle%20cx%3D%2216.4%22%20cy%3D%2213.6%22%20r%3D%222.6%22%20fill%3D%22%23C8102E%22/%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2210.4%22%20r%3D%222.6%22%20fill%3D%22%23E0293F%22/%3E%3C/svg%3E") center / contain no-repeat;
}

/* FAQ page: the Christmas return note in the quick-facts row is red during the season. */
.msfaq-v2 .msfaq-facts li:has(path[d="M3 5.5v5h5"]) > span {
	color: #C8102E !important;
	font-weight: 600 !important;
}

/* Category pages on desktop: return block on the left, the two benefits beside it in one row. */
@media (min-width: 992px) {
	:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .ms-archive-toolbar > .delivery-section:has(.ms-return-promise) {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) !important;
		gap: 0 !important;
		align-items: center !important;
	}
	:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .ms-archive-toolbar > .delivery-section:has(.ms-return-promise) > div {
		padding: 4px 24px !important;
	}
	:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .ms-archive-toolbar > .delivery-section:has(.ms-return-promise) > div:has(.ms-return-promise) {
		grid-column: 1 !important;
		grid-row: 1 !important;
		justify-content: flex-start !important;
		padding: 4px 24px 4px 0 !important;
		border-bottom: 0 !important;
	}
	:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .ms-archive-toolbar > .delivery-section:has(.ms-return-promise) > div:nth-child(1) {
		grid-column: 2 !important;
		border-left: 1px solid #E5E7EB !important;
		grid-row: 1 !important;
	}
	:is(body, body.woocommerce-checkout form.checkout.ms-co .ms-co__trust-card) .ms-archive-toolbar > .delivery-section:has(.ms-return-promise) > div:nth-child(2) {
		grid-column: 3 !important;
		grid-row: 1 !important;
	}
}
