body.wsr-entry-pending,
body.wsr-entry-denied {
	overflow: hidden;
}

.wsr-entry-overlay {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 16px;
	overflow: auto;
	background: #111111;
	color: #111111;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.wsr-entry-dialog {
	width: min(100%, 680px);
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	padding: clamp(24px, 5vw, 48px);
	overflow: auto;
	border: 2px solid #d6ae4f;
	border-radius: 10px;
	background: #faf8f2;
	box-shadow: 0 0 0 1px #6b4a16;
}

.wsr-entry-eyebrow {
	margin: 0 0 8px;
	color: #6b4a16;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.4;
	text-transform: uppercase;
}

.wsr-entry-title {
	margin: 0 0 16px;
	color: #111111;
	font-family: "Libre Baskerville", Georgia, Cambria, "Times New Roman", serif;
	font-size: clamp(1.75rem, 1.5rem + 1vw, 2.375rem);
	font-weight: 700;
	line-height: 1.2;
}

.wsr-entry-description {
	max-width: 62ch;
	margin: 0;
	color: #111111;
	font-size: 1rem;
	line-height: 1.65;
}

.wsr-entry-actions {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.wsr-entry-form {
	display: block;
	margin: 0;
}

.wsr-entry-form-primary {
	display: grid;
	gap: 16px;
}

.wsr-entry-attestations {
	display: grid;
	gap: 10px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.wsr-entry-attestations legend {
	margin-bottom: 10px;
	color: #111111;
	font-size: 0.9375rem;
	font-weight: 700;
}

.wsr-entry-attestation {
	display: grid;
	grid-template-columns: 22px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 12px;
	border: 1px solid #ded9cf;
	border-radius: 6px;
	background: #ffffff;
	color: #111111;
	font-size: 0.9375rem;
	line-height: 1.5;
	cursor: pointer;
}

.wsr-entry-attestation:hover {
	border-color: #6b4a16;
}

.wsr-entry-attestation input {
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #6b4a16;
}

.wsr-entry-error {
	margin: 16px 0 0;
	padding: 12px;
	border-left: 4px solid #a12a2a;
	background: #ffffff;
	color: #a12a2a;
	font-weight: 700;
}

.wsr-entry-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	padding: 12px 20px;
	border: 2px solid #111111;
	border-radius: 6px;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.wsr-entry-button-primary {
	background: #d6ae4f;
	color: #111111;
}

.wsr-entry-button-primary:hover {
	background: #faf8f2;
	color: #111111;
}

.wsr-entry-button-secondary {
	background: #faf8f2;
	color: #111111;
}

.wsr-entry-button-secondary:hover {
	background: #ded9cf;
	color: #111111;
}

.wsr-entry-button:focus-visible,
.wsr-entry-attestation input:focus-visible,
.wsr-entry-policy-links a:focus-visible {
	outline: 3px solid #2f6fed;
	outline-offset: 3px;
}

.wsr-entry-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 20px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #ded9cf;
}

.wsr-entry-policy-links a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: #6b4a16;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.wsr-entry-dialog-denied .wsr-entry-button {
	width: auto;
	margin-top: 24px;
}

@media (max-width: 480px) {
	.wsr-entry-overlay {
		padding: 8px;
	}

	.wsr-entry-dialog {
		max-height: calc(100vh - 16px);
		max-height: calc(100dvh - 16px);
		padding: 20px 16px;
	}

	.wsr-entry-actions,
	.wsr-entry-policy-links {
		flex-direction: column;
	}

	.wsr-entry-form,
	.wsr-entry-button,
	.wsr-entry-dialog-denied .wsr-entry-button {
		flex-basis: auto;
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wsr-entry-overlay,
	.wsr-entry-dialog,
	.wsr-entry-button {
		scroll-behavior: auto;
		transition: none;
		animation: none;
	}
}
