/* Madhouse Registration Manager - frontend */

/* Force the dedicated registration page to use the full content width. */
body.mrm-register-page .sidebar-container,
body.mrm-register-page aside.sidebar-container,
body.mrm-register-page .wd-sidebar,
body.mrm-register-page .sidebar-widget-area,
body.mrm-register-page .widget-area:not(.footer-widget-area),
body.mrm-register-page .area-sidebar-shop {
	display: none !important;
}

body.mrm-register-page .content-layout-wrapper,
body.mrm-register-page .site-content,
body.mrm-register-page .content-layout-wrapper > .site-content,
body.mrm-register-page .main-page-wrapper .site-content,
body.mrm-register-page .content-area,
body.mrm-register-page .site-content.col-lg-9,
body.mrm-register-page .site-content.col-md-9,
body.mrm-register-page .site-content.col-sm-8 {
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 100% !important;
	float: none !important;
}

body.mrm-register-page .mrm-register-wrap {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 1180px !important;
	margin: 0 auto !important;
	padding: 0 18px;
}

body.mrm-register-page .mrm-register-form {
	width: 100% !important;
	max-width: none !important;
}

body.mrm-register-page .mrm-account-type {
	box-sizing: border-box;
	padding: 22px 24px;
	margin: 0 0 30px;
	background: #f7f5f1;
	border: 1px solid #ece7df;
}

body.mrm-register-page .mrm-account-type label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
}

body.mrm-register-page .mrm-account-type select {
	box-sizing: border-box;
	width: 100% !important;
	min-height: 46px;
}

/*
 * Woodmart/WooCommerce can apply form-row layout rules with greater specificity.
 * The !important declarations below deliberately make the plugin's outer field
 * wrappers the grid items so the form remains two columns on desktop.
 */
body.mrm-register-page .mrm-register-form .mrm-fields {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	column-gap: 32px !important;
	row-gap: 0 !important;
	align-items: start !important;
	width: 100% !important;
	max-width: none !important;
}

body.mrm-register-page .mrm-register-form .mrm-fields[hidden],
body.mrm-register-page .mrm-register-form .mrm-hidden {
	display: none !important;
}

body.mrm-register-page .mrm-register-form .mrm-field {
	box-sizing: border-box;
	min-width: 0 !important;
	width: auto !important;
	max-width: none !important;
	float: none !important;
	clear: none !important;
	grid-column: auto !important;
}

/* Supporting content after the field grid spans the full form width.
 * Email remains a normal grid item so Customer displays Phone | Email. */
body.mrm-register-page .mrm-register-form .mrm-privacy,
body.mrm-register-page .mrm-register-form .mrm-fields > p,
body.mrm-register-page .mrm-register-form .mrm-hp,
body.mrm-register-page .mrm-register-form .mrm-fields > input[type="hidden"] {
	grid-column: 1 / -1 !important;
}

body.mrm-register-page .mrm-register-wrap .woocommerce-form-row,
body.mrm-register-page .mrm-register-wrap .form-row,
body.mrm-register-page .mrm-register-wrap p.form-row-wide {
	box-sizing: border-box;
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	clear: none !important;
	margin: 0 0 18px !important;
}

body.mrm-register-page .mrm-register-wrap input.input-text,
body.mrm-register-page .mrm-register-wrap input[type="text"],
body.mrm-register-page .mrm-register-wrap input[type="email"],
body.mrm-register-page .mrm-register-wrap input[type="tel"],
body.mrm-register-page .mrm-register-wrap select {
	box-sizing: border-box;
	min-height: 44px;
	width: 100% !important;
	max-width: none !important;
}

body.mrm-register-page .mrm-password-note {
	box-sizing: border-box;
	margin: 2px 0 18px;
	padding: 13px 15px;
	background: #f7f5f1;
	border-left: 3px solid #c7a867;
}

body.mrm-register-page .mrm-password-note p {
	margin: 0;
}

/* Approval guidance belongs directly below the account selector. */
body.mrm-register-page .mrm-account-type .mrm-password-note-account {
	margin: 14px 0 0 !important;
}

body.mrm-register-page .mrm-privacy {
	font-size: .92em;
	line-height: 1.6;
	margin: 0 0 14px;
}

body.mrm-register-page .mrm-submit {
	width: 100% !important;
	min-height: 48px;
}

body.mrm-register-page .mrm-existing-account {
	text-align: center;
	margin-top: 22px;
}

body.mrm-register-page .mrm-hp {
	position: absolute !important;
	left: -99999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.mrm-login-register-link {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid #eee;
}

@media (max-width: 767px) {
	body.mrm-register-page .mrm-register-wrap {
		max-width: 100% !important;
		padding-left: 15px;
		padding-right: 15px;
	}

	body.mrm-register-page .mrm-register-form .mrm-fields {
		grid-template-columns: 1fr !important;
		column-gap: 0 !important;
	}

	body.mrm-register-page .mrm-register-form .mrm-field,
	body.mrm-register-page .mrm-register-form .mrm-privacy,
	body.mrm-register-page .mrm-register-form .mrm-fields > p,
	body.mrm-register-page .mrm-register-form .mrm-hp {
		grid-column: 1 !important;
	}

	body.mrm-register-page .mrm-account-type {
		padding: 18px;
	}
}

/* Trade verification upload: full-width, clear and easy to use. */
body.mrm-register-page .mrm-register-form .mrm-field-trade_document {
	grid-column: 1 / -1 !important;
}

body.mrm-register-page .mrm-register-form .mrm-field-trade_document input[type="file"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid var(--brdcolor-gray-300, #d9d9d9);
	background: #fff;
}

body.mrm-register-page .mrm-register-form .mrm-field-help {
	display: block;
	margin-top: 7px;
	font-size: .88em;
	line-height: 1.45;
	color: var(--color-gray-500, #777);
}
