/* Cart cross-sells inside the WooCommerce / Elementor Pro mini cart. */
.efp-mcc {
	--efp-mcc-accent: var(--e-global-color-87c7420, #231f1a);
	--efp-mcc-hover: #dd3333;
	--efp-mcc-text: #231f1a;
	--efp-mcc-muted: #b08a4e;
	--efp-mcc-image-bg: #f4f1ea;
	margin: 16px 0 0;
	padding: 16px 0 4px;
	color: var(--efp-mcc-text);
	text-align: left;
	clear: both;
}

.efp-mcc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.efp-mcc__title {
	margin: 0 !important;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	color: inherit;
	font-family: 'Cinzel';
}

.elementor-menu-cart__close-button {
    position: absolute;
    z-index: 9999;
}

.efp-mcc__arrows {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.efp-mcc__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	padding: 0 !important;
	border: 1px solid rgba(35, 31, 26, 0.2) !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--efp-mcc-text) !important;
	cursor: pointer;
	transition: opacity 0.2s ease, border-color 0.2s ease;
}

.efp-mcc__arrow:hover:not(:disabled) {
	border-color: var(--efp-mcc-text) !important;
}

.efp-mcc__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

.efp-mcc__arrows[hidden] {
	display: none;
}

/* Horizontal scroll-snap strip: one-and-a-bit cards visible so it reads as scrollable. */
.efp-mcc__track {
	display: flex;
	gap: 12px;
	margin: 0 !important;
	padding: 0 0 4px !important;
	list-style: none !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.efp-mcc__track::-webkit-scrollbar {
	display: none;
}

.efp-mcc__item {
	flex: 0 0 85%;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 !important;
	padding: 10px !important;
	border: 1px solid rgba(35, 31, 26, 0.1);
	border-radius: 12px;
	background: #fff;
	scroll-snap-align: start;
	box-sizing: border-box;
	min-width: 0;
}

.efp-mcc__item:only-child {
	flex-basis: 100%;
}

.efp-mcc__thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--efp-mcc-image-bg);
	display: block;
}

.efp-mcc__thumb img,
.efp-mcc .efp-mcc__img {
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: contain;
	margin: 0 !important;
	display: block;
}

.efp-mcc__info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	flex: 1 1 auto;
}

.efp-mcc__name {
	font-size: 14px;
	line-height: 1.3;
	font-weight: 500;
	color: var(--efp-mcc-text) !important;
	text-decoration: none !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.efp-mcc__name:hover {
	color: var(--efp-mcc-muted) !important;
}

.efp-mcc__price {
	font-size: 13px;
	line-height: 1.3;
	color: var(--efp-mcc-text);
}

.efp-mcc__price del {
	opacity: 0.55;
	margin-right: 4px;
}

.efp-mcc__price ins {
	text-decoration: none;
}

.efp-mcc .efp-mcc__btn {
	display: inline-block;
	margin: 4px 0 0 !important;
	padding: 6px 14px !important;
	font-size: 12px !important;
	line-height: 18px !important;
	font-weight: 400 !important;
	border-radius: 0 14px !important;
	border: 0 !important;
	background: var(--efp-mcc-accent) !important;
	color: #fff !important;
	text-decoration: none !important;
	width: auto !important;
	min-height: 0 !important;
	transition: background-color 0.2s ease;
}

.efp-mcc .efp-mcc__btn:hover,
.efp-mcc .efp-mcc__btn:focus {
	background: var(--efp-mcc-hover) !important;
}

.efp-mcc .efp-mcc__btn.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* WooCommerce appends a "View cart" link after AJAX adds; the mini cart refreshes anyway. */
.efp-mcc .added_to_cart {
	display: none !important;
}

/* Elementor Pro side cart: keep the block clear of the sticky footer buttons. */
.elementor-menu-cart__main .efp-mcc {
	padding-bottom: 12px;
}

/* Inside Elementor Pro's product list (rendered right after the cart items). */
.elementor-menu-cart__products .efp-mcc {
	margin-top: 8px;
	padding-top: 16px;
}
