/* ==========================================================================
   WEST · login lightbox — sense.west-hn.com
   Design tokens: --wes-navy #10233B  --wes-blue #2F7CF6  --wes-line #E3E9F2
                  --wes-text-2 #5A6675  --wes-mute #8B98AB
   Scope: only inside #login-form-popup (plus the lightbox close button of the
   same popup). Everything else on the site is untouched.

   NOTE (2026-12-04): Flatsome's grid (.row{display:flex}) is not applied on
   this site — .row and .col2-set compute to display:block and the popup
   collapsed to 0 height. The rules below therefore lay the two panes out
   themselves and never rely on the theme grid.

   Rollback: delete this file and the wes_login_modal_enqueue() block in
   flatsome-child/functions.php — the popup returns to the Flatsome default.
   ========================================================================== */

/* ---------- shell ------------------------------------------------------- */
#login-form-popup {
	position: relative;
	background: transparent;
	padding: 0;
	box-shadow: none;
	max-width: none;
	text-align: left;
	color: #10233B;
	font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#login-form-popup .woocommerce { margin: 0; }

#login-form-popup .account-container {
	position: relative;
	width: 940px;
	max-width: calc(100vw - 48px);
	margin: 0 auto;
	padding: 0;
	background: #fff;
	border: 1px solid #C8D8EE;
	box-shadow: 0 24px 60px -18px rgba(16, 35, 59, .28);
	border-radius: 12px;
	overflow: hidden;
}

#login-form-popup .col2-set {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	margin: 0 !important;
	width: 100%;
	border: 0;
	background: none;
}

/* ---------- left pane : brand + recommendations ------------------------- */
#login-form-popup .col2-set > .col-1.wes-lm-col {
	flex: 0 0 360px;
	width: 360px;
	max-width: 360px;
	margin: 0;
	padding: 0 !important;
	position: relative;
	display: flex;
	flex-direction: column;
}

/* the theme column is a centred flex column (align-items:center), which would
   shrink the panel to its content width — force it to fill the 360px track */
#login-form-popup .col2-set > .col-1.wes-lm-col {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
}

#login-form-popup .wes-lm-panel {
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
}

#login-form-popup .wes-lm-bg {
	position: absolute;
	inset: 0;
	background: #10233B !important;
}

/* faint 44px grid, same texture family as the rest of the site */
#login-form-popup .wes-lm-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	pointer-events: none;
}

#login-form-popup .wes-lm-panel {
	position: relative;
	z-index: 1;
	padding: 34px 32px 30px !important;
	display: flex !important;
	flex-direction: column;
	align-items: stretch;
	text-align: left !important;
	color: #fff;
	min-height: 100%;
}

#login-form-popup .wes-lm-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

#login-form-popup .wes-lm-mark {
	width: 26px;
	height: 26px;
	border: 1px solid rgba(255, 255, 255, .45);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .04em;
	color: #fff;
}

#login-form-popup .wes-lm-word {
	font-size: 11.5px;
	line-height: 1;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .86);
}

#login-form-popup .wes-lm-title {
	margin: 24px 0 0 !important;
	padding: 0;
	font-size: 27px !important;
	line-height: 1.15;
	font-weight: 400 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
	color: #fff !important;
}

#login-form-popup .wes-lm-lede {
	margin: 10px 0 0 !important;
	padding: 0;
	font-size: 13px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .72);
	max-width: 30ch;
}

/* recommendation groups */
#login-form-popup .wes-lm-groups { margin-top: 22px; }

#login-form-popup .wes-lm-group + .wes-lm-group { margin-top: 18px; }

#login-form-popup .wes-lm-label {
	font-size: 10px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .58);
}

#login-form-popup .wes-lm-group ul {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	border-top: 1px solid rgba(255, 255, 255, .2);
}

#login-form-popup .wes-lm-group li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	list-style: none;
}

#login-form-popup .wes-lm-group li a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 9px 0;
	font-size: 12.5px;
	line-height: 1.35;
	color: rgba(255, 255, 255, .92);
	text-decoration: none;
	transition: color .15s;
}

