#loginform .aio-login-magic-link-buttons-wrapper,
#login .aio-login-magic-link-buttons-wrapper,
.aio-login-magic-link-buttons-wrapper {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 16px 0;
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

.aio-login-magic-link-panel {
	display: none;
	width: 100%;
	max-width: 100%;
	margin: 0 auto 16px;
	box-sizing: border-box;
}

#login.aio-login-magic-link-view--active .aio-login-magic-link-panel {
	display: block;
}

#login.aio-login-magic-link-view--active #loginform,
#login.aio-login-magic-link-view--active .aio-login-magic-link-buttons-wrapper,
#login.aio-login-magic-link-view--active .aio-login-otp-buttons-wrapper {
	display: none !important;
}

/* Split templates: keep form column visible during login-link view */
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active #loginform {
	display: flex !important;
}

body.login.aio-login__template-06 #login.aio-login-magic-link-view--active #loginform,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active #loginform {
	display: block !important;
}

body.login.aio-login__template-09 #login.aio-login-magic-link-view--active .aio-login-magic-link-buttons-wrapper,
body.login.aio-login__template-09 #login.aio-login-magic-link-view--active .aio-login-otp-buttons-wrapper,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active .aio-login-magic-link-buttons-wrapper,
body.login.aio-login__template-06 #login.aio-login-magic-link-view--active .aio-login-otp-buttons-wrapper,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active .aio-login-magic-link-buttons-wrapper,
body.login.aio-login__template-01 #login.aio-login-magic-link-view--active .aio-login-otp-buttons-wrapper {
	display: none !important;
}

.aio-login-magic-link-sent-message {
	margin: 0 0 16px;
	color: #50575e;
	font-size: 14px;
	line-height: 1.5;
}

body.login .aio-login-magic-link-notice {
	border-left-color: #d63638;
}

/* WooCommerce my account + checkout */
.woocommerce form .aio-login-magic-link-buttons-wrapper {
	margin: 12px 0 16px;
}

body.aio-login-magic-link-view--active .aio-login-magic-link-host--hidden {
	display: none !important;
}

body.aio-login-magic-link-view--active.woocommerce-account .aio-login-magic-link-panel:not([hidden]),
body.aio-login-magic-link-view--active.woocommerce-checkout .aio-login-magic-link-panel:not([hidden]) {
	display: block;
}

.aio-login-woocommerce-magic-link-checkout,
.aio-login-magic-link-checkout-footer-block {
	margin: 16px 0;
	padding-top: 12px;
	border-top: 1px solid #e5e5e5;
}

.woocommerce-checkout .aio-login-social-login-buttons-wrapper .aio-login-magic-link-buttons-wrapper {
	margin: 0 0 12px;
	width: 100%;
}

.woocommerce-checkout .aio-login-social-login-buttons-wrapper .aio-login-magic-link-launcher {
	width: 100%;
}

.aio-login-woocommerce-magic-link-checkout__title {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
}
