/**
 * WS Vault Lead System — sign-up form and popup. Same card / field look as
 * the shop's checkout; colours from the theme (WoodMart's primary colour).
 */

.wsvl-signup {
	--wsvl-accent: var(--wd-primary-color, #242424);
	--wsvl-border: rgba(127, 127, 127, 0.22);
	max-width: 520px;
}
.wsvl-signup__title {
	margin: 0 0 6px;
	font-size: 1.25rem;
	font-weight: 700;
}
.wsvl-signup__text {
	margin: 0 0 18px;
	opacity: 0.8;
}
.wsvl-signup .wsvl-field {
	margin: 0 0 14px;
	padding: 0;
	border: 0;
}
.wsvl-signup .wsvl-field > label,
.wsvl-signup legend,
.wsvl-signup .wsvl-consent label,
.wsvl-signup .wsvl-chip {
	color: inherit !important; /* Theme labels are dark grey: unreadable on dark backgrounds. */
}
.wsvl-signup .wsvl-field > label,
.wsvl-signup legend {
	display: block;
	margin: 0 0 6px;
	padding: 0;
	font-size: 0.85rem;
	font-weight: 600;
}
.wsvl-signup input[type="text"],
.wsvl-signup input[type="email"],
.wsvl-signup input[type="tel"] {
	width: 100%;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid var(--wsvl-border) !important;
	border-radius: 10px !important;
	background: rgba(127, 127, 127, 0.06) !important;
	font-size: 0.95rem;
	box-shadow: none;
}
.wsvl-signup input:focus {
	outline: none;
	border-color: var(--wsvl-accent) !important;
}
.wsvl-req {
	color: var(--wsvl-accent);
}
.wsvl-opt {
	font-weight: 400;
	opacity: 0.6;
}
.wsvl-interests {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.wsvl-interests legend {
	width: 100%;
}
.wsvl-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--wsvl-border);
	border-radius: 999px;
	font-size: 0.85rem;
	cursor: pointer;
}
.wsvl-chip:has(input:checked) {
	border-color: var(--wsvl-accent);
	box-shadow: 0 0 0 1px var(--wsvl-accent);
}
.wsvl-chip input,
.wsvl-consent input,
.wsvl-optin input {
	margin: 0;
	accent-color: var(--wsvl-accent, var(--wd-primary-color));
}
.wsvl-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
}
.wsvl-consent input {
	margin-top: 3px;
}
.wsvl-signup .wsvl-submit {
	width: 100%;
	min-height: 50px;
	border-radius: 10px !important;
	font-weight: 700;
}
.wsvl-status {
	margin: 10px 0 0;
	font-size: 0.9rem;
}
.wsvl-status.is-ok {
	color: #2f7a4f;
}
.wsvl-status.is-error {
	color: #c65b4e;
}
.wsvl-signup.is-done .wsvl-field,
.wsvl-signup.is-done .wsvl-submit {
	display: none;
}
.wsvl-privacy {
	margin: 10px 0 0;
	font-size: 0.78rem;
	opacity: 0.65;
}
.wsvl-hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Popup ---------------------------------------------------------------- */

.wsvl-popup {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, 0.45);
}
.wsvl-popup[hidden] {
	display: none;
}
.wsvl-popup__panel {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 30px 28px 24px;
	background: var(--bgcolor-white, #fff);
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	animation: wsvl-in 0.25s ease;
}
.wsvl-popup__close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 34px;
	height: 34px;
	min-height: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: transparent !important;
	color: inherit !important;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}
.wsvl-popup .wsvl-signup {
	max-width: none;
}
html.wsvl-popup-open {
	overflow: hidden;
}
@keyframes wsvl-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* ---- Checkout / Request a Quote tick box ---------------------------------- */

.wsvl-optin label {
	display: inline-flex !important;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.85rem !important;
	font-weight: 400 !important;
	line-height: 1.45;
	cursor: pointer;
}
.wsvl-optin input {
	margin-top: 2px !important;
}

/* Compact form ([vault_signup compact="yes"]): email + button in one row; follows the text colour around it (dark footers too). */
.wsvl-signup--compact .wsvl-row {
	display: flex;
	gap: 8px;
	margin: 0 0 10px;
}
.wsvl-signup--compact input[type="email"] {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	/* A white box with dark text: clearly visible on dark footers and light pages alike. */
	color: #1d1a17 !important;
	background: #fff !important;
	border-color: rgba(127, 127, 127, 0.45) !important;
}
.wsvl-signup--compact input[type="email"]::placeholder {
	color: #6b635a;
	opacity: 1;
}
.wsvl-signup--compact .wsvl-submit {
	width: auto;
	min-height: 44px;
	padding: 0 18px;
	white-space: nowrap;
}
.wsvl-signup--compact .wsvl-consent label {
	color: inherit !important; /* The theme colours labels dark; follow the footer's text instead. */
	font-size: 0.78rem;
	opacity: 0.85;
}
.wsvl-signup--compact .wsvl-status.is-ok {
	color: inherit;
	font-weight: 600;
}
