/* Voxel Recently Viewed v1.2.0 */

/* Header: title left, clear link right */
.vxrv-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 15px;
}
.vxrv-header .vxrv-title {
	margin: 0;
}
.vxrv-clear-link {
	white-space: nowrap;
	flex-shrink: 0;
	text-decoration: none;
	cursor: pointer;
}
.vxrv-header--empty .vxrv-clear-link {
	display: none !important;
}

/* Standalone shortcode title */
.vxrv-title { margin-bottom: 15px; }

/* Grid — default columns via class, overridden by Elementor selectors when using widget */
.vxrv-grid {
	display: grid !important;
	gap: 20px;
}
.vxrv-cols-1 { grid-template-columns: 1fr; }
.vxrv-cols-2 { grid-template-columns: repeat(2, 1fr); }
.vxrv-cols-3 { grid-template-columns: repeat(3, 1fr); }
.vxrv-cols-4 { grid-template-columns: repeat(4, 1fr); }
.vxrv-cols-5 { grid-template-columns: repeat(5, 1fr); }

@media (max-width: 1024px) {
	.vxrv-cols-3, .vxrv-cols-4, .vxrv-cols-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 767px) {
	.vxrv-grid[class*="vxrv-cols-"] {
		grid-template-columns: 1fr !important;
	}
}

/* ── Force Elementor card content to fill grid cells ── */
.vxrv-card {
	min-width: 0;
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* Only target Elementor structural wrappers, NOT card content */
.vxrv-card > [data-elementor-type] {
	max-width: none !important;
	width: 100% !important;
}

.vxrv-card .e-con.e-parent,
.vxrv-card .e-con.e-parent > .e-con-inner,
.vxrv-card > .elementor > .elementor-inner,
.vxrv-card > .elementor > .elementor-inner > .elementor-section-wrap,
.vxrv-card .elementor-section > .elementor-container,
.vxrv-card .elementor-column > .elementor-widget-wrap {
	max-width: none !important;
	width: 100% !important;
}

/* States */
.vxrv-loading { opacity: .5; min-height: 120px; }
.vxrv-empty p { text-align: center; padding: 30px 15px; color: #888; font-size: 14px; }