/* drawn arrows: the text glyph renders as a thin dash in the fallback font */
#login-form-popup .wes-lm-group li a i {
	position: relative;
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	font-style: normal;
	color: rgba(255, 255, 255, .62);
	transition: transform .16s, color .16s;
}

#login-form-popup .wes-lm-group li a i::before {
	content: "";
	position: absolute;
	left: 0;
	right: 1px;
	top: 6px;
	height: 1px;
	background: currentColor;
}

#login-form-popup .wes-lm-group li a i::after {
	content: "";
	position: absolute;
	right: 0;
	top: 3px;
	width: 6px;
	height: 6px;
	border-top: 1px solid currentColor;
	border-right: 1px solid currentColor;
	transform: rotate(45deg);
}

#login-form-popup .wes-lm-group li a:hover { color: #fff; }

#login-form-popup .wes-lm-group li a:hover i {
	color: #fff;
	transform: translateX(3px);
}

/* register CTA */
#login-form-popup .wes-lm-cta {
	margin-top: auto;
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 46px;
	padding: 0 20px;
	border: 1px solid rgba(255, 255, 255, .55);
	color: #fff !important;
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: .1em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .16s, border-color .16s;
}

#login-form-popup .wes-lm-cta:hover {
	background: rgba(255, 255, 255, .14);
	border-color: #fff;
}

/* keep a gap above the CTA when the panel is short */
#login-form-popup .wes-lm-groups + .wes-lm-cta { margin-top: 26px; }

/* ---------- right pane : form ------------------------------------------- */
#login-form-popup .col2-set > .col-2.wes-lm-formcol {
	flex: 1 1 auto;
	min-width: 0;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0 !important;
	background: #fff;
}

#login-form-popup .account-login-inner.inner-padding {
	padding: 40px 44px 28px !important;
	display: flex !important;
	flex-direction: column;
	height: 100%;
	box-sizing: border-box;
}

#login-form-popup .wes-lm-eyebrow {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 10.5px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: #8B98AB;
}

#login-form-popup .wes-lm-eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #E3E9F2;
}

#login-form-popup .wes-lm-formtitle {
	margin: 14px 0 6px !important;
	padding: 0;
	font-size: 26px !important;
	line-height: 1.18;
	font-weight: 400 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
	color: #10233B !important;
}

#login-form-popup .wes-lm-formsub {
	margin: 0 0 24px !important;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: #5A6675;
}

/* login error copied from the page into the card */
#login-form-popup .wes-lm-alerts:empty { display: none; }

#login-form-popup .wes-lm-alerts { margin: 0 0 18px; }

#login-form-popup .wes-lm-alert {
	list-style: none;
	margin: 0;
	padding: 11px 14px;
	background: #FDF3F3;
	border-left: 3px solid #C0392B;
	border-radius: 9px;
	font-size: 13px;
	line-height: 1.45;
	color: #8C2F24;
}

#login-form-popup .wes-lm-alert li {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 13px;
	color: #8C2F24;
}

/* fields */
#login-form-popup .woocommerce-form-row,
#login-form-popup .form-row {
	margin: 0 0 16px !important;
	padding: 0 !important;
}

#login-form-popup .woocommerce-form-row label {
	display: block;
	margin: 0 0 8px;
	font-size: 10.5px;
	line-height: 1.2;
	font-weight: 500;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #5A6675;
}

#login-form-popup .woocommerce-form-row label .required {
	color: #2F7CF6 !important;
	text-decoration: none;
	font-weight: 500;
}

#login-form-popup .woocommerce-Input,
#login-form-popup input.input-text {
	width: 100%;
	height: 48px;
	min-height: 48px;
	padding: 0 14px !important;
	margin: 0 !important;
	font-size: 14.5px;
	line-height: 46px;
	color: #10233B;
	background: #fff;
	border: 1px solid #C8D8EE !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

#login-form-popup .woocommerce-Input:focus,
#login-form-popup input.input-text:focus {
	border-color: #2F7CF6 !important;
	box-shadow: 0 0 0 3px #EAF2FE !important;
}

/* remember me + lost password */
#login-form-popup .wes-lm-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 2px 0 22px;
}

#login-form-popup .wes-lm-meta .woocommerce-form__label {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #5A6675;
	cursor: pointer;
}

