/* ==========================================================================
   Vendor Registration — Live Email + Shop-URL Availability Check
   Deliberately its own e-swapmeet-core stylesheet, not Dokan's Bootstrap-
   style .text-success/.text-danger utility classes -- those belong to a
   third-party plugin's CSS and could change independently of this code.
   Shares one feedback element style across both watched fields
   (data-esm-vac-for="email" / "shopurl"); each renders as its own line
   below the field's row, distinct from Dokan's own inline "#url-alart-mgs"
   message that sits to the right of the Shop URL label.
   ========================================================================== */

.esm-vac-feedback {
	margin: 0.4em 0 1em;
	padding: 0;
	font-size: 0.875em;
	line-height: 1.4;

	&[hidden] {
		display: none;
	}

	&.esm-vac-feedback--checking {
		color: #555;
	}

	&.esm-vac-feedback--available {
		color: #1e7e34;
	}

	&.esm-vac-feedback--taken,
	&.esm-vac-feedback--error {
		color: #8a1f17;
	}
}

/* Visual-only "blocked" state on the submit button while an email check is
   in flight or has come back taken. Deliberately a class toggle, NOT the
   `disabled` DOM property -- the reCAPTCHA guard on this same form also
   toggles `disabled` independently, and two gates racing to set/clear one
   boolean property is exactly the fought-over-button bug already found in
   Dokan's own shop-URL script (password-strength observer vs. shop-URL
   check). Keeping this gate's visual feedback on a separate class means it
   can never be silently cleared by the other gate's `disabled = false`.
   Not scoped under .esm-vr-form -- Surface B (the native /my-account/
   register tab) renders the same woocommerce-form-register__submit button
   with a different outer wrapper, and JS only ever adds esm-vac-blocking to
   a real submit button it found via the field's own form ancestor, so the
   two-class combination is already specific enough on its own. */
.woocommerce-form-register__submit.esm-vac-blocking {
	opacity: 0.55;
	cursor: not-allowed;
}
