/* Layout comercial sem sidebar: o filtro PHP remove a estrutura; estas regras são fallback. */
body.pacta-woocommerce-commerce #primary {
	float: none;
	width: 100%;
	max-width: none;
	padding: 0;
	border: 0;
}

body.pacta-woocommerce-commerce #left-sidebar,
body.pacta-woocommerce-commerce #right-sidebar {
	display: none;
}

/* Acesso ao carrinho integrado ao header Elementor existente. */
#site-header .elementor-element-3b5b38d > .elementor-widget-container {
	display: flex;
	align-items: center;
	gap: 12px;
}

#site-header .elementor-element-51bdbdc > .elementor-widget-container {
	position: relative;
}

#site-header .pacta-header-cart {
	display: inline-flex;
	box-sizing: border-box;
	min-width: 50px;
	height: 45px;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 13px;
	border: 1px solid #f29244;
	border-radius: 5px 20px;
	background: #fff;
	box-shadow: none;
	color: #174977;
	font-family: Roboto, sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

#site-header .pacta-header-cart:hover,
#site-header .pacta-header-cart:focus-visible {
	border-color: #f29244;
	background: #f29244;
	color: #fff;
	text-decoration: none;
}

#site-header .pacta-header-cart:focus-visible {
	outline: 3px solid rgba(23, 73, 119, 0.28);
	outline-offset: 3px;
}

#site-header .pacta-header-cart__icon,
#site-header .pacta-header-cart__icon svg {
	display: block;
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
}

#site-header .pacta-header-cart__icon svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

#site-header .pacta-header-cart__count {
	display: inline-flex;
	min-width: 1ch;
	align-items: center;
	justify-content: center;
	font-variant-numeric: tabular-nums;
}

#site-header .pacta-header-cart--mobile {
	display: none;
}

@media (max-width: 1024px) {
	#site-header .pacta-header-cart--desktop {
		display: none;
	}

	#site-header .pacta-header-cart--mobile {
		display: inline-flex;
		position: absolute;
		top: 50%;
		right: calc(100% + 12px);
		z-index: 4;
		min-width: 46px;
		height: 44px;
		padding-inline: 11px;
		transform: translateY(-50%);
	}
}

@media (max-width: 374px) {
	#site-header .pacta-header-cart--mobile {
		right: calc(100% + 8px);
		min-width: 44px;
		padding-inline: 9px;
	}
}

@media (prefers-reduced-motion: reduce) {
	#site-header .pacta-header-cart {
		transition-duration: 0.01ms;
	}
}
