/* My Account guest forms reuse the Contact page's section, header, card,
 * field and primary-button contracts. These rules only neutralize WooCommerce
 * defaults and style account-specific controls. */
.edite-account-auth-section .contact-form-card .woocommerce-form {
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}

.edite-account-auth-section .contact-form-card .woocommerce-form.is-loading::before,
.edite-account-auth-section .contact-form-card .woocommerce-form.edite-auth-submitting::before {
	content: "";
	position: absolute;
	inset: -12px -16px;
	z-index: 50;
	background-color: rgba(255, 255, 255, 0.75);
	border-radius: 12px;
	cursor: wait;
	pointer-events: all;
}

.edite-account-auth-section .contact-form-card .woocommerce-form.is-loading::after,
.edite-account-auth-section .contact-form-card .woocommerce-form.edite-auth-submitting::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 51;
	width: 32px;
	height: 32px;
	margin: -16px 0 0 -16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 91.3 91.1'%3E%3Ccircle fill='%23454545' cx='45.7' cy='45.7' r='45.7'/%3E%3Ccircle fill='%23FFF' cx='45.7' cy='24.4' r='12.5'/%3E%3C/svg%3E") no-repeat center center;
	background-size: contain;
	animation: edite-account-auth-spin 1s ease-in-out infinite;
	pointer-events: none;
}

@keyframes edite-account-auth-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.edite-account-auth-section .contact-form-card .woocommerce-form.is-loading::after,
	.edite-account-auth-section .contact-form-card .woocommerce-form.edite-auth-submitting::after {
		animation: none !important;
	}
}

.edite-account-auth-section .contact-form-card .form-row {
	margin: 0;
}

.edite-account-auth-section .contact-form-card .woocommerce-password-strength {
	margin-top: 6px;
	font-family: var(--font-family-accent-2);
	font-size: 13px;
}

.edite-account-auth-section .contact-form-card .edite-field-hint {
	display: block;
	font-family: var(--font-family-accent-2, inherit);
	font-size: 13px;
	color: #64748b;
	margin-top: 6px;
	font-style: normal;
	line-height: 1.4;
}

.edite-account-auth-section .contact-form-card .edite-cooldown-hint {
	color: #dc3545;
	font-weight: 500;
}

.edite-account-auth-code-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 12px;
	align-items: stretch;
}

.contact-page-section .contact-form-card .edite-account-auth-code-row .edite-account-auth-send-code {
	min-height: 48px;
	padding-inline: 16px;
	border-radius: 12px;
	font-size: 14px;
	box-shadow: none;
}

.woocommerce-privacy-policy-text, .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 14px;
	color: var(--black-color-accent-2);
	line-height: 1.5;
}

.edite-account-auth-options {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 20px;
	font-family: var(--font-family-accent-2);
	font-size: 15px;
}

.edite-account-auth-options label {
	margin: 0;
}

.edite-account-auth-options a {
	margin: 0;
	color: #0002BB !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	transition: opacity 0.2s ease;
}

.edite-account-auth-options a:hover,
.edite-account-auth-options a:focus-visible {
	color: #0002BB !important;
	text-decoration: underline !important;
	opacity: 0.85;
}

.edite-account-auth-options label.woocommerce-form-login__rememberme {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	user-select: none;
	color: var(--black-color-accent-2);
	font-family: var(--font-family-accent-2);
	font-size: 15px;
	font-weight: 400;
	transition: color 0.2s ease;
}

.edite-account-auth-options label.woocommerce-form-login__rememberme:hover {
	color: var(--blue-color-accent-1);
}

.edite-account-auth-options label.woocommerce-form-login__rememberme input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.edite-account-auth-options label.woocommerce-form-login__rememberme .checkbox-custom {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	border: 1.5px solid #cbd5e1;
	border-radius: 4px;
	background-color: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.edite-account-auth-options label.woocommerce-form-login__rememberme input[type="checkbox"]:checked + .checkbox-custom {
	background-color: var(--blue-color-accent-1);
	border-color: var(--blue-color-accent-1);
}

.edite-account-auth-options label.woocommerce-form-login__rememberme input[type="checkbox"]:checked + .checkbox-custom::after {
	content: "";
	width: 5px;
	height: 9px;
	border: solid #ffffff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-top: -2px;
}

.edite-account-auth-options label.woocommerce-form-login__rememberme input[type="checkbox"]:focus-visible + .checkbox-custom {
	outline: 2px solid var(--blue-color-accent-1);
	outline-offset: 2px;
}

.edite-account-auth-switch {
	max-width: 680px;
	margin: 20px auto 0;
	color: var(--black-color-accent-2);
	font-family: var(--font-family-accent-2);
	font-size: 15px;
	text-align: center;
}

.edite-account-auth-switch a {
	color: #0002BB !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	transition: opacity 0.2s ease;
}

.edite-account-auth-switch a:hover,
.edite-account-auth-switch a:focus-visible {
	color: #0002BB !important;
	text-decoration: underline !important;
	opacity: 0.85;
}

.woocommerce form .show-password-input, 
.woocommerce-page form .show-password-input {
	right: 16px;
}

/* Server-rendered Woo notices remain in the accessibility tree as a no-JS
 * fallback, while the shared frontend adapter presents them via EditeToast. */
.woocommerce [data-edite-toast-consumed="true"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
	white-space: nowrap !important;
}

@media (max-width: 575px) {
	.edite-account-auth-code-row {
		grid-template-columns: 1fr;
	}

	.contact-page-section .contact-form-card .edite-account-auth-code-row .edite-account-auth-send-code {
		width: 100%;
	}
}
