/**
 * PDF Gatekeeper frontend styles.
 */

.pgk-button {
	display: inline-block;
	cursor: pointer;
	font: inherit;
	padding: 12px 24px;
	line-height: 1.2;
	transition: opacity 0.2s ease;
}

.pgk-button:hover {
	opacity: 0.9;
}

.pgk-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
	box-sizing: border-box;
}

.pgk-overlay.pgk-open {
	display: flex;
}

.pgk-popup {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 32px;
	border-radius: 10px;
	box-sizing: border-box;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.pgk-popup-title {
	margin: 0 0 12px;
	font-size: 1.5em;
	line-height: 1.2;
}

.pgk-popup-content {
	margin: 0 0 20px;
}

.pgk-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	padding: 0;
}

.pgk-close:hover {
	opacity: 1;
}

.pgk-form-wrap {
	margin: 0 0 8px;
}

.pgk-download-wrap {
	text-align: center;
	padding: 8px 0;
}

.pgk-download-msg {
	margin: 0 0 16px;
	font-weight: 600;
}

.pgk-download-btn {
	display: inline-block;
	text-decoration: none;
	padding: 12px 28px;
	cursor: pointer;
}

.pgk-download-btn:hover {
	opacity: 0.9;
}

/* Respect the hidden attribute used to toggle form/download views. */
.pgk-popup [hidden] {
	display: none !important;
}

.pgk-no-form {
	opacity: 0.7;
}

@media (max-width: 560px) {
	.pgk-popup {
		padding: 24px 20px;
		max-height: 94vh;
	}

	.pgk-popup-title {
		font-size: 1.3em;
	}
}
