/* L2GM Age Gate — panel styles.
   The blurred overlay background is in the critical inline CSS (wp_head, priority 1);
   it is repeated here so the panel and its children are fully styled. */

#l2gm-age-gate {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 16px;
	background: rgba(4, 35, 100, 0.5);
	-webkit-backdrop-filter: blur(16px) saturate(1.1);
	backdrop-filter: blur(16px) saturate(1.1);
	font-family: inherit;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	#l2gm-age-gate {
		background: #042364;
	}
}

#l2gm-age-gate__panel {
	background: #fff;
	max-width: 540px;
	width: 100%;
	margin: auto;
	border-radius: 18px;
	padding: 28px 32px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	color: #11171c;
	font-family: inherit;
}

#l2gm-age-gate__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
}

#l2gm-age-gate__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border: 2px solid #062766;
	border-radius: 50%;
	background: #fff;
	color: #062766;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
}

#l2gm-age-gate__logo {
	height: 44px;
	width: auto;
	max-width: 60%;
	display: block;
}

#l2gm-age-gate__sitename {
	font-weight: 700;
	font-size: 20px;
	color: #062766;
}

#l2gm-age-gate__kicker {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #0b7285;
	margin: 0 0 8px;
}

#l2gm-age-gate__title {
	font-size: 28px;
	line-height: 1.2;
	font-weight: 700;
	color: #062766;
	margin: 0 0 14px;
	font-family: inherit;
}

#l2gm-age-gate__body {
	font-size: 15px;
	line-height: 1.6;
	margin: 0 0 22px;
}

/* Checkboxes */

#l2gm-age-gate__checks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 22px;
}

#l2gm-age-gate__checks label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	line-height: 1.5;
	cursor: pointer;
	margin: 0;
}

#l2gm-age-gate__checks label.l2gm-ag-remember {
	margin-top: 4px;
	font-size: 13px;
	color: #33415c;
}

/* Custom-drawn box; ID-scoped + !important to win over Blocksy's checkbox styles. */
#l2gm-age-gate__checks input[type="checkbox"] {
	-webkit-appearance: none !important;
	appearance: none !important;
	flex: 0 0 auto;
	width: 20px !important;
	height: 20px !important;
	min-width: 20px !important;
	margin: 1px 0 0 !important;
	padding: 0 !important;
	border: 2px solid #062766 !important;
	border-radius: 4px !important;
	background: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	position: relative;
}

#l2gm-age-gate__checks input[type="checkbox"]:checked {
	background: #062766 !important;
	border-color: #062766 !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-size: 14px 14px !important;
}

#l2gm-age-gate__checks input[type="checkbox"]::before,
#l2gm-age-gate__checks input[type="checkbox"]::after {
	content: none !important;
}

/* Buttons */

#l2gm-age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

#l2gm-age-gate__actions button {
	flex: 1 1 160px;
	padding: 14px 18px;
	border-radius: 100px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

#l2gm-ag-yes {
	background: #062766;
	color: #fff;
	border: none;
}

#l2gm-ag-yes:hover:not(:disabled) {
	background: #031a4a;
}

#l2gm-ag-yes:disabled {
	background: #d5dcea;
	color: #33415c;
	cursor: not-allowed;
}

#l2gm-ag-no {
	background: transparent;
	border: 1px solid #062766;
	color: #062766;
}

#l2gm-ag-no:hover {
	background: #f1f4fa;
}

/* Visible focus outlines (WCAG) — never strip :focus-visible. */
#l2gm-age-gate input:focus-visible,
#l2gm-age-gate button:focus-visible {
	outline: 3px solid #0b7285;
	outline-offset: 2px;
}

/* Small screens */
@media (max-width: 480px) {
	#l2gm-age-gate {
		padding: 12px;
	}
	#l2gm-age-gate__panel {
		padding: 22px 20px;
		border-radius: 16px;
	}
}
