/**
 * Split WooCommerce login/register popups.
 *
 * Mirrors F:/template/vertical-menu auth panel class names and spacing while
 * keeping WooCommerce form handlers, nonces, and hooks intact.
 */

.mfp-bg {
	background: rgba(5, 20, 45, 0.45);
	opacity: 1;
}

.mfp-wrap .mfp-content #camap-login-popup.login-panel,
.mfp-wrap .mfp-content #camap-register-popup.login-panel {
	box-sizing: border-box;
	width: min(520px, calc(100vw - 32px)) !important;
	max-width: calc(100vw - 32px) !important;
	margin: 0 auto;
	padding: 0 !important;
	overflow: hidden;
	border: 0;
	border-radius: 12px !important;
	background: #fff !important;
	box-shadow: 0 24px 70px rgba(0, 32, 80, 0.22) !important;
	color: #101828;
}

.mfp-wrap .mfp-content .global-popup-content {
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 20px 24px 24px;
	background: #fff;
}

.mfp-wrap .mfp-content .popup-btn-direction {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 32px;
	gap: 16px;
	margin-bottom: 12px;
}

.mfp-wrap .mfp-content .auth-popup-title {
	margin: 0;
	color: #0e1726;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.mfp-wrap .mfp-content .login-close {
	position: static;
	display: grid;
	width: 36px;
	height: 36px;
	min-height: 36px;
	place-items: center;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgb(102, 112, 133) !important;
	fill: rgb(102, 112, 133) !important;
	stroke: rgb(102, 112, 133) !important;
	mix-blend-mode: normal !important;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	opacity: 1 !important;
}

.mfp-wrap .mfp-content .camap-auth-close__icon {
	display: grid;
	width: 36px;
	height: 36px;
	place-items: center;
	border-radius: 999px;
	background: #eef2f6 !important;
	background-color: #eef2f6 !important;
	background-image: none !important;
	box-shadow: none !important;
	color: rgb(102, 112, 133) !important;
	fill: rgb(102, 112, 133) !important;
	stroke: rgb(102, 112, 133) !important;
	mix-blend-mode: normal !important;
	font: inherit;
	line-height: 1;
}

.mfp-wrap .mfp-content .login-close *,
.mfp-wrap .mfp-content .camap-auth-close__icon * {
	color: inherit !important;
	fill: currentColor !important;
	stroke: currentColor !important;
}

.mfp-wrap .mfp-content .login-close:hover,
.mfp-wrap .mfp-content .login-close:focus {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	color: #344054 !important;
	fill: #344054 !important;
	stroke: #344054 !important;
}

.mfp-wrap .mfp-content .camap-auth-close:hover .camap-auth-close__icon,
.mfp-wrap .mfp-content .camap-auth-close:focus .camap-auth-close__icon,
.mfp-wrap .mfp-content .camap-auth-close:focus-visible .camap-auth-close__icon {
	background: #e2e8f0 !important;
	background-color: #e2e8f0 !important;
	color: #344054 !important;
}

