/**
 * Opti-Behavior A/B Test Anti-Flicker CSS
 *
 * Prevents visual flickering when variant changes are applied server-side.
 * The `opti-ab-loading` class is added to <html> in wp_head and removed
 * by the tracker JS once initialization is complete (or after a 500ms timeout).
 *
 * @package opti-behavior
 * @since   1.3.0
 */

/* Hide page content while A/B variant is being applied. */
.opti-ab-loading {
	opacity: 0 !important;
}

/* Smooth reveal transition once variant is ready. */
html:not(.opti-ab-loading) {
	transition: opacity 0.05s ease-in;
}
