body.websync-menu-cart-open {
	overflow: hidden;
}

.websync-menu-cart-wrapper {
	position: relative;
	display: inline-flex;
	box-sizing: border-box;
	font-size: 16px;
}

.websync-menu-cart-wrapper,
.websync-menu-cart-wrapper * {
	box-sizing: border-box;
}

.websync-menu-cart-hide-empty.is-empty {
	display: none;
}

.websync-menu-cart-trigger {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 44px;
	min-height: 44px;
	padding: 9px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #111827;
	font: inherit;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.websync-menu-cart-trigger:hover,
.websync-menu-cart-trigger:focus-visible {
	border-color: #9ca3af;
	background: #f9fafb;
	color: #111827;
}

.websync-menu-cart-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	font-size: 24px;
}

.websync-menu-cart-icon :is(i, svg) {
	display: block;
	width: 1em;
	height: 1em;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.websync-menu-cart-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding-inline: 5px;
	border-radius: 999px;
	background: #4f46e5;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.websync-menu-cart-indicator-bubble .websync-menu-cart-count {
	position: absolute;
	top: -8px;
	right: -8px;
	box-shadow: 0 0 0 2px #fff;
}

.websync-menu-cart-indicator-none .websync-menu-cart-count {
	display: none;
}

.websync-menu-cart-indicator-plain .websync-menu-cart-count {
	position: static;
	min-width: 0;
	height: auto;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: currentColor;
	font-size: 14px;
}

.websync-menu-cart-subtotal {
	color: currentColor;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
}

.websync-menu-cart-hide-trigger-subtotal .websync-menu-cart-subtotal,
.websync-menu-cart-hide-panel-subtotal .woocommerce-mini-cart__total,
.websync-menu-cart-hide-view-cart .woocommerce-mini-cart__buttons .wc-forward:not(.checkout),
.websync-menu-cart-hide-checkout .woocommerce-mini-cart__buttons .checkout {
	display: none !important;
}

.websync-menu-cart-overlay {
	position: fixed;
	z-index: 999997;
	inset: 0;
	display: block;
	visibility: hidden;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: rgba(15, 23, 42, 0.52);
	opacity: 0;
	cursor: default;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.websync-menu-cart-panel {
	position: fixed;
	z-index: 999998;
	top: 0;
	right: 0;
	display: flex;
	flex-direction: column;
	visibility: hidden;
	width: min(420px, 92vw);
	height: 100vh;
	height: 100dvh;
	padding: 0;
	border: 0;
	background: #fff;
	box-shadow: -18px 0 50px rgba(15, 23, 42, 0.18);
	opacity: 0;
	transform: translateX(100%);
	transition: transform 0.28s ease, opacity 0.22s ease, visibility 0.28s ease;
}

.websync-menu-cart-position-left .websync-menu-cart-panel {
	right: auto;
	left: 0;
	box-shadow: 18px 0 50px rgba(15, 23, 42, 0.18);
	transform: translateX(-100%);
}

.websync-menu-cart-wrapper.is-open .websync-menu-cart-overlay {
	visibility: visible;
	opacity: 1;
}

.websync-menu-cart-wrapper.is-open .websync-menu-cart-panel {
	visibility: visible;
	opacity: 1;
	transform: translateX(0);
}

.websync-menu-cart-dropdown .websync-menu-cart-overlay {
	display: none;
}

.websync-menu-cart-dropdown .websync-menu-cart-panel {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	left: auto;
	width: min(380px, 90vw);
	height: auto;
	max-height: min(620px, 80vh);
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
	transform: translateY(10px);
	transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s ease;
}

.websync-menu-cart-dropdown.websync-menu-cart-position-left .websync-menu-cart-panel {
	right: auto;
	left: 0;
}

.websync-menu-cart-dropdown.is-open .websync-menu-cart-panel {
	transform: translateY(0);
}

.websync-menu-cart-header {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 22px;
	border-bottom: 1px solid #e5e7eb;
}

.websync-menu-cart-title {
	margin: 0;
	color: #111827;
	font-size: 20px;
	font-weight: 650;
	line-height: 1.3;
}

.websync-menu-cart-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #4b5563;
	cursor: pointer;
}

.websync-menu-cart-close:hover,
.websync-menu-cart-close:focus-visible {
	background: #f3f4f6;
	color: #111827;
}

.websync-menu-cart-close-left .websync-menu-cart-close {
	order: -1;
}

.websync-menu-cart-close svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 1.8;
}

.websync-menu-cart-panel .widget_shopping_cart_content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	padding: 20px 22px;
}

