/* Global Elementor Menu Cart guardrails. Intentionally scoped to the header widget. */

/*
 * Elementor Pro's own vendor CSS sizes the full-page overlay behind the side
 * cart with `width: 100vw`. On some mobile browsers 100vw counts differently
 * than the true visible width (URL-bar collapse animations, scrollbar-gutter
 * reservation), which can leave a few px of horizontal scroll on the whole
 * page while this overlay is present. Constraining it here (our own file,
 * not the vendor CSS) is a defensive fix for the reported "very slight"
 * mobile horizontal scroll — not independently reproduced in this session's
 * testing environment, so confirm on a real phone after this deploys.
 */
body .elementor-menu-cart__container {
	max-width: 100%;
	overflow-x: hidden;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
	width: min(420px, 100vw);
	max-width: 100%;
	padding: 24px;
	background: #fff;
	color: #1b2845;
	font-family: "DM Sans", sans-serif;
	font-size: 14px;
	line-height: 1.5;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__products {
	padding: 0;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product {
	grid-template-columns: 72px minmax(0, 1fr) 28px;
	gap: 14px;
	padding-block: 16px;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-image {
	padding: 0;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-image img {
	width: 72px;
	height: 72px;
	border-radius: 8px;
	object-fit: contain;
	object-position: center;
	background: #fbf9f5;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-name {
	padding: 0;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-name a {
	color: #1b2845;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-name a:hover {
	color: #c8102e;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-price {
	padding: 6px 0 0;
	color: #5f6470;
	font-family: "DM Sans", sans-serif;
	font-size: 13px;
	line-height: 1.4;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__product-remove {
	width: 28px;
	height: 28px;
	border: 1px solid #e8dcc4;
	color: #1b2845;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__subtotal {
	padding: 18px 0;
	border-color: #e8dcc4;
	color: #1b2845;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.45;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 48px;
	padding: 11px 14px;
	border: 1px solid #c8102e;
	border-radius: 6px;
	font-family: "DM Sans", sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button--view-cart {
	background: #fff;
	color: #c8102e;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button--checkout {
	background: #c8102e;
	color: #fff;
}

body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button:hover {
	border-color: #a90d27;
	background: #a90d27;
	color: #fff;
}

@media (max-width: 420px) {
	body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__main {
		padding: 20px 18px;
	}

	body .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__footer-buttons a.elementor-button {
		padding-inline: 9px;
		font-size: 14px;
	}
}
