/* Elefenti Addons — ACF Repeater Loop — Frontend Styles
   ========================================= */

/* Container */
.acf-rl-container {
	width: 100%;
	box-sizing: border-box;
}

/* Grid layout */
.acf-rl-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr); /* default; overridden by Elementor responsive controls */
	gap: 24px;
}

/* Row (list) layout */
.acf-rl-row {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* Equal height items in grid */
.acf-rl-equal-height .acf-rl-item {
	display: flex;
	flex-direction: column;
}

.acf-rl-equal-height .acf-rl-item > * {
	flex: 1;
}

/* Item */
.acf-rl-item {
	box-sizing: border-box;
	position: relative;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Empty state */
.acf-rl-empty {
	padding: 2em;
	text-align: center;
	color: #888;
	font-size: 0.95em;
}

/* Suppress the inline JSON script tag */
.acf-rl-item script.acf-rl-row-data {
	display: none !important;
}

/* ---- Responsive fallbacks ---- */
@media (max-width: 1024px) {
	.acf-rl-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.acf-rl-grid {
		grid-template-columns: 1fr;
	}
}

/* ---- ACF Repeater Field widget ---- */

.elefenti-field-text {
	margin: 0;
}

.elefenti-field-image img {
	display: block;
	max-width: 100%;
	height: auto;
}

.elefenti-field-link a {
	display: inline-block;
	text-decoration: none;
}

.elefenti-field-link a:hover {
	text-decoration: underline;
}

.elefenti-field-color-swatch {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	border: 1px solid rgba(0,0,0,0.12);
	vertical-align: middle;
}

.elefenti-field-bool--true  { color: inherit; }
.elefenti-field-bool--false { color: inherit; }

/* Editor notices shown inside the field widget */
.elefenti-field-notice {
	display: inline-block;
	padding: 8px 12px;
	border: 1px dashed #b0b0b0;
	border-radius: 4px;
	background: #fafafa;
	color: #666;
	font-size: 12px;
	line-height: 1.5;
}

.elefenti-field-notice--info {
	border-color: #2271b1;
	background: #f0f6fc;
	color: #1d4d7a;
}