.mfp-wrap:has(#camap-login-popup.login-panel) .mfp-close:not(.login-close),
.mfp-wrap:has(#camap-register-popup.login-panel) .mfp-close:not(.login-close),
.mfp-wrap .mfp-content #camap-login-popup.login-panel > .mfp-close:not(.login-close),
.mfp-wrap .mfp-content #camap-register-popup.login-panel > .mfp-close:not(.login-close) {
	display: none !important;
}

.mfp-wrap .mfp-content .box-title {
	display: grid;
	gap: 8px;
	margin-bottom: 18px;
}

.mfp-wrap .mfp-content .box-title p {
	margin: 0;
	color: #475467;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.45;
}

.mfp-wrap .mfp-content .box-title a,
.mfp-wrap .mfp-content .box-title button {
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--sicomp-primary, #d90429);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.mfp-wrap .mfp-content .box-title a:hover,
.mfp-wrap .mfp-content .box-title a:focus,
.mfp-wrap .mfp-content .box-title button:hover,
.mfp-wrap .mfp-content .box-title button:focus {
	color: var(--sicomp-primary-hover, #b8001f);
	text-decoration: underline;
}

.mfp-wrap .mfp-content .login-form {
	display: grid;
	gap: 16px;
	margin: 0;
}

.mfp-wrap .mfp-content .input-holder {
	display: grid;
	gap: 12px;
}

.mfp-wrap .mfp-content .input-box {
	display: grid;
	gap: 7px;
	margin: 0;
	color: #344054;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
}

.mfp-wrap .mfp-content .input-box span {
	display: block;
}

.mfp-wrap .mfp-content .input-box input {
	width: 100%;
	height: 46px;
	min-height: 46px;
	min-width: 0;
	margin: 0;
	padding: 0 14px;
	border: 1px solid #d0d9e8;
	border-radius: 8px;
	background: #fff;
	box-shadow: none;
	color: #101828;
	font-size: 15px;
	line-height: 46px;
	outline: 0;
}

.mfp-wrap .mfp-content .input-box input::placeholder {
	color: #98a2b3;
}

.mfp-wrap .mfp-content .input-box input:focus {
	border-color: var(--sicomp-primary, #d90429);
	box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.14);
}

.mfp-wrap .mfp-content .register-passwords {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.mfp-wrap .mfp-content .login-submit-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 16px;
	gap: 12px;
}

.mfp-wrap .mfp-content .remember-me-native {
	display: inline-flex;
	align-items: center;
	grid-column: 1;
	grid-row: 1;
	gap: 8px;
	margin: -2px 0 0;
	color: #475467;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.mfp-wrap .mfp-content .remember-me-native input {
	width: 16px;
	height: 16px;
	margin: 0;
}

.mfp-wrap .mfp-content .btn-forgot-password {
	grid-column: 2;
	grid-row: 1;
	justify-self: end;
	color: var(--sicomp-primary, #d90429);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
	white-space: nowrap;
}

.mfp-wrap .mfp-content .btn-forgot-password:hover,
.mfp-wrap .mfp-content .btn-forgot-password:focus {
	color: var(--sicomp-primary-hover, #b8001f);
	text-decoration: underline;
}

.mfp-wrap .mfp-content .popup-btn,
.mfp-wrap .mfp-content .popup-btn.button {
	display: grid;
	grid-column: 1 / -1;
	width: 100%;
	min-height: 44px;
	place-items: center;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 8px;
	background: var(--sicomp-primary, #d90429) !important;
	box-shadow: none;
	color: #fff !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.2;
	text-transform: none;
	cursor: pointer;
}

.mfp-wrap .mfp-content .popup-btn:hover,
.mfp-wrap .mfp-content .popup-btn:focus {
	background: var(--sicomp-primary-hover, #b8001f) !important;
	color: #fff !important;
}

.mfp-wrap .mfp-content .login-form.is-submitting {
	pointer-events: none;
}

.mfp-wrap .mfp-content .login-form.is-submitting .popup-btn {
	opacity: 0.82;
	cursor: progress;
}

.mfp-wrap .mfp-content .social-login {
	display: grid;
	justify-items: center;
	gap: 14px;
	margin-top: 24px;
	text-align: center;
}

.mfp-wrap .mfp-content .social-login p {
	margin: 0;
	color: #475467;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.mfp-wrap .mfp-content .popup-icons-group {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
}

.mfp-wrap .mfp-content .popup-icons-group button {
	display: grid;
	width: 40px;
	height: 40px;
	place-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.mfp-wrap .mfp-content .popup-icons-group button.is-placeholder {
	cursor: default;
}

.mfp-wrap .mfp-content .popup-icons-group svg {
	width: 36px;
	height: 36px;
}

.mfp-wrap .mfp-content .popup-icons-group svg {
	fill: #395185;
}

.mfp-wrap .mfp-content .auth-note,
.mfp-wrap .mfp-content .woocommerce-privacy-policy-text p {
	margin: 0;
	color: #475467;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.mfp-wrap .mfp-content .woocommerce-notices-wrapper,
.mfp-wrap .mfp-content .woocommerce-error,
.mfp-wrap .mfp-content .woocommerce-message,
.mfp-wrap .mfp-content .woocommerce-info {
	margin: 0 0 14px;
}

.mfp-wrap .mfp-content .woocommerce-error,
.mfp-wrap .mfp-content .woocommerce-message,
.mfp-wrap .mfp-content .woocommerce-info {
	display: block;
	padding: 11px 12px 11px 14px;
	border: 1px solid #d0d9e8;
	border-left-width: 4px;
	border-radius: 8px;
	background: #f8fafc;
	box-shadow: none;
	color: #334155;
	font-size: 14px;
	line-height: 1.45;
	list-style: none;
}

.mfp-wrap .mfp-content .woocommerce-error {
	border-color: #fecaca;
	border-left-color: #dc2626;
	background: #fef2f2;
	color: #7f1d1d;
}

.mfp-wrap .mfp-content .woocommerce-message {
	border-color: #bbf7d0;
	border-left-color: #16a34a;
	background: #f0fdf4;
	color: #14532d;
}

.mfp-wrap .mfp-content .woocommerce-info {
	border-color: #bfdbfe;
	border-left-color: #2563eb;
	background: #eff6ff;
	color: #1e3a8a;
}

.mfp-wrap .mfp-content .woocommerce-error::before,
.mfp-wrap .mfp-content .woocommerce-message::before,
.mfp-wrap .mfp-content .woocommerce-info::before {
	display: none !important;
}

.mfp-wrap .mfp-content .woocommerce-error li,
.mfp-wrap .mfp-content .woocommerce-message li,
.mfp-wrap .mfp-content .woocommerce-info li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mfp-wrap .mfp-content .woocommerce-error a,
.mfp-wrap .mfp-content .woocommerce-message a,
.mfp-wrap .mfp-content .woocommerce-info a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
}

@media (max-width: 600px) {
	.mfp-wrap .mfp-content #camap-login-popup.login-panel,
	.mfp-wrap .mfp-content #camap-register-popup.login-panel {
		width: calc(100vw - 48px) !important;
		max-width: calc(100vw - 48px) !important;
	}

	.mfp-wrap .mfp-content .global-popup-content {
		padding: 18px 16px 20px;
	}

	.mfp-wrap .mfp-content .auth-popup-title {
		font-size: 21px;
	}

	.mfp-wrap .mfp-content .register-passwords {
		grid-template-columns: 1fr;
	}

	.mfp-wrap .mfp-content .login-submit-row {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 10px;
	}

	.mfp-wrap .mfp-content .remember-me-native,
	.mfp-wrap .mfp-content .btn-forgot-password {
		font-size: 13px;
		line-height: 18px;
	}
}
