/* Notice icons get their own inline-start space so they never overlap the first letter (LTR and RTL). */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	position: relative;
	padding-inline-start: 3.25rem;
	min-height: 3.25rem;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
	position: absolute;
	inset-inline-start: 1rem;
	inset-block-start: 50%;
	transform: translateY(-50%);
	margin: 0;
}
.woocommerce-error {
	list-style: none;
}
.wc-block-components-notice-banner {
	padding-inline-start: 1rem;
	gap: 0.75rem;
}
.wc-block-components-notice-banner > svg {
	flex: 0 0 auto;
	margin-inline-end: 0;
}
/* 1.4.82: block banners keep WooCommerce's light background, but base.css paints every <p> var(--gray-300), so the
   error banner title ("Please fix the following error…") was light grey on pink (about 1.6:1). Banner paragraphs take
   the banner's own dark text again, and the error banner pins its pair: #2f2f2f on #fff0f0 (about 12.1:1). */
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content p {
	color: inherit;
}
.wc-block-components-notice-banner.is-error {
	background-color: #fff0f0;
	color: #2f2f2f;
}

/* 1.4.83: keep WooCommerce's lilac payment box readable on order-pay and classic checkout. */
.woocommerce #payment div.payment_box {
	background-color: #dfdcde;
	color: var(--navy);
}
.woocommerce #payment div.payment_box p {
	color: inherit;
}

/* Keep the combined checkout prominent directly after the cart store groups. */
.bld-cart-groups > .btn-primary {
	display: flex;
	justify-content: center;
	min-block-size: 44px;
	line-height: 1.4;
	text-align: center;
}

/* Full-height overlays: dynamic viewport so Safari's bottom toolbar never hides the end of the panel. */
.drawer {
	height: 100vh;
	height: 100dvh;
	max-height: 100vh;
	max-height: 100dvh;
}
.nav-mobile {
	max-height: 100vh;
	max-height: 100dvh;
	overflow-y: auto;
	padding-block-end: calc(16px + env(safe-area-inset-bottom));
}
.drawer-body {
	padding-block-end: calc(16px + env(safe-area-inset-bottom));
}
@media (max-width: 768px) {
	/* Totals and Checkout stay pinned to the bottom of the single scroll container. */
	.drawer-foot {
		position: sticky;
		inset-block-end: 0;
		z-index: 2;
		background: var(--navy-850);
		padding-block-end: calc(16px + env(safe-area-inset-bottom));
	}
}
@media (min-width: 769px) {
	.drawer-foot {
		padding-block-end: calc(16px + env(safe-area-inset-bottom));
	}
}

.lang-switch .lang-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
