/* FieldEngine Repeater Widget — Frontend Styles */

/* ── Wrapper ─────────────────────────────────────── */
.fe-rw-wrap {
	width: 100%;
	box-sizing: border-box;
}

/* ── Grid ────────────────────────────────────────── */
.fe-rw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

/* ── Flex ────────────────────────────────────────── */
.fe-rw-flex {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 24px;
}

/* ── List ────────────────────────────────────────── */
.fe-rw-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ── Card ────────────────────────────────────────── */
.fe-rw-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	/* direction controlled via Elementor selector on .fe-rw-card */
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 20px;
	box-sizing: border-box;
	gap: 12px;
}

.fe-rw-item-wrap,
.fe-rw-content-column,
.fe-rw-group {
	min-width: 0;
	box-sizing: border-box;
}

.fe-rw-content-columns {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: inherit;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Hover effects */
.fe-rw-hover-lift .fe-rw-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}
.fe-rw-hover-glow .fe-rw-card:hover {
	box-shadow: 0 0 0 3px #0ea5e9, 0 8px 24px rgba(14, 165, 233, 0.18);
}
.fe-rw-hover-zoom .fe-rw-card:hover .fe-rw-image img {
	transform: scale(1.07);
}

/* ── Image ───────────────────────────────────────── */
.fe-rw-image {
	width: 100%;
	flex-shrink: 0;
	overflow: hidden;
}
.fe-rw-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

/* Horizontal card: image gets fixed width, not full width */
.fe-rw-card[style*="flex-direction: row"] .fe-rw-image,
.fe-rw-card[style*="flex-direction:row"] .fe-rw-image {
	width: auto;
	min-width: 120px;
}

/* ── Badge ───────────────────────────────────────── */
.fe-rw-badge {
	display: inline-block;
	background: #0ea5e9;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: 20px;
	margin-bottom: 8px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	line-height: 1.4;
}

/* ── Title ───────────────────────────────────────── */
.fe-rw-title {
	width: 100%;
	font-size: 16px;
	font-weight: 700;
	color: #1a2030;
	margin: 0 0 8px;
	line-height: 1.3;
}

/* ── Text ────────────────────────────────────────── */
.fe-rw-text {
	width: 100%;
	font-size: 14px;
	color: #6b7280;
	margin: 0 0 8px;
	line-height: 1.6;
}

/* ── Counter ─────────────────────────────────────── */
.fe-rw-counter {
	width: 100%;
	font-size: 32px;
	font-weight: 800;
	color: #1a2030;
	margin: 0 0 8px;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	letter-spacing: -1px;
}

/* ── Link button ─────────────────────────────────── */
.fe-rw-link-btn {
	display: inline-block;
	margin-top: 4px;
	padding: 7px 18px;
	background: #0ea5e9;
	color: #fff;
	border-radius: 6px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: background 0.2s ease;
}
.fe-rw-link-btn:hover {
	background: #0284c7;
}

/* ── Stat ────────────────────────────────────────── */
.fe-rw-stat {
	display: flex;
	align-items: center;
	gap: 8px;
}
.fe-rw-stat-value {
	font-size: 24px;
	font-weight: 800;
	color: inherit;
}

/* ── Field label ─────────────────────────────────── */
.fe-rw-field-label {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

/* ── Editor placeholder ──────────────────────────── */
.fe-rw-placeholder {
	padding: 40px 24px;
	text-align: center;
	border: 2px dashed #cbd5e1;
	border-radius: 10px;
	color: #94a3b8;
	font-size: 14px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
	.fe-rw-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.fe-rw-grid { grid-template-columns: 1fr; }
	.fe-rw-flex { flex-direction: column; }
}
