/* LL Cart Overlay Controller styles */

:root {
	--llco-accent: var(--e-global-color-accent, #c0204d);
	--llco-primary: var(--e-global-color-primary, #29332f);
	--llco-panel-bg: #fff;
	--llco-border: #e4e9f3;
	--llco-muted: #677287;
}

.llco-backdrop {
	position: fixed;
	inset: 0;
	z-index: 999998;
	border: 0;
	margin: 0;
	padding: 0;
	background: rgba( 12, 18, 30, 0.42 ) !important;
	backdrop-filter: blur( 2px );
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.24s ease;
	cursor: default;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
}

.llco-backdrop.is-visible {
	opacity: 1;
	pointer-events: auto;
}

body.llco-wizard-page .llco-backdrop,
body.llco-wizard-page .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__container {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.llco-backdrop:hover,
.llco-backdrop:focus,
.llco-backdrop:active,
.llco-backdrop:focus-visible {
	background: rgba( 12, 18, 30, 0.42 ) !important;
	border: 0 !important;
	box-shadow: none !important;
	outline: none !important;
}

body.llco-scroll-lock {
	overflow: hidden;
}

.llco-widget .elementor-menu-cart__container {
	transition: opacity 0.22s ease, visibility 0.22s ease;
}

.llco-widget .elementor-menu-cart__main {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0 !important;
	background: var(--llco-panel-bg);
}

.llco-cart-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 64px;
	padding: 16px 18px;
	margin: 0;
	box-sizing: border-box;
	border-bottom: 1px solid rgba( 255, 255, 255, 0.2 );
	background: linear-gradient( 135deg, var(--llco-primary) 0%, #1f2825 100% );
}

.llco-cart-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #fff;
}

.llco-cart-close {
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid rgba( 255, 255, 255, 0.45 );
	border-radius: 9px;
	background: rgba( 255, 255, 255, 0.12 );
	color: #fff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.llco-cart-close:hover {
	border-color: #fff;
	background: rgba( 255, 255, 255, 0.22 );
}

.llco-widget .widget_shopping_cart_content {
	padding: 12px 16px 16px;
	flex: 1 1 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
}

.llco-widget .widget_shopping_cart_content .woocommerce-mini-cart {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	min-height: 0;
}

.llco-widget .elementor-menu-cart__products {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 4px;
}

.llco-widget .elementor-menu-cart__product {
	display: grid;
	grid-template-columns: 68px 1fr;
	gap: 8px;
	align-items: start;
	padding: 10px 42px 10px 10px;
	border: 1px solid var(--llco-border);
	border-radius: 12px;
	background: #f9fbff;
	position: relative;
}

.llco-widget .elementor-menu-cart__product-image img {
	width: 72px;
	aspect-ratio: 2 / 3;
	height: auto;
	object-fit: cover;
	border-radius: 9px;
}

.llco-widget .elementor-menu-cart__product-name a {
	color: #182031 !important;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-decoration: none;
}

.llco-widget .llco-variant-badge {
	display: inline-flex;
	align-items: center;
	margin-top: 0;
	padding: 3px 8px;
	border-radius: 999px;
	border: 1px solid #ffd9c7;
	background: #fff4ed;
	color: #9b3f1a;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.llco-widget .elementor-menu-cart__product-name a:hover {
	color: var(--llco-accent) !important;
}

.llco-widget .elementor-menu-cart__product-price {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	color: var(--llco-accent);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.llco-widget .elementor-menu-cart__product-price .llco-price-value {
	margin-left: auto;
	color: var(--e-global-color-accent, #c0204d);
	font-size: 20px;
	font-weight: 700;
	text-align: right;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove {
	position: absolute !important;
	top: 8px;
	right: 8px;
	display: block !important;
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	flex: 0 0 26px !important;
	overflow: visible !important;
	visibility: visible !important;
	opacity: 1 !important;
	z-index: 2;
	color: inherit !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove::before,
.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove::after {
	content: none !important;
	display: none !important;
}

.llco-widget .elementor-menu-cart__product-remove a.elementor_remove_from_cart_button + a.remove_from_cart_button {
	display: none !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a + a {
	display: none !important;
}

.llco-widget .elementor-menu-cart__product-remove.llco-remove-ready a {
	display: none !important;
}

.llco-widget.elementor-menu-cart--show-remove-button-no .elementor-menu-cart__product-remove {
	display: block !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a {
	all: unset;
	width: 26px !important;
	height: 26px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid var(--llco-primary) !important;
	border-radius: 999px !important;
	color: #fff !important;
	background: var(--llco-primary) !important;
	text-decoration: none !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	position: relative;
	overflow: hidden !important;
	text-indent: 0;
	white-space: normal !important;
	visibility: visible !important;
	opacity: 1 !important;
	box-shadow: 0 2px 8px rgba( 15, 24, 42, 0.22 );
	background-image: none !important;
	cursor: pointer !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a.llco-remove-link {
	transform: translateY( -0.5px );
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link,
body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.elementor_remove_from_cart_button.llco-remove-link,
body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.remove_from_cart_button.llco-remove-link {
	all: unset;
	width: 100% !important;
	height: 100% !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid var(--llco-primary) !important;
	border-radius: 999px !important;
	background: var(--llco-primary) !important;
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center !important;
	text-decoration: none !important;
	text-indent: 0 !important;
	box-shadow: 0 2px 8px rgba( 15, 24, 42, 0.22 );
	cursor: pointer !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove,
body[class*="llco-behavior-"] .elementor-menu-cart__product-remove.product-remove {
	width: 26px !important;
	height: 26px !important;
	min-width: 26px !important;
	min-height: 26px !important;
	max-width: 26px !important;
	max-height: 26px !important;
	flex: 0 0 26px !important;
	line-height: 0 !important;
	font-size: 0 !important;
	overflow: visible !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link:hover {
	border-color: var(--llco-accent) !important;
	background: #fff !important;
	color: var(--llco-accent) !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link::before,
body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link::after {
	content: none !important;
	display: none !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link:empty::before {
	content: "\00D7" !important;
	display: block !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove .llco-remove-button {
	all: unset;
	width: 26px !important;
	height: 26px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border: 1px solid var(--llco-primary) !important;
	border-radius: 999px !important;
	background: var(--llco-primary) !important;
	color: #fff !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	line-height: 1 !important;
	text-align: center !important;
	box-shadow: 0 2px 8px rgba( 15, 24, 42, 0.22 );
	cursor: pointer !important;
	transform: translateY( -0.5px );
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove .llco-remove-button:hover {
	border-color: var(--llco-accent) !important;
	background: #fff !important;
	color: var(--llco-accent) !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a::before {
	content: none !important;
	display: none !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a::after {
	content: none !important;
	display: none !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a:hover {
	border-color: var(--llco-accent);
	background: #fff;
	color: var(--llco-accent) !important;
}

.llco-widget .elementor-menu-cart__products .elementor-menu-cart__product .elementor-menu-cart__product-remove a:hover::before {
	content: none !important;
	display: none !important;
}

.llco-widget .elementor-menu-cart__product-remove a.is-loading {
	pointer-events: none;
}

.llco-widget .elementor-menu-cart__product-remove .llco-remove-button.is-loading {
	pointer-events: none;
}

.llco-widget .elementor-menu-cart__product.llco-is-removing {
	opacity: 0.48;
	transition: opacity 0.2s ease;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link.is-loading {
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
	font-size: 0 !important;
	position: relative !important;
	border-color: var(--llco-primary) !important;
	background: var(--llco-primary) !important;
	cursor: wait !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link.is-loading:hover {
	border-color: var(--llco-primary) !important;
	background: var(--llco-primary) !important;
	color: transparent !important;
	-webkit-text-fill-color: transparent !important;
}

body[class*="llco-behavior-"] .elementor-menu-cart__product-remove a.llco-remove-link.is-loading::after {
	content: "" !important;
	display: block !important;
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	width: 14px !important;
	height: 14px !important;
	margin: -7px 0 0 -7px !important;
	border-radius: 999px !important;
	border: 2px solid rgba( 255, 255, 255, 0.4 ) !important;
	border-top-color: #fff !important;
	animation: llco-remove-spin 0.7s linear infinite !important;
}

@keyframes llco-remove-spin {
	from {
		transform: rotate( 0deg );
	}

	to {
		transform: rotate( 360deg );
	}
}

.llco-widget .elementor-menu-cart__subtotal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin: 14px 0 12px;
	padding: 10px 12px;
	border: 1px solid #fde2d6;
	border-radius: 10px;
	background: #fff8f3;
	color: #1b2436;
	font-size: 13px;
	font-weight: 700;
	flex: 0 0 auto;
}

.llco-widget .elementor-menu-cart__subtotal,
.llco-widget .elementor-menu-cart__footer-buttons {
	flex-shrink: 0;
}

.llco-widget .elementor-menu-cart__footer-buttons {
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	flex: 0 0 auto;
}

.llco-widget .elementor-menu-cart__footer-buttons .elementor-button,
.llco-widget .elementor-menu-cart__footer-buttons a.elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 40px;
	padding: 0 14px;
	border-radius: 12px !important;
	border-width: 1px !important;
	border-style: solid !important;
	box-sizing: border-box;
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

.llco-widget .elementor-menu-cart__footer-buttons .elementor-button--view-cart {
	border-color: var(--llco-primary) !important;
	background: #fff;
	color: var(--llco-primary) !important;
}

.llco-widget .elementor-menu-cart__footer-buttons .elementor-button--view-cart:hover {
	background: var(--llco-primary);
	color: #fff !important;
}

.llco-widget .elementor-menu-cart__footer-buttons .elementor-button--checkout {
	border-color: var(--llco-accent) !important;
	background: #fff;
	color: var(--llco-accent) !important;
}

.llco-widget .elementor-menu-cart__footer-buttons .elementor-button--checkout:hover {
	background: var(--llco-accent);
	color: #fff !important;
	filter: none;
}

.llco-widget .woocommerce-mini-cart__empty-message {
	margin: 6px 0 0;
	padding: 14px;
	border: 1px dashed #d8dfec;
	border-radius: 10px;
	background: #f9fbff;
	color: var(--llco-muted) !important;
	-webkit-text-fill-color: var(--llco-muted) !important;
	opacity: 1 !important;
	text-align: center;
}

/* Product-list toasts are redundant when auto-open cart is active. */
body[class*="llco-behavior-"] .elel-pl-toast-container,
body[class*="llco-behavior-"] .elel-pl-toast {
	display: none !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Side overlay mode */
.llco-widget.llco-mode-side_overlay .elementor-menu-cart__container {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min( 460px, 100vw );
	max-width: 100vw;
	height: 100vh;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 999999;
}

body.admin-bar .llco-widget.llco-mode-side_overlay .elementor-menu-cart__container {
	top: 32px;
	height: calc(100vh - 32px);
}

.llco-widget.llco-mode-side_overlay.llco-open .elementor-menu-cart__container {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.llco-widget.llco-mode-side_overlay .elementor-menu-cart__main {
	width: 100%;
	max-width: 100%;
	height: 100%;
	max-height: 100%;
	border-radius: 0;
	box-shadow: -18px 0 36px rgba( 13, 18, 31, 0.24 );
	transform: translateX( 100% );
	transition: transform 0.24s ease;
}

.llco-widget.llco-mode-side_overlay.llco-open .elementor-menu-cart__main {
	transform: translateX( 0 );
}

/* Popover mode */
.llco-widget.llco-mode-popover .elementor-menu-cart__container {
	position: absolute;
	top: calc( 100% + 14px );
	right: 0;
	left: auto;
	width: min( 460px, 92vw );
	height: auto;
	max-height: min( 82vh, 680px );
	padding: 0;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 999999;
}

.llco-widget.llco-mode-popover.llco-open .elementor-menu-cart__container {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.llco-widget.llco-mode-popover .elementor-menu-cart__main {
	width: 100%;
	height: auto;
	max-height: min( 82vh, 680px );
	border-radius: 16px;
	border: 1px solid #dfe7f4;
	box-shadow: 0 20px 46px rgba( 15, 24, 42, 0.24 );
	transform: translateY( 12px );
	transition: transform 0.22s ease;
}

.llco-widget.llco-mode-popover.llco-open .elementor-menu-cart__main {
	transform: translateY( 0 );
}

.llco-widget.llco-mode-popover .widget_shopping_cart_content {
	max-height: calc( min( 82vh, 680px ) - 66px );
}

/* Redirect mode */
.llco-widget.llco-mode-redirect_to_cart .elementor-menu-cart__container {
	display: none !important;
}

@media (max-width: 960px) {
	.llco-widget.llco-mode-popover .elementor-menu-cart__container {
		position: fixed;
		top: 0;
		right: 0;
		left: auto;
		width: min( 460px, 100vw );
		height: 100vh;
		max-height: 100vh;
	}

	body.admin-bar .llco-widget.llco-mode-popover .elementor-menu-cart__container {
		top: 32px;
		height: calc(100vh - 32px);
		max-height: calc(100vh - 32px);
	}

	.llco-widget.llco-mode-popover .elementor-menu-cart__main {
		height: 100%;
		max-height: 100%;
		border-radius: 0;
	}

	.llco-widget.llco-mode-popover .widget_shopping_cart_content {
		max-height: calc( 100vh - 66px );
	}

}

@media (max-width: 782px) {
	body.admin-bar .llco-widget.llco-mode-side_overlay .elementor-menu-cart__container {
		top: 46px;
		height: calc(100vh - 46px);
	}

	body.admin-bar .llco-widget.llco-mode-popover .elementor-menu-cart__container {
		top: 46px;
		height: calc(100vh - 46px);
		max-height: calc(100vh - 46px);
	}
}
