/*
 * FC-044 — one delivery error language for Cart Block and Checkout Block.
 *
 * This file is presentation only. The refusal itself is owned by
 * Product_Delivery_Eligibility in FlowCommerce Core.
 */
body.fcsu-cart-page .wc-block-components-notice-banner,
body.fcsu-checkout-page .wc-block-components-notice-banner {
	display: flex;
	min-width: 0;
	gap: var(--fc-space-2);
	align-items: flex-start;
	margin: 0 0 var(--fc-space-3) !important;
	padding: var(--fc-space-2) var(--fc-space-3) !important;
	border: 1px solid #e7b9b3 !important;
	border-radius: var(--fc-radius-md) !important;
	color: var(--fc-text) !important;
	background: #fff4f2 !important;
	box-shadow: none !important;
	font-size: 0.96rem;
	line-height: 1.55;
}

body.fcsu-cart-page .wc-block-components-notice-banner.is-error,
body.fcsu-checkout-page .wc-block-components-notice-banner.is-error {
	border-color: #e7b9b3 !important;
	background: #fff4f2 !important;
}

body.fcsu-cart-page .wc-block-components-notice-banner > svg,
body.fcsu-checkout-page .wc-block-components-notice-banner > svg,
body.fcsu-cart-page .wc-block-components-notice-banner__icon,
body.fcsu-checkout-page .wc-block-components-notice-banner__icon {
	width: 1.75rem !important;
	height: 1.75rem !important;
	flex: 0 0 1.75rem;
	margin: 0 !important;
	padding: 0.35rem;
	border-radius: var(--fc-radius-pill);
	color: #fff !important;
	background: var(--fc-state-cue-danger) !important;
	box-sizing: border-box;
}

body.fcsu-cart-page .wc-block-components-notice-banner > svg *,
body.fcsu-checkout-page .wc-block-components-notice-banner > svg *,
body.fcsu-cart-page .wc-block-components-notice-banner__icon *,
body.fcsu-checkout-page .wc-block-components-notice-banner__icon * {
	fill: currentColor !important;
	color: #fff !important;
}

body.fcsu-cart-page .wc-block-components-notice-banner__content,
body.fcsu-checkout-page .wc-block-components-notice-banner__content {
	min-width: 0;
	flex: 1 1 auto;
	margin: 0;
	padding: 0;
	color: var(--fc-text) !important;
	font: inherit;
	line-height: inherit;
	overflow-wrap: anywhere;
}

body.fcsu-cart-page .wc-block-components-notice-banner__content strong,
body.fcsu-checkout-page .wc-block-components-notice-banner__content strong,
body.fcsu-cart-page .wc-block-components-notice-banner__content .fcsu-delivery-product,
body.fcsu-checkout-page .wc-block-components-notice-banner__content .fcsu-delivery-product {
	color: inherit;
	font-weight: 800;
}

body.fcsu-cart-page .wc-block-components-notice-banner button,
body.fcsu-checkout-page .wc-block-components-notice-banner button {
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	margin: -0.15rem -0.35rem -0.15rem 0;
	padding: 0;
	border: 0;
	border-radius: var(--fc-radius-pill);
	color: var(--fc-text-muted) !important;
	background: transparent !important;
	box-shadow: none !important;
}

body.fcsu-cart-page .wc-block-components-notice-banner button:focus-visible,
body.fcsu-checkout-page .wc-block-components-notice-banner button:focus-visible {
	outline: 2px solid var(--fc-brand-accent);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	body.fcsu-cart-page .wc-block-components-notice-banner,
	body.fcsu-checkout-page .wc-block-components-notice-banner {
		gap: 0.65rem;
		padding: 0.8rem !important;
		border-radius: 0.9rem !important;
		font-size: 0.9rem;
		line-height: 1.45;
	}

	body.fcsu-cart-page .wc-block-components-notice-banner > svg,
	body.fcsu-checkout-page .wc-block-components-notice-banner > svg,
	body.fcsu-cart-page .wc-block-components-notice-banner__icon,
	body.fcsu-checkout-page .wc-block-components-notice-banner__icon {
		width: 1.55rem !important;
		height: 1.55rem !important;
		flex-basis: 1.55rem;
		padding: 0.3rem;
	}

	body.fcsu-cart-page .wc-block-components-notice-banner button,
	body.fcsu-checkout-page .wc-block-components-notice-banner button {
		width: 1.75rem;
		height: 1.75rem;
		min-width: 1.75rem;
		margin-right: -0.2rem;
	}
}
