/**
 * Secure Pay Gate.
 *
 * Everything inherits the theme's font stack. Override the custom properties
 * below in the theme to match a specific site.
 */
.spg-scrim {
	--spg-panel-bg: #fff;
	--spg-panel-fg: #1c1c1c;
	--spg-muted: #5c5c5c;
	--spg-line: #d6d6d6;
	--spg-error: #a01b1b;
	--spg-accent: #1b4c8c;
	--spg-radius: 6px;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.55);
	font-family: inherit;
}

.spg-scrim[hidden] {
	display: none;
}

.spg-locked {
	overflow: hidden;
}

.spg-panel {
	position: relative;
	width: 100%;
	max-width: 25rem;
	max-height: 90vh;
	overflow-y: auto;
	padding: 1.75rem 1.5rem 1.5rem;
	background: var(--spg-panel-bg);
	color: var(--spg-panel-fg);
	border-radius: var(--spg-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	text-align: left;
}

@media (prefers-reduced-motion: no-preference) {
	.spg-panel {
		animation: spg-in 160ms ease-out;
	}
}

@keyframes spg-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
}

.spg-close {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	width: 2rem;
	height: 2rem;
	padding: 0;
	font-size: 1.5rem;
	line-height: 1;
	color: var(--spg-muted);
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.spg-close:hover {
	color: var(--spg-panel-fg);
}

.spg-title {
	margin: 0 0 0.5rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: inherit;
}

.spg-intro,
.spg-phone,
.spg-loading {
	margin: 0 0 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--spg-muted);
	max-width: 34em;
}

.spg-phone {
	margin: 1rem 0 0;
	padding-top: 0.75rem;
	border-top: 1px solid var(--spg-line);
}

.spg-field {
	margin-bottom: 1rem;
}

.spg-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.85rem;
	font-weight: 600;
}

.spg-input {
	box-sizing: border-box;
	width: 100%;
	padding: 0.6rem 0.7rem;
	font: inherit;
	font-size: 1rem;
	color: inherit;
	background: var(--spg-panel-bg);
	border: 1px solid var(--spg-line);
	border-radius: var(--spg-radius);
}

.spg-input:focus-visible {
	outline: 2px solid var(--spg-accent);
	outline-offset: 1px;
}

.spg-input--code {
	letter-spacing: 0.4em;
	font-size: 1.35rem;
	text-align: center;
}

.spg-submit {
	width: 100%;
	padding: 0.7rem 1rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--spg-accent);
	border: 0;
	border-radius: var(--spg-radius);
	cursor: pointer;
}

.spg-submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

.spg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 0.85rem;
}

.spg-link {
	padding: 0;
	font: inherit;
	font-size: 0.85rem;
	color: var(--spg-accent);
	background: none;
	border: 0;
	text-decoration: underline;
	cursor: pointer;
}

.spg-message {
	margin: 0.85rem 0 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--spg-muted);
}

.spg-message:empty {
	margin: 0;
}

.spg-message--error {
	color: var(--spg-error);
}

.spg-turnstile:not(:empty) {
	margin-bottom: 1rem;
}

/* Honeypot: kept in the layout for scripts, hidden from people. */
.spg-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* The trigger button inherits the theme unless the theme says nothing. */
.spg-button {
	font: inherit;
	cursor: pointer;
}

.spg-button:not([class*="wp-block"]):not([class*="btn"]):not([class*="button"]) {
	padding: 0.7rem 1.4rem;
	color: #fff;
	background: #1b4c8c;
	border: 0;
	border-radius: 6px;
}

.spg-notice {
	padding: 0.6rem 0.8rem;
	background: #fff8e1;
	border-left: 3px solid #c8a415;
}
