/* Update URLS — Email Digest Settings UI Styles */

/* Status grid */
.kc-uu-digest-status-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.kc-uu-digest-status-item {
	display: flex;
	flex-direction: column;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 12px 14px;
}

.kc-uu-digest-status-label {
	font-size: 11px;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	margin-bottom: 4px;
}

.kc-uu-digest-status-value {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

/* Preview section */
.kc-uu-digest-preview-section {
	display: flex;
	gap: 16px;
	margin-top: 4px;
}

.kc-uu-digest-card {
	flex: 1;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 16px 18px;
}

.kc-uu-digest-card strong {
	font-size: 14px;
	color: #111827;
}

/* Test row */
.kc-uu-digest-test-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.kc-uu-digest-test-row input[type="email"] {
	flex: 1;
	min-width: 0;
}

/* Status messages */
#kc-uu-digest-test-status {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 4px;
}

.kc-uu-status-success {
	background-color: #f0fdf4;
	color: #166534;
	border: 1px solid #bbf7d0;
}

.kc-uu-status-error {
	background-color: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* Loading state on button */
.kc-uu-btn-loading {
	opacity: 0.7;
	cursor: not-allowed;
}

/* Conditional section visibility */
.kc-uu-digest-conditional {
	/* Shown/hidden via JS */
}

/* Responsive: collapse status grid and preview cards */
@media (max-width: 782px) {
	.kc-uu-digest-status-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.kc-uu-digest-preview-section {
		flex-direction: column;
	}
}

@media (max-width: 480px) {
	.kc-uu-digest-status-grid {
		grid-template-columns: 1fr;
	}

	.kc-uu-digest-test-row {
		flex-direction: column;
		align-items: stretch;
	}
}
