/**
 * Pineapple Blaze age gate.
 *
 * Mirrors the Blaze/Tymber storefront age-gate modal (humbleroot.com/menu).
 * Colours are driven by CSS custom properties set inline from the plugin
 * settings; the values here are the menu's defaults as a fallback.
 */

.pbag-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	box-sizing: border-box;
	background: var(--pbag-overlay, rgba(0, 0, 0, 0.5));
	-webkit-backdrop-filter: blur(var(--pbag-blur, 10px));
	backdrop-filter: blur(var(--pbag-blur, 10px));
	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Already verified this browser: never show, and never flash. */
html.pbag-verified .pbag-overlay {
	display: none !important;
}

/* Gate is up: lock scrolling behind it. */
html.pbag-active {
	overflow: hidden !important;
}

.pbag-modal {
	box-sizing: border-box;
	width: 613px;
	max-width: calc(100% - 16px);
	padding: 20px 8px;
	display: flex;
	justify-content: center;
	background: var(--pbag-card-bg, #ffffff);
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.pbag-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 15px;
	max-width: 100%;
	padding: 24px 8px;
}

.pbag-logo {
	display: block;
	width: auto;
	height: 38px;
	max-width: 220px;
	object-fit: contain;
}

.pbag-text {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	max-width: 100%;
}

.pbag-title {
	margin: 0;
	padding: 0 0 20px;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.32px;
	text-align: center;
	color: var(--pbag-title, #000000);
}

.pbag-subtitle {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.32px;
	text-align: center;
	color: var(--pbag-subtitle, #000000);
}

.pbag-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.pbag-btn {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	min-width: 110px;
	padding: 8px 16px;
	border: 0;
	border-radius: 8px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.05s ease;
}

.pbag-btn:hover {
	opacity: 0.9;
}

.pbag-btn:active {
	transform: translateY(1px);
}

.pbag-btn--yes {
	background: var(--pbag-yes-bg, #1e4526);
	color: var(--pbag-yes-text, #ffffff);
}

.pbag-btn--no {
	background: var(--pbag-no-bg, #ffffff);
	color: var(--pbag-no-text, #000000);
	border: 1px solid var(--pbag-no-text, #000000);
}

.pbag-decline {
	margin-top: 4px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	color: #b00020;
}

.pbag-decline[hidden] {
	display: none;
}

@media (max-width: 520px) {
	.pbag-inner {
		padding: 16px 6px;
		gap: 12px;
	}

	.pbag-title {
		font-size: 22px;
		padding-bottom: 14px;
	}

	.pbag-subtitle {
		font-size: 14px;
	}
}
