/*
 * Structural defaults for the Synerise Recommendations widget.
 *
 * Deliberately minimal: everything visual here is meant to be overridden from Elementor,
 * whose generated rules are scoped to .elementor-element-{id} and therefore always win
 * over these. What stays are the layout primitives the markup needs to hold together.
 */

.sb-reco-wrap {
	position: relative;
}

.sb-reco-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	column-gap: 24px;
	row-gap: 32px;
}

.sb-reco-nav {
	display: none;
}

.sb-reco-carousel-mobile .sb-reco-nav,
.sb-reco-carousel-tablet .sb-reco-nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background-color: #efb03e;
	color: #1a1a1a;
	cursor: pointer;
	transform: translateY(-50%);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.sb-reco-nav svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.sb-reco-nav i,
.sb-reco-nav i:before {
	font-size: 20px;
	line-height: 1;
}

.sb-reco-prev {
	left: 0;
}

.sb-reco-next {
	right: 0;
}


.sb-reco-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
}

.sb-reco-card-link {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.sb-reco-media-link,
.sb-reco-title a,
.sb-reco-button {
	position: relative;
	z-index: 2;
}

.sb-reco-media {
	display: block;
	margin-bottom: 16px;
}

.sb-reco-media-link {
	display: block;
	height: 100%;
}

.sb-reco-image {
	display: block;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
}

.sb-reco-head {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.sb-reco-title {
	display: -webkit-box;
	-webkit-line-clamp: none;
	line-clamp: none;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	color: #e9a93c;
	min-width: 0;
}

.sb-reco-title a {
	color: inherit;
	text-decoration: none;
}

.sb-reco-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	white-space: nowrap;
}

.sb-reco-price-prefix {
	font-size: 0.7em;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.75;
}

.sb-reco-price-amount {
	font-weight: 700;
}

.sb-reco-divider {
	width: 100%;
	border-top: 1px solid #e0e0e0;
	margin-bottom: 12px;
}

.sb-reco-description {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
	margin-bottom: 16px;
	line-height: 1.5;
}

:where(.sb-reco-button) {
	margin-top: auto;
}

.sb-reco-button {
	display: block;
	padding: 16px;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1a1a1a;
	background-color: #efb03e;
}

.sb-reco-button:hover,
.sb-reco-button:focus {
	color: #1a1a1a;
}

.sb-reco-empty {
	padding: 16px 0;
}

.sb-reco-notice {
	padding: 12px 16px;
	border: 1px dashed #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #50575e;
	font-size: 13px;
	line-height: 1.5;
}

@media (max-width: 1024px) {
	.sb-reco-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sb-reco-carousel-tablet .sb-reco-grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.sb-reco-carousel-tablet .sb-reco-grid::-webkit-scrollbar {
		display: none;
	}

	.sb-reco-carousel-tablet .sb-reco-card {
		flex-grow: 0;
		flex-shrink: 0;
	}

	:where(.sb-reco-carousel-tablet) .sb-reco-card {
		flex-basis: 100%;
		scroll-snap-align: center;
	}

	.sb-reco-carousel-tablet .sb-reco-nav {
		display: flex;
	}
}

@media (max-width: 767px) {
	.sb-reco-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.sb-reco-carousel-mobile .sb-reco-grid {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.sb-reco-carousel-mobile .sb-reco-grid::-webkit-scrollbar {
		display: none;
	}

	.sb-reco-carousel-mobile .sb-reco-card {
		flex-grow: 0;
		flex-shrink: 0;
	}

	:where(.sb-reco-carousel-mobile) .sb-reco-card {
		flex-basis: 100%;
		scroll-snap-align: center;
	}

	.sb-reco-carousel-mobile .sb-reco-nav {
		display: flex;
	}
}