:root {
	--vcswd-cream: #fef9ed;
	--vcswd-olive: #738535;
	--vcswd-olive-dark: #596828;
}

.vcswd-popup[hidden] {
	display: none !important;
}
.vcswd-popup {
	position: fixed;
	inset: 0;
	z-index: 999999;
	font-family: Syne, sans-serif;
	color: var(--vcswd-olive);
}
.vcswd-popup__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(29, 35, 17, 0.58);
	backdrop-filter: blur(2px);
}
.vcswd-popup__panel {
	position: absolute;
	width: min(620px, calc(100% - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: var(--vcswd-cream);
	border: 1px solid var(--vcswd-olive);
	box-shadow: 0 24px 80px rgba(25, 31, 11, 0.28);
}
.vcswd-popup__content {
	padding: clamp(25px, 7.5vw, 60px);
}
.vcswd-popup__logo {
	display: block;
	max-width: 120px;
	max-height: 60px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto 20px;
}
.vcswd-popup__wordmark {
	text-align: center;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-weight: 600;
	margin-bottom: 26px;
}
.vcswd-popup__eyebrow {
	margin: 0 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 12px;
	font-weight: 600;
	text-align: center;
}
.vcswd-popup h2 {
	text-align: center;
	margin: 0 auto 20px;
	max-width: 8em;
}
.vcswd-popup #vcswd-popup-copy {
	font-size: 16px;
	line-height: 1.333;
	text-align: center;
	max-width: 480px;
}
.vcswd-popup__close {
	position: absolute;
	z-index: 2;
	top: 10px;
	right: 13px;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--vcswd-olive);
	font: 300 34px/1 Syne, sans-serif;
	cursor: pointer;
}
.vcswd-popup__form label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	margin: 0 0 15px;
}
.vcswd-popup__form label > span:first-child {
	display: block;
	margin-bottom: 7px;
}
.vcswd-popup__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.vcswd-popup input[type="text"],
.vcswd-popup input[type="email"] {
	box-sizing: border-box;
	display: block;
	width: 100%;
	min-height: 48px;
	border: 1px solid var(--vcswd-olive);
	border-radius: 0;
	background: transparent;
	color: var(--vcswd-olive-dark);
	padding: 10px 12px;
	margin: 0;
	font: 400 16px/1.3 Syne, sans-serif;
	outline: 0;
}
.vcswd-popup input:focus {
	box-shadow: 0 0 0 3px rgba(115, 133, 53, 0.2);
}

.vcswd-popup__consent input {
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: var(--vcswd-olive);
}
.vcswd-popup__consent a {
	color: var(--vcswd-olive-dark);
	text-decoration: underline;
}
.vcswd-popup__submit {
	width: 100%;
	min-height: 50px;
	padding: 12px 22px;
	border: 1px solid var(--vcswd-olive);
	border-radius: 0;
	background: var(--vcswd-olive);
	color: var(--vcswd-cream);
	font: 600 14px/1.2 Syne, sans-serif;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
.vcswd-popup__submit:hover,
.vcswd-popup__submit:focus {
	background: var(--vcswd-olive-dark);
	border-color: var(--vcswd-olive-dark);
}
.vcswd-popup__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}
.vcswd-popup__status {
	min-height: 22px;
	margin: 15px 0 0;
	text-align: center;
	font-size: 14px;
	line-height: 1.45;
}

.vcswd-popup__status:empty {
	display: none;
}

.vcswd-popup__status.is-error {
	color: #8c2f22;
}
.vcswd-popup__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
body.vcswd-popup-open {
	overflow: hidden;
}

@media (max-width: 540px) {
	.vcswd-popup__panel {
		width: calc(100% - 20px);
		max-height: calc(100vh - 20px);
	}

	.vcswd-popup__logo {
		display: none;
	}

	.vcswd-popup__row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.vcswd-popup:not([hidden]) .vcswd-popup__backdrop {
		animation: vcswd-fade 0.2s ease-out;
	}
	.vcswd-popup:not([hidden]) .vcswd-popup__panel {
		animation: vcswd-rise 0.28s ease-out;
	}
	@keyframes vcswd-fade {
		from {
			opacity: 0;
		}
	}
	@keyframes vcswd-rise {
		from {
			opacity: 0;
			transform: translate(-50%, calc(-50% + 16px));
		}
	}
}