.websync-menu-cart-panel .woocommerce-mini-cart {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	list-style: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item {
	position: relative;
	display: grid;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 5px 14px;
	min-height: 92px;
	margin: 0;
	padding: 14px 34px 14px 0;
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item:first-child {
	padding-top: 0;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item > a:not(.remove),
.websync-menu-cart-panel .websync-menu-cart-sample-product {
	display: grid;
	grid-column: 1 / -1;
	grid-template-columns: 72px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item img,
.websync-menu-cart-panel .websync-menu-cart-sample-image {
	grid-column: 1;
	grid-row: 1 / span 3;
	float: none;
	width: 72px;
	height: 72px;
	margin: 0;
	border-radius: 6px;
	background: linear-gradient(135deg, #ede9fe, #f8fafc);
	object-fit: cover;
}

.websync-menu-cart-hide-images .woocommerce-mini-cart-item,
.websync-menu-cart-hide-images .woocommerce-mini-cart-item > a:not(.remove),
.websync-menu-cart-hide-images .websync-menu-cart-sample-product {
	grid-template-columns: minmax(0, 1fr);
}

.websync-menu-cart-hide-images .woocommerce-mini-cart-item img,
.websync-menu-cart-hide-images .websync-menu-cart-sample-image {
	display: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item .quantity,
.websync-menu-cart-panel .woocommerce-mini-cart-item .variation {
	grid-column: 2;
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.websync-menu-cart-hide-images .woocommerce-mini-cart-item .quantity,
.websync-menu-cart-hide-images .woocommerce-mini-cart-item .variation {
	grid-column: 1;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item .variation :is(dt, dd, p) {
	display: inline;
	float: none;
	margin: 0 4px 0 0;
	padding: 0;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item .remove {
	position: absolute;
	top: 13px;
	right: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #9ca3af !important;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	text-decoration: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart-item .remove:hover,
.websync-menu-cart-panel .woocommerce-mini-cart-item .remove:focus-visible {
	background: #fef2f2;
	color: #dc2626 !important;
}

.websync-menu-cart-hide-remove .woocommerce-mini-cart-item .remove {
	display: none !important;
}

.websync-menu-cart-remove-center .woocommerce-mini-cart-item .remove {
	top: 50%;
	transform: translateY(-50%);
}

.websync-menu-cart-remove-bottom .woocommerce-mini-cart-item .remove {
	top: auto;
	bottom: 13px;
}

.websync-menu-cart-panel .woocommerce-mini-cart__total {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 18px 0;
	border-top: 1px solid #e5e7eb;
	color: #111827;
	font-size: 16px;
	line-height: 1.4;
}

.websync-menu-cart-panel .woocommerce-mini-cart__total strong {
	font-weight: 600;
}

.websync-menu-cart-panel .woocommerce-mini-cart__buttons {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
}

.websync-menu-cart-buttons-stacked .woocommerce-mini-cart__buttons {
	grid-template-columns: 1fr;
}

.websync-menu-cart-buttons-position-top .woocommerce-mini-cart {
	order: 2;
}

.websync-menu-cart-buttons-position-top .woocommerce-mini-cart__total {
	order: 1;
}

.websync-menu-cart-buttons-position-top .woocommerce-mini-cart__buttons {
	order: 0;
	margin-bottom: 18px;
}

.websync-menu-cart-panel .woocommerce-mini-cart__buttons .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	color: #111827;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart__buttons .checkout {
	border-color: #111827;
	background: #111827;
	color: #fff;
}

.websync-menu-cart-panel .woocommerce-mini-cart__buttons .button:hover,
.websync-menu-cart-panel .woocommerce-mini-cart__buttons .button:focus-visible {
	border-color: #4b5563;
	background: #f3f4f6;
	color: #111827;
}

.websync-menu-cart-panel .woocommerce-mini-cart__buttons .checkout:hover,
.websync-menu-cart-panel .woocommerce-mini-cart__buttons .checkout:focus-visible {
	border-color: #374151;
	background: #374151;
	color: #fff;
}

.websync-menu-cart-hide-view-cart .woocommerce-mini-cart__buttons,
.websync-menu-cart-hide-checkout .woocommerce-mini-cart__buttons {
	grid-template-columns: 1fr;
}

.websync-menu-cart-hide-view-cart.websync-menu-cart-hide-checkout .woocommerce-mini-cart__buttons {
	display: none;
}

.websync-menu-cart-panel .woocommerce-mini-cart__empty-message {
	margin: auto;
	padding: 40px 16px;
	color: #6b7280;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
}

.websync-menu-cart-panel .blockOverlay {
	background-color: #fff !important;
	opacity: 0.65 !important;
}

@media (max-width: 767px) {
	.websync-menu-cart-panel {
		width: min(390px, 94vw);
	}

	.websync-menu-cart-dropdown .websync-menu-cart-panel {
		position: fixed;
		top: auto;
		right: 3vw;
		bottom: 12px;
		left: 3vw;
		width: 94vw;
		max-height: min(620px, calc(100vh - 24px));
		max-height: min(620px, calc(100dvh - 24px));
	}

	.websync-menu-cart-dropdown.websync-menu-cart-position-left .websync-menu-cart-panel {
		right: 3vw;
		left: 3vw;
	}

	.websync-menu-cart-panel .widget_shopping_cart_content,
	.websync-menu-cart-header {
		padding-inline: 18px;
	}

	.websync-menu-cart-panel .woocommerce-mini-cart__buttons {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.websync-menu-cart-overlay,
	.websync-menu-cart-panel {
		transition-duration: 0.01ms;
	}
}
