/*
 * Wawp Frontend Overrides
 * Combined from class-wawp-custom-pages-settings.php and woocommerce-myaccount.php
 */

/* From class-wawp-custom-pages-settings.php - GLOBAL: Robustly hide standard WooCommerce login fields (Checkout & My Account) */
.woocommerce-form-login .form-row.form-row-first,
.woocommerce-form-login .form-row.form-row-last,
.woocommerce-form-login .woocommerce-form-row--wide,
.woocommerce-form-login .woocommerce-LostPassword,

/* Target specific elements by class globally */
.woocommerce-form-login__submit,
.woocommerce-form-login__rememberme,
.login-remember,

/* Target specific elements by name/type globally inside form-login - EXCLUDING WAWP FIELDS */
.woocommerce-form-login button[name="login"]:not(.wawp-btn),
.woocommerce-form-login input[name="login"]:not(#wawp_login_email),
.woocommerce-form-login input[name="password"]:not(#wawp_password_password),
.woocommerce-form-login input[type="submit"]:not(.wawp-btn),
.woocommerce-form-login button[type="submit"]:not(.wawp-btn),

/* Specific label targeting */
label[for="rememberme"],
input[name="rememberme"] {
	display: none !important;
}

/* Ensure Lost Password link is visible */
.woocommerce-form-login .woocommerce-LostPassword {
	display: block !important;
	margin-top: 15px;
}

.woocommerce-FormRow.woocommerce-FormRow--wide.form-row.form-row-wide.form-row-username {
	display: none !important;
}

.woocommerce-FormRow.woocommerce-FormRow--wide.form-row.form-row-wide.form-row-password {
	display: none !important;
}

/* Hide the "Login" Title on My Account */
#customer_login>h2,
#customer_login .u-column1 h2,
#customer_login .col-1 h2 {
	display: none !important;
}

/* Hide the description text "If you have shopped with us before..." only on My Account page */
.woocommerce-account .woocommerce-form-login>p:not(.form-row):not(.wawp-switch-form):not(.woocommerce-LostPassword) {
	display: none !important;
}

/* MY ACCOUNT SPECIFIC: Hide the Registration Column */
#customer_login .u-column2,
#customer_login .col-2,
#customer_login .woocommerce-form-register,
#customer_login .u-column2 h2,
#customer_login .col-2 h2 {
	display: none !important;
}

/* MY ACCOUNT SPECIFIC: Login Column Full Width */
#customer_login .u-column1,
#customer_login .col-1 {
	width: 100% !important;
	float: none !important;
	max-width: 500px;
	margin: 0 auto;
	border: none !important;
}

/* From integrations/woocommerce-myaccount.php - Style the WooCommerce login form or other elements */
.create-account-question {
	display: none !important;
}

.login-form-footer {
	display: none !important;
}

.button.woocommerce-button.woocommerce-form-login__submit {
	display: none !important;
}

.woocommerce-form-row.woocommerce-form-row--wide.form-row.form-row-wide {
	display: none !important;
}

.woocommerce-LostPassword.lost_password {
	display: none !important;
}