#login-form-popup .wes-lm-meta input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin: 0;
	background: #fff;
	border: 1px solid #C8D8EE;
	border-radius: 9px;
	position: relative;
	cursor: pointer;
	box-shadow: none;
}

#login-form-popup .wes-lm-meta input[type="checkbox"]:checked {
	background: #2F7CF6;
	border-color: #2F7CF6;
}

#login-form-popup .wes-lm-meta input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4.5px;
	top: 1.5px;
	width: 5px;
	height: 9px;
	border: 1.5px solid #fff;
	border-top: 0;
	border-left: 0;
	transform: rotate(42deg);
}

#login-form-popup .wes-lm-meta input[type="checkbox"]:focus-visible {
	outline: 2px solid #2F7CF6;
	outline-offset: 2px;
}

#login-form-popup .wes-lm-lost {
	font-size: 13px;
	color: #2F7CF6;
	text-decoration: none;
	white-space: nowrap;
}

#login-form-popup .wes-lm-lost:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* submit */
#login-form-popup .wes-lm-actions { margin: 0 !important; }

#login-form-popup .woocommerce-form-login__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 50px;
	min-height: 50px;
	padding: 0 18px !important;
	margin: 0 !important;
	background: #10233B !important;
	border: 1px solid #2F7CF6 !important;
	border-radius: 9px !important;
	box-shadow: none !important;
	color: #fff !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .1em;
	text-transform: uppercase;
	transition: background .16s, border-color .16s;
}

#login-form-popup .woocommerce-form-login__submit:hover {
	background: #1E6AE0 !important;
	border-color: #1E6AE0 !important;
}

#login-form-popup .wes-lm-arrow {
	position: relative;
	width: 16px;
	height: 16px;
	transition: transform .16s;
}

#login-form-popup .wes-lm-arrow::before {
	content: "";
	position: absolute;
	left: 0;
	right: 1px;
	top: 7px;
	height: 1px;
	background: currentColor;
}

#login-form-popup .wes-lm-arrow::after {
	content: "";
	position: absolute;
	right: 0;
	top: 4px;
	width: 7px;
	height: 7px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}

#login-form-popup .woocommerce-form-login__submit:hover .wes-lm-arrow {
	transform: translateX(3px);
}

/* quote link pinned to the bottom of the form pane */
#login-form-popup .wes-lm-foot {
	margin-top: 26px;
	padding-top: 20px;
	border-top: 1px solid #E3E9F2;
	font-size: 10.5px;
	line-height: 1.4;
	letter-spacing: .1em;
	text-transform: uppercase;
}

#login-form-popup .wes-lm-foot a {
	color: #10233B;
	text-decoration: none;
}

#login-form-popup .wes-lm-foot a:hover { color: #2F7CF6; }

/* ---------- close button ------------------------------------------------ */
/* The theme puts its own .mfp-close outside the card (close_btn_inside=false);
   the template now renders .wes-lm-close inside the card and calls the
   lightbox API, so the theme button is hidden for this popup only. */
.mfp-wrap:has(#login-form-popup) .mfp-close { display: none !important; }

#login-form-popup .wes-lm-close {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 6;
	width: 52px;
	height: 52px;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 0;
	border-left: 1px solid #E3E9F2;
	border-bottom: 1px solid #E3E9F2;
	color: #5A6675;
	font-family: Inter, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	transition: background .15s, color .15s;
}

#login-form-popup .wes-lm-close:hover {
	background: #F4F6F4;
	color: #10233B;
}

#login-form-popup .wes-lm-close:focus-visible {
	outline: 2px solid #2F7CF6;
	outline-offset: -4px;
}

/* the close square sits over the top-right corner: keep the eyebrow rule clear */
#login-form-popup .wes-lm-eyebrow { padding-right: 56px; }

