/**
 * Checkpoint styles.
 */

.wc-checkpoint {
	box-sizing: border-box;
	margin: 0 0 2em;
	padding: 1.5em;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
	background: #fff;
}

.wc-checkpoint__title {
	margin-top: 0;
	font-size: 1.4em;
}

.wc-checkpoint__timer {
	margin: 0.5em 0 1em;
	font-size: 0.9em;
	opacity: 0.8;
}

.wc-checkpoint__form .form-row {
	margin: 0 0 1em;
}

.wc-checkpoint__form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

.wc-checkpoint__form input[type="email"],
.wc-checkpoint__form input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 0.7em;
	font-size: 1.1em;
}

#wc-checkpoint-code {
	letter-spacing: 0.4em;
	font-size: 1.4em;
	font-weight: 600;
	text-align: center;
}

.wc-checkpoint__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75em;
	margin: 0;
}

.wc-checkpoint__actions .button {
	flex: 0 1 auto;
}

.wc-checkpoint__status {
	min-height: 1.5em;
	margin: 1em 0 0;
	font-weight: 600;
}

.wc-checkpoint__status.is-error {
	color: #b32d2e;
}

.wc-checkpoint__status.is-success {
	color: #2e7d32;
}

.wc-checkpoint__reset {
	margin: 1em 0 0;
	font-size: 0.9em;
}

.wc-checkpoint--email-change {
	margin-top: 2em;
}

/*
 * Pending registration: hide the login/registration UI and keep only the panel.
 * WooCommerce notices stay visible: they carry the result of the no-JS
 * fallback (wrong code, expired code, resend cooldown...).
 */
body.wc-checkpoint-verify #customer_login,
body.wc-checkpoint-verify .u-columns,
body.wc-checkpoint-verify .woocommerce-form-login,
body.wc-checkpoint-verify .woocommerce-form-register,
body.wc-checkpoint-verify .woocommerce-ResetPassword {
	display: none !important;
}

body.wc-checkpoint-verify .wc-checkpoint {
	margin-left: auto;
	margin-right: auto;
}

/* Honeypot. */
.wc-checkpoint-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
