.hvt-rp-inline {
	margin: 18px 0;
	padding: 12px 16px;
	border-left: 4px solid #2271b1;
	background: #f6f7f7;
	font-size: 16px;
	line-height: 1.5;
	clear: both;
}

.hvt-rp-inline-label {
	font-weight: 700;
	margin-right: 4px;
}

.hvt-rp-inline-link {
	font-weight: 600;
	text-decoration: none;
}

.hvt-rp-section {
	margin-top: 32px;
	clear: both;
}

.hvt-rp-title {
	margin: 0 0 18px;
	font-size: inherit;
	line-height: 1.5;
	font-weight: 700;
}

.hvt-rp-grid {
	display: grid;
	grid-template-columns: repeat(var(--hvt-rp-desktop-cols, 3), minmax(0, 1fr));
	gap: 18px;
}

.hvt-rp-card {
	min-width: 0;
}

.hvt-rp-card-link {
	display: block;
	text-decoration: none;
}

.hvt-rp-thumb {
	display: block;
	width: 100%;
	aspect-ratio: 7 / 5;
	background: #f1f1f1;
	overflow: hidden;
	border-radius: 8px;
}

.hvt-rp-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 8px;
}

.hvt-rp-thumb-placeholder {
	background: linear-gradient(135deg, #f4f4f4, #e7e7e7);
}

.hvt-rp-card-title {
	display: block;
	margin-top: 10px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
}

.hvt-rp-card-date,
.hvt-rp-card-excerpt {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.5;
	color: #555;
}

@media (max-width: 768px) {
	.hvt-rp-grid {
		grid-template-columns: repeat(var(--hvt-rp-tablet-cols, 2), minmax(0, 1fr));
	}
}

@media (max-width: 480px) {
	.hvt-rp-grid {
		grid-template-columns: repeat(var(--hvt-rp-mobile-cols, 1), minmax(0, 1fr));
	}
}

/* HVT WooCommerce product recommendations - compact layout */
.hvt-rp-product-section,
.hvt-rp-product-inline,
.hvt-rp-product-final {
	margin: 18px 0;
	padding: 10px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f6f7f7;
	clear: both;
}

.hvt-rp-product-final {
	margin-top: 28px;
}

.hvt-rp-product-block-title,
.hvt-rp-product-section-title {
	margin: 0 0 8px;
	font-size: inherit;
	font-weight: 700;
	line-height: 1.4;
}

.hvt-rp-product-block-title strong,
.hvt-rp-product-section-title strong,
.hvt-rp-title strong {
	font-weight: 700;
}

.hvt-rp-product-single {
	background: #f6f7f7;
}

.hvt-rp-product-single-layout {
	display: grid;
	grid-template-columns: minmax(96px, 24%) minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
}

.hvt-rp-product-single-image,
.hvt-rp-product-image {
	display: block;
	background: #f6f7f7;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
}

.hvt-rp-product-single-image {
	max-width: 150px;
}

.hvt-rp-product-single-image img,
.hvt-rp-product-image img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	object-fit: cover;
}

.hvt-rp-product-single-body,
.hvt-rp-product-card-body {
	min-width: 0;
}

.hvt-rp-product-title {
	display: block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-decoration: none;
}

.hvt-rp-product-single .hvt-rp-product-title {
	font-size: 15px;
}

.hvt-rp-product-price {
	margin-top: 5px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.hvt-rp-product-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin-top: 8px;
}

.hvt-rp-product-actions .button,
.hvt-rp-product-actions a.button {
	margin: 0;
	padding: 6px 10px;
	min-height: 0;
	font-size: 13px;
	line-height: 1.2;
	white-space: nowrap;
}

.hvt-rp-product-view-button {
	text-decoration: none;
}

