/**
 * UpsellWP mini-cart drawer (#uwpmc-cart-sidebar).
 *
 * Fixes mobile “chopped” top: the plugin’s .uwpmc-sidebar is position:fixed
 * without an explicit top, so some mobile browsers use the static position
 * and the My Cart header / close control sit above the visible viewport.
 *
 * Also fixes white-on-white “My Cart” title: live custom CSS sets
 * color:#fff on .uwpmc-header while background uses an unset/light
 * --e-global-color-secondary. Pin a navy header bar + white type.
 */

#uwpmc-cart-sidebar {
	top: 0 !important;
	bottom: 0 !important;
	height: 100% !important;
	height: 100dvh !important;
	max-height: 100dvh !important;
}

.uwpmc-sidebar {
	top: 0 !important;
	bottom: 0 !important;
	height: 100% !important;
	height: 100dvh !important;
	max-height: 100dvh !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: flex-start !important;
	overflow: hidden !important;
	padding-top: env(safe-area-inset-top, 0px);
	box-sizing: border-box !important;
	pointer-events: auto;
	z-index: 100001;
}

#uwpmc-cart-sidebar .uwpmc-header {
	flex: 0 0 auto !important;
	position: relative;
	z-index: 2;
	margin: 12px 12px 0 !important;
	/* Beat plugin inline color:#181C25 and prior white-on-white custom CSS */
	color: #fff !important;
}

#uwpmc-cart-sidebar .uwpmc-header > div {
	/* Hardcoded navy — do not rely on --e-global-color-secondary (may be light). */
	background-color: #060f2e !important;
	color: #fff !important;
	border-radius: 20px 20px 0 0;
	padding: 12px;
	border: 1px solid #e8eaed !important;
	border-bottom: 0 !important;
	width: 100%;
	box-sizing: border-box;
}

#uwpmc-cart-sidebar .uwpmc-header h2,
#uwpmc-cart-sidebar .uwpmc-header .uwpmc-header-title,
#uwpmc-cart-sidebar .uwpmc-header-title {
	color: #fff !important;
	font-size: 18px !important;
}

#uwpmc-close-cart {
	pointer-events: auto !important;
	cursor: pointer;
	position: relative;
	z-index: 100002;
	color: #fff !important;
	flex-shrink: 0;
}

#uwpmc-close-cart svg {
	pointer-events: none;
	display: block;
	fill: currentColor;
	stroke: currentColor;
}

#uwpmc-cart-sidebar .uwpmc-body {
	flex: 1 1 auto !important;
	min-height: 0 !important;
	overflow: hidden !important;
}

#uwpmc-cart-sidebar .uwpmc-footer {
	flex: 0 0 auto !important;
}

@media (max-width: 767px) {
	.uwpmc-sidebar {
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* Hide Quick View eye on product cards (wishlist + compare remain). */
.pls-quickview-button,
.pls-quickview-btn,
.pls-product-icons .pls-quickview-button {
	display: none !important;
}