/* the floating contact bubble would sit on top of the form */
body:has(.mfp-container #login-form-popup:not(.mfp-hide)) .wes-cp {
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

/* the popup can be taller than short viewports: allow the lightbox to scroll */
.mfp-content:has(> #login-form-popup) {
	max-height: 100vh;
	overflow-y: auto;
}

/* ---------- compact / mobile ------------------------------------------- */
@media (max-width: 849px) {
	/* full-bleed sheet: the lightbox container itself carries padding */
	.mfp-container:has(#login-form-popup) { padding: 0 !important; }

	/* Magnific centres content with an inline-block ::before that is 100% tall;
	   with a block-level content box that pseudo element pushes the sheet down
	   by a full viewport, so drop it. */
	.mfp-container:has(#login-form-popup)::before { display: none !important; }

	.mfp-content:has(> #login-form-popup) {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		transform: none !important;
	}

	#login-form-popup { width: 100%; }

	#login-form-popup .account-container {
		display: flex;
		flex-direction: column;
		width: 100%;
		max-width: 100%;
		min-height: 100vh;
		border: 0;
		box-shadow: none;
	}

	/* stack the two panes and let the form pane absorb the remaining height,
	   so the quote link sits at the bottom of the sheet */
	#login-form-popup .col2-set {
		display: flex !important;
		flex-direction: column;
		flex: 1 1 auto;
	}

	#login-form-popup .col2-set > .col-1.wes-lm-col {
		flex: 0 0 auto;
		width: 100%;
		max-width: none;
	}

	#login-form-popup .col2-set > .col-2.wes-lm-formcol {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		width: 100%;
	}

	#login-form-popup .account-login-inner.inner-padding { flex: 1 1 auto; }


	#login-form-popup .wes-lm-panel { padding: 22px 20px 20px !important; }

	#login-form-popup .wes-lm-title { margin-top: 14px !important; font-size: 21px !important; }

	#login-form-popup .wes-lm-lede,
	#login-form-popup .wes-lm-groups { display: none; }

	#login-form-popup .wes-lm-cta {
		margin-top: 16px;
		height: 40px;
	}

	#login-form-popup .wes-lm-groups + .wes-lm-cta { margin-top: 16px; }

	#login-form-popup .account-login-inner.inner-padding {
		padding: 24px 20px max(26px, calc(env(safe-area-inset-bottom, 0px) + 18px)) !important;
	}

	#login-form-popup .wes-lm-formtitle { font-size: 22px !important; }

	#login-form-popup .wes-lm-meta { flex-wrap: wrap; gap: 10px; }

	#login-form-popup .wes-lm-close { width: 44px; height: 44px; }

	#login-form-popup .wes-lm-foot { margin-top: auto; }
}

/* short laptops: trim vertical rhythm so the card still fits */
@media (min-width: 850px) and (max-height: 720px) {
	#login-form-popup .wes-lm-panel { padding-top: 26px !important; padding-bottom: 24px !important; }
	#login-form-popup .wes-lm-lede { display: none; }
	#login-form-popup .wes-lm-group li a { padding: 7px 0; }
	#login-form-popup .account-login-inner.inner-padding { padding-top: 30px !important; }
}


/* ==========================================================================
   Layout safety net — this site does not apply Flatsome's .row flex grid,
   which made #login-form-popup render 0px tall. These rules make the card
   self-contained; they only match inside the popup.
   ========================================================================== */
#login-form-popup .account-container { display: block !important; }

#login-form-popup .col2-set,
#login-form-popup .col2-set.row {
	display: flex !important;
	flex-flow: row nowrap !important;
	align-items: stretch !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

#login-form-popup .col2-set > .col-1,
#login-form-popup .col2-set > .col-2 {
	float: none !important;
	position: relative;
}

#login-form-popup .col2-set > .col-1.wes-lm-col {
	flex: 0 0 360px !important;
	width: 360px !important;
	max-width: 360px !important;
	display: flex !important;
	flex-direction: column !important;
}

#login-form-popup .col2-set > .col-2.wes-lm-formcol {
	flex: 1 1 auto !important;
	width: auto !important;
	max-width: none !important;
	display: flex !important;
	flex-direction: column !important;
	min-width: 0;
}

@media (max-width: 849px) {
	#login-form-popup .col2-set,
	#login-form-popup .col2-set.row {
		flex-flow: column nowrap !important;
	}
	#login-form-popup .col2-set > .col-1.wes-lm-col {
		flex: 0 0 auto !important;
		width: 100% !important;
		max-width: none !important;
	}
}