.hvt-rp-product-carousel {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - (var(--hvt-rp-product-desktop-visible, 4) - 1) * 10px) / var(--hvt-rp-product-desktop-visible, 4));
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1px 1px 8px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
	grid-auto-columns: calc((100% - (var(--hvt-rp-product-desktop-visible, 4) - 0.35) * 10px) / (var(--hvt-rp-product-desktop-visible, 4) + 0.35));
}

.hvt-rp-product-card {
	min-width: 0;
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	scroll-snap-align: start;
}

.hvt-rp-product-card .hvt-rp-product-title {
	margin-top: 7px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hvt-rp-product-card .hvt-rp-product-actions {
	gap: 5px;
}

.hvt-rp-product-card .hvt-rp-product-actions .button,
.hvt-rp-product-card .hvt-rp-product-actions a.button {
	padding: 5px 8px;
	font-size: 12px;
}

@media (max-width: 768px) {
	.hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-tablet-visible, 2) - 1) * 9px) / var(--hvt-rp-product-tablet-visible, 2));
		gap: 9px;
	}

	.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-tablet-visible, 2) - 0.35) * 9px) / (var(--hvt-rp-product-tablet-visible, 2) + 0.35));
	}
}

@media (max-width: 560px) {
	.hvt-rp-product-single-layout {
		grid-template-columns: 88px minmax(0, 1fr);
		gap: 10px;
	}

	.hvt-rp-product-single-image {
		max-width: 88px;
	}
}

@media (max-width: 480px) {
	.hvt-rp-product-section,
	.hvt-rp-product-inline,
	.hvt-rp-product-final {
		padding: 9px;
	}

	.hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-mobile-visible, 1) - 1) * 8px) / var(--hvt-rp-product-mobile-visible, 1));
		gap: 8px;
	}

	.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-mobile-visible, 1) - 0.25) * 8px) / (var(--hvt-rp-product-mobile-visible, 1) + 0.25));
	}
}

.hvt-rp-taxonomy-archive-blocks {
  margin-top: 28px;
  clear: both;
}

/* HVT compact product recommendations + arrow carousel controls */
.hvt-rp-product-section,
.hvt-rp-product-inline,
.hvt-rp-product-final {
	margin: 14px 0;
	padding: 8px 10px;
	border-radius: 8px;
}

.hvt-rp-product-final {
	margin-top: 20px;
}

.hvt-rp-product-block-title,
.hvt-rp-product-section-title {
	margin: 0 0 6px;
	font-size: 14px;
	line-height: 1.3;
}

.hvt-rp-product-single-layout {
	grid-template-columns: 82px minmax(0, 1fr);
	gap: 9px;
	padding: 7px;
	border-radius: 7px;
}

.hvt-rp-product-single-image {
	max-width: 82px;
}

.hvt-rp-product-single-image img {
	aspect-ratio: 1 / 1;
}

.hvt-rp-product-title {
	font-size: 13px;
	line-height: 1.28;
}

.hvt-rp-product-single .hvt-rp-product-title {
	font-size: 13px;
}

.hvt-rp-product-price {
	margin-top: 3px;
	font-size: 12px;
	line-height: 1.25;
}

.hvt-rp-product-actions {
	gap: 4px;
	margin-top: 5px;
}

.hvt-rp-product-actions .button,
.hvt-rp-product-actions a.button,
.hvt-rp-product-card .hvt-rp-product-actions .button,
.hvt-rp-product-card .hvt-rp-product-actions a.button {
	padding: 4px 7px;
	min-height: 0;
	font-size: 11px;
	line-height: 1.15;
	border-radius: 4px;
}

.hvt-rp-product-carousel-wrap {
	position: relative;
}

.hvt-rp-product-carousel {
	gap: 8px;
	grid-auto-columns: calc((100% - (var(--hvt-rp-product-desktop-visible, 4) - 1) * 8px) / var(--hvt-rp-product-desktop-visible, 4));
	overflow-x: auto;
	overflow-y: hidden;
	padding: 1px 34px 2px;
	scrollbar-width: none;
	-ms-overflow-style: none;
	scroll-behavior: smooth;
}

