/* The native plugin supplies its own approval and events. Its controls are mounted in this dialog. */
@font-face {
	font-family: "El Septimo Age Light";
	src: url("../fonts/Poppins-Light.woff2") format("woff2");
	font-style: normal;
	font-weight: 300;
	font-display: swap;
}
body:has(#esp-age-gate) #agl_wrapper.agl_wrapper,
body.esp-age-managed #agl_wrapper.agl_wrapper,
body.esp-age-policy #agl_wrapper.agl_wrapper,
#esp-age-gate[hidden],
#esp-age-gate [hidden] { display: none !important; }

.esp-fh36-main .esp-fh36-finder .esp-fh36-kicker { color: #e5c58a; }
html:has(#esp-age-gate:not([hidden])), body:has(#esp-age-gate:not([hidden])) { overflow: hidden; }

.esp-age-gate {
	position: fixed;
	inset: 0;
	z-index: 2147483646;
	overflow: auto;
	overscroll-behavior: contain;
	display: flex;
	box-sizing: border-box;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: rgb(30 24 19 / 46%);
	color: #1e1813;
	font: 400 16px/1.4 Poppins, sans-serif;
}
.esp-age-card {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	width: min(100%, 440px);
	gap: 18px;
	margin: auto;
	padding: clamp(20px, 4vw, 32px);
	border-radius: 16px;
	background: #fffcf8;
	box-shadow: 0 18px 60px rgb(24 17 11 / 22%), 0 2px 8px rgb(24 17 11 / 12%);
	text-align: center;
}
.esp-age-card *, .esp-age-card *::after { box-sizing: border-box; }
.esp-age-logo { display: block; width: 114px; height: auto; max-width: 100%; margin: 0; }
.esp-age-intro { display: grid; gap: 8px; width: 100%; }
.esp-age-card #esp-age-title { margin: 0; color: #1e1813; text-transform: uppercase; font: 400 clamp(25px, 4.5vw, 34px)/1.06 Bellefair, Georgia, serif; }
.esp-age-card #esp-age-copy { margin: 0; color: #62584e; font: 400 14px/1.45 Poppins, sans-serif; }
.esp-age-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); width: 100%; gap: 10px; }
#esp-age-gate .esp-age-actions :is(a, button) {
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 44px;
	width: 100%;
	margin: 0;
	padding: 9px 10px;
	border: 1.5px solid #8b692e;
	border-radius: 8px;
	background: #fff;
	color: #805f25;
	font: 500 14px/1.4 Poppins, sans-serif;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
}
#esp-age-gate .esp-age-actions .esp-age-yes { background: #8b692e; color: white; }
#esp-age-gate .esp-age-actions .esp-age-yes:hover { background: #795b27; }
#esp-age-gate .esp-age-actions .esp-age-no:hover { background: #f7f1e6; }
.esp-age-reconsider { grid-column: 1 / -1; }
.esp-age-remember { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -3px 0; min-height: 30px; font: 400 13px/1.4 Poppins,sans-serif; cursor: pointer; }
.esp-age-remember input { appearance: auto; flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: #8b692e; }
.esp-age-card .esp-age-legal { width: 100%; margin: 0; padding-top: 14px; border-top: 1px solid rgb(30 24 19 / 14%); color: #5e554c; text-align: center; font: 300 12px/1.45 "El Septimo Age Light", Poppins, sans-serif; }
.esp-age-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.esp-age-gate :is(button, a, input):focus-visible { outline: 2px solid #6c4d1e; outline-offset: 3px; }
#esp-age-title:focus { outline: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
	.esp-age-card {
		width: min(100%, 560px);
		padding: 46px 48px;
		gap: 24px;
		background: #fff;
	}
	.esp-age-logo { width: 175px; }
	.esp-age-intro { gap: 12px; }
	.esp-age-card #esp-age-title { font-size: 40px; line-height: 1.1; }
	.esp-age-card #esp-age-copy { font-size: 16px; }
	.esp-age-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#esp-age-gate .esp-age-actions :is(a, button) { min-height: 48px; font-size: 16px; }
	.esp-age-remember { font-size: 14px; }
	.esp-age-card .esp-age-legal { padding-top: 24px; text-transform: uppercase; }
}
@media (max-width: 479px) {
	.esp-age-card { gap: 14px; }
	.esp-age-actions { gap: 8px; }
}
@media (max-height: 480px) {
	.esp-age-card { gap: 10px; padding: 16px 20px; }
	.esp-age-logo { width: 88px; }
	.esp-age-card #esp-age-title { font-size: 25px; }
	.esp-age-card .esp-age-legal { padding-top: 8px; }
}
@media (prefers-reduced-motion: no-preference) {
	.esp-age-card { animation: esp-age-arrive 160ms ease-out; }
	@keyframes esp-age-arrive { from { transform: translateY(5px); } to { transform: translateY(0); } }
}

/* Reserve the chooser's space while its content arrives. Enlarged text can grow the card. */
.esp-age-card { min-block-size: 380px; overflow-wrap: anywhere; }

@media (min-width: 365px) and (max-width: 599px) {
  .esp-age-card { min-block-size: 340px; }
}
@media (max-height: 480px) {
  .esp-age-card { min-block-size: 340px; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) and (min-height: 481px) {
  .esp-age-card { min-block-size: 460px; }
}

/* Keep the legal links in place while the house fonts load. */
#esp-age-gate .esp-age-legal { font-family: Arial, sans-serif; }
#esp-age-gate .esp-age-legal a { font-family: inherit; }
