/* Majestic native Product Recommendations v0.6.2 */
.majestic-product-recommendations {
	width: 100%;
	margin: 0;
	color: var(--majestic-color-text, #222);
	font-family: var(--majestic-font-body, inherit);
}

.majestic-product-recommendations__header {
	max-width: 760px;
	margin: 0 auto 34px;
	text-align: center;
}

.majestic-product-recommendations__title {
	margin: 0;
	color: var(--majestic-color-text, #222);
	font-family: var(--majestic-font-heading, inherit);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.12;
}

/*
 * Elementor's global H2 typography may have higher specificity than the
 * component class. Override only the responsive size here so Elementor keeps
 * ownership of the merchant's chosen font family, weight and style.
 */
.majestic-product-recommendations h2.majestic-product-recommendations__title,
.elementor .majestic-product-recommendations h2.majestic-product-recommendations__title {
	font-size: 36px !important;
}

.majestic-product-recommendations__subtitle {
	margin: 9px 0 0;
	color: var(--majestic-color-text, #222);
	font-size: 14px;
	line-height: 1.6;
	opacity: .72;
}

.majestic-product-recommendations .majestic-product-grid {
	align-items: stretch;
}

@media (max-width: 1024px) {
	.majestic-product-recommendations__header { margin-bottom: 28px; }
	.majestic-product-recommendations h2.majestic-product-recommendations__title,
	.elementor .majestic-product-recommendations h2.majestic-product-recommendations__title { font-size: 36px !important; }
}

@media (max-width: 767px) {
	.majestic-product-recommendations__header { margin-bottom: 22px; }
	.majestic-product-recommendations h2.majestic-product-recommendations__title,
	.elementor .majestic-product-recommendations h2.majestic-product-recommendations__title { font-size: 33px !important; }
	.majestic-product-recommendations__subtitle { margin-top: 7px; font-size: 13px; }
}


/* =========================================================
   MOBILE RECOMMENDATIONS CAROUSEL v0.6.4
   Desktop and tablet remain normal Majestic product grids.
   ========================================================= */

.majestic-product-recommendations__mobile-nav {
	display: none;
}

@media (max-width: 767px) {
	.majestic-product-recommendations {
		overflow: hidden;
	}

	.majestic-product-recommendations .majestic-product-grid {
		display: flex;
		grid-template-columns: none;
		gap: 12px;
		width: 100%;
		padding: 0;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-behavior: smooth;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.majestic-product-recommendations .majestic-product-grid::-webkit-scrollbar {
		display: none;
	}

	.majestic-product-recommendations .majestic-product-grid > .majestic-product-card {
		flex: 0 0 calc((100% - 12px) / 2);
		max-width: calc((100% - 12px) / 2);
		min-width: calc((100% - 12px) / 2);
		scroll-snap-align: start;
		scroll-snap-stop: always;
	}

	.majestic-product-recommendations__mobile-nav {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 12px;
		margin-top: 18px;
	}

	.elementor .majestic-product-recommendations__mobile-arrow,
	.majestic-product-recommendations__mobile-arrow {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 999px !important;
		background: var(--majestic-color-text, #222) !important;
		color: #fff !important;
		box-shadow: none !important;
		cursor: pointer;
		transition: opacity .18s ease;
	}

	.elementor .majestic-product-recommendations__mobile-arrow:hover,
	.elementor .majestic-product-recommendations__mobile-arrow:focus,
	.majestic-product-recommendations__mobile-arrow:hover,
	.majestic-product-recommendations__mobile-arrow:focus {
		background: var(--majestic-color-text, #222) !important;
		color: #fff !important;
		opacity: .82;
	}

	.majestic-product-recommendations__mobile-arrow:disabled {
		opacity: .28 !important;
		cursor: default;
	}

	.majestic-product-recommendations__mobile-arrow svg {
		display: block;
		width: 15px;
		height: 15px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.8;
	}
}