.hvt-rp-product-carousel::-webkit-scrollbar {
	display: none;
}

.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
	grid-auto-columns: calc((100% - (var(--hvt-rp-product-desktop-visible, 4) - 0.35) * 8px) / (var(--hvt-rp-product-desktop-visible, 4) + 0.35));
}

.hvt-rp-product-card {
	padding: 6px;
	border-radius: 8px;
}

.hvt-rp-product-card .hvt-rp-product-image {
	aspect-ratio: 4 / 3;
}

.hvt-rp-product-card .hvt-rp-product-image img {
	height: 100%;
	aspect-ratio: auto;
	object-fit: cover;
}

.hvt-rp-product-card .hvt-rp-product-title {
	margin-top: 5px;
	font-size: 12.5px;
	line-height: 1.25;
	-webkit-line-clamp: 2;
}

.hvt-rp-product-card .hvt-rp-product-price {
	font-size: 11.5px;
}

.hvt-rp-product-card .hvt-rp-product-actions {
	gap: 4px;
	margin-top: 5px;
}

.hvt-rp-carousel-btn {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	cursor: pointer;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
	transform: translateY(-50%);
}

.hvt-rp-carousel-prev {
	left: 3px;
}

.hvt-rp-carousel-next {
	right: 3px;
}

.hvt-rp-carousel-btn:disabled,
.hvt-rp-carousel-btn.is-disabled {
	opacity: 0.35;
	cursor: default;
	box-shadow: none;
}

.hvt-rp-carousel-btn.is-hidden {
	display: none;
}

@media (max-width: 768px) {
	.hvt-rp-product-carousel {
		gap: 7px;
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-tablet-visible, 2) - 1) * 7px) / var(--hvt-rp-product-tablet-visible, 2));
		padding-left: 30px;
		padding-right: 30px;
	}

	.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-tablet-visible, 2) - 0.35) * 7px) / (var(--hvt-rp-product-tablet-visible, 2) + 0.35));
	}

	.hvt-rp-carousel-btn {
		width: 24px;
		height: 24px;
		font-size: 20px;
	}
}

@media (max-width: 480px) {
	.hvt-rp-product-section,
	.hvt-rp-product-inline,
	.hvt-rp-product-final {
		padding: 7px 8px;
	}

	.hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-mobile-visible, 1) - 1) * 7px) / var(--hvt-rp-product-mobile-visible, 1));
	}

	.hvt-rp-carousel-mode-peek .hvt-rp-product-carousel {
		grid-auto-columns: calc((100% - (var(--hvt-rp-product-mobile-visible, 1) - 0.25) * 7px) / (var(--hvt-rp-product-mobile-visible, 1) + 0.25));
	}

	.hvt-rp-product-single-layout {
		grid-template-columns: 72px minmax(0, 1fr);
	}

	.hvt-rp-product-single-image {
		max-width: 72px;
	}
}


.hvt-rp-product-actions .hvt-rp-product-cart-button.loading {
	opacity: .7;
	cursor: progress;
}

.hvt-rp-product-actions .hvt-rp-product-cart-button.added {
	opacity: .95;
}

.hvt-rp-product-actions .hvt-rp-product-cart-button.hvt-rp-cart-error {
	opacity: .9;
}

/* Faster, compact draggable product carousel */
.hvt-rp-product-carousel {
	cursor: grab;
	contain: content;
	will-change: scroll-position;
}

.hvt-rp-product-carousel.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
	user-select: none;
}

.hvt-rp-product-carousel.is-dragging * {
	user-select: none;
}

.hvt-rp-product-card,
.hvt-rp-product-single-layout {
	contain: layout paint;
}

.hvt-rp-product-image img,
.hvt-rp-product-single-image img {
	content-visibility: auto;
}
