/* /cryptowealth: enquiry dialog (patterns/wealth-enquiry.php). Full screen on phones. */
.sp-wl-dialog {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--white);
	color: #000000;
}
.sp-wl-dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
@media (min-width: 640px) {
	.sp-wl-dialog {
		max-width: 560px;
		height: auto;
		max-height: calc(100dvh - 48px);
		margin: auto;
	}
}
.sp-wl-dialog__inner {
	position: relative;
	padding: 64px 20px 40px;
}
@media (min-width: 640px) {
	.sp-wl-dialog__inner { padding: 48px 40px 40px; }
}
.sp-wl-dialog__close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: none;
	color: #000000;
	cursor: pointer;
	transition: opacity 0.15s;
}
.sp-wl-dialog__close:hover { opacity: 0.6; }
.sp-wl-dialog .sp-wl-dialog__title {
	margin: 0 0 32px;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 500;
	letter-spacing: -0.025em;
	color: var(--wp--preset--color--black-light);
}
@media (min-width: 640px) {
	.sp-wl-dialog .sp-wl-dialog__title { font-size: 32px; }
}

.sp-wl-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}
.sp-wl-form__grid {
	display: grid;
	column-gap: 20px;
}
@media (min-width: 640px) {
	.sp-wl-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-wl-field--wide { grid-column: span 2; }
}
.sp-wl-field {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 20px;
}
.sp-wl-field__label {
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 14px;
	line-height: 20px;
	font-weight: 500;
	color: #000000;
}
.sp-wl-field__input {
	width: 100%;
	height: 50px;
	padding: 0 16px;
	border: 1px solid #E5E5E5;
	border-radius: 0;
	background: var(--wp--preset--color--white);
	font: inherit;
	font-size: 14px;
	color: #000000;
	outline: none;
	transition: border-color 0.2s;
}
.sp-wl-field__input::placeholder { color: rgba(0, 0, 0, 0.25); }
.sp-wl-field__input:focus { border-color: #000000; }
.sp-wl-field__textarea {
	height: auto;
	min-height: 120px;
	padding: 12px 16px;
	resize: vertical;
}

.sp-wl-consent { padding-bottom: 12px; }
.sp-wl-consent__label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}
/* 26px tall, as the live checkbox sits in a line box; the square is at its top. */
.sp-wl-consent__box { position: relative; display: block; flex: none; height: 26px; }
.sp-wl-consent__box input {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.4);
	border-radius: 0;
	background: var(--wp--preset--color--white);
	appearance: none;
	outline: none;
	cursor: pointer;
}
.sp-wl-consent__tick {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--white);
	opacity: 0;
	transform: scale(0);
	transition: opacity 0.15s, transform 0.15s;
	pointer-events: none;
}
.sp-wl-consent__box input:checked + .sp-wl-consent__tick { opacity: 1; transform: scale(1); }
.sp-wl-consent__box input:focus-visible { outline: 2px solid var(--wp--preset--color--secondary); outline-offset: 2px; }
.sp-wl-consent__text {
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 14px;
	line-height: 1.3;
	color: rgba(0, 0, 0, 0.58);
}
.sp-wl-consent__text a { color: inherit; text-underline-offset: 2px; }
.sp-wl-consent__text a:hover { opacity: 0.7; }

/* Empty Turnstile slot, as live: one more 24px gap above the button. */
.sp-wl-form__turnstile:empty { display: block; }
.sp-wl-form__actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) {
	.sp-wl-form__actions { flex-direction: row; align-items: center; }
}
.sp-wl-submit {
	display: inline-block;
	padding: 12px 24px;
	border: 1px solid var(--wp--preset--color--primary);
	background: var(--wp--preset--color--primary);
	color: #1A1A1A;
	font-family: var(--wp--preset--font-family--poppins);
	font-size: 14px;
	font-weight: 500;
	line-height: 16px;
	letter-spacing: -0.42px;
	text-align: center;
	white-space: nowrap;
	cursor: pointer;
	transition: box-shadow 0.2s;
}
.sp-wl-submit:hover { box-shadow: 4px 4px 0 0 var(--wp--preset--color--primary); }
