/* Custom Menu Cart Button Widget — styles */

.custom-menu-cart-wrapper {
	position: relative;
	display: inline-block;
}

.custom-menu-cart-toggle {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 12px 12px;
	font: inherit;
	line-height: 1;
	position: relative;
	color: inherit;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.custom-menu-cart-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.custom-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.custom-cart-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.custom-menu-cart-label {
	white-space: nowrap;
}

.custom-cart-subtotal {
	white-space: nowrap;
	font-size: 0.9em;
	opacity: 0.85;
}

.custom-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 4px;
	border-radius: 50%;
	background-color: #e63946;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1px;
	position: absolute;
    right: 3px;
    top: 3px;
}

/* Dropdown panel */
.custom-menu-cart-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	width: 320px;
	max-width: 90vw;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	z-index: 9999;
	max-height: 70vh;
	overflow-y: auto;
}

.custom-menu-cart-wrapper.is-open .custom-menu-cart-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.custom-menu-cart-align-right .custom-menu-cart-dropdown {
	right: 0;
}

.custom-menu-cart-align-left .custom-menu-cart-dropdown {
	left: 0;
}

.custom-menu-cart-dropdown-inner {
	padding: 12px;
}

/* WooCommerce mini-cart tidy-up inside the dropdown */
.custom-menu-cart-dropdown .widget_shopping_cart_content,
.custom-menu-cart-dropdown .woocommerce-mini-cart {
	margin: 0;
	padding: 0;
	list-style: none;
}

.custom-menu-cart-dropdown .woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 16px 4px;
	font-size: 13px;
	color: #888;
	text-align: center;
}

.custom-menu-cart-dropdown .woocommerce-mini-cart__buttons .button {
	display: block;
	width: 100%;
	text-align: center;
	margin: 6px 0 0;
}

@media (max-width: 480px) {
	.custom-menu-cart-dropdown {
		width: 280px;
	}
}

/* ------------------------------------------------------------------
 * Off-canvas display style
 * ---------------------------------------------------------------- */

.custom-menu-cart-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba( 0, 0, 0, 0.5 );
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 100000;
}

.custom-menu-cart-wrapper.is-open .custom-menu-cart-overlay {
	opacity: 1;
	visibility: visible;
}

.custom-menu-cart-offcanvas {
	position: fixed;
	top: 0;
	width: 380px;
	max-width: 90vw;
	height: 100%;
	background: #fff;
	box-shadow: 0 0 30px rgba( 0, 0, 0, 0.2 );
	z-index: 100001;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
	overflow-y: auto;
}

.custom-menu-cart-display-offcanvas.custom-menu-cart-align-right .custom-menu-cart-offcanvas {
	right: 0;
	transform: translateX( 100% );
}

.custom-menu-cart-display-offcanvas.custom-menu-cart-align-left .custom-menu-cart-offcanvas {
	left: 0;
	transform: translateX( -100% );
}

.custom-menu-cart-wrapper.is-open .custom-menu-cart-offcanvas {
	transform: translateX( 0 );
}

.custom-menu-cart-offcanvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid rgba( 0, 0, 0, 0.08 );
	flex: 0 0 auto;
}

.custom-menu-cart-offcanvas-heading {
	font-size: 16px;
	font-weight: 600;
}

.custom-menu-cart-offcanvas-close {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	color: #333;
	padding: 4px 8px;
}

.custom-menu-cart-offcanvas .custom-menu-cart-dropdown-inner {
	flex: 1 1 auto;
	padding: 16px 20px;
}

/* Lock body scroll while an off-canvas panel is open */
body.custom-menu-cart-scroll-locked {
	overflow: hidden;
}
.custom-menu-cart-offcanvas .elementor-menu-cart__product{
	    grid-template-columns: 20% auto;
}
.custom-menu-cart-offcanvas .elementor-menu-cart__product-name a{
	    font-weight: 500;
    font-size: 16px;
}
@media (max-width: 480px) {
	.custom-menu-cart-offcanvas {
		width: 100%;
		max-width: 100vw;
	}
}
