/**
 * IGET Age Gate - visuals
 * Split card: a dark branded panel (logo + 18+ mark) on the left, the
 * verification panel on the right. Single stacked column on mobile.
 */

#igag {
	--igag-red: #c8102e;
	--igag-red-dark: #9d0b23;
	--igag-ink: #14100f;
	--igag-muted: #6b6467;
	--igag-line: #ece4e6;
	--igag-brand: #17100f;

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background:
		radial-gradient(120% 120% at 12% 0%, rgba(200, 16, 46, .30) 0%, rgba(200, 16, 46, 0) 48%),
		radial-gradient(110% 110% at 95% 100%, rgba(255, 120, 150, .24) 0%, rgba(255, 120, 150, 0) 52%),
		rgba(12, 9, 10, .87);
	-webkit-backdrop-filter: blur(10px) saturate(115%);
	backdrop-filter: blur(10px) saturate(115%);
	animation: igag-fade .32s ease both;
	overflow-y: auto;
	overscroll-behavior: contain;
	outline: none;
}

#igag[hidden] { display: none !important; }

html.igag-open,
html.igag-open body {
	overflow: hidden !important;
	height: 100%;
}

#igag.igag-out { animation: igag-fade-out .26s ease both; }

@keyframes igag-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes igag-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* ------------------------------------------------------------- card */

#igag .igag-card {
	position: relative;
	width: 100%;
	max-width: 900px;
	margin: auto;
	display: grid;
	grid-template-columns: 336px 1fr;
	background: #fff;
	border-radius: 26px;
	overflow: hidden;
	box-shadow:
		0 40px 100px -24px rgba(0, 0, 0, .6),
		0 0 0 1px rgba(255, 255, 255, .09);
	animation: igag-rise .5s cubic-bezier(.2, .9, .2, 1) both;
}

@keyframes igag-rise {
	from { opacity: 0; transform: translateY(24px) scale(.976); }
	to   { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- brand panel */

#igag .igag-brand {
	position: relative;
	padding: 30px 28px 28px;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(90% 70% at 0% 100%, rgba(200, 16, 46, .30) 0%, rgba(200, 16, 46, 0) 60%),
		linear-gradient(158deg, #150e0e 0%, #241013 58%, #350c16 100%);
	color: #fff;
	overflow: hidden;
}

/* faint grid texture */
#igag .igag-brand::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 34px 34px;
	mask-image: radial-gradient(80% 80% at 20% 100%, #000 0%, transparent 72%);
	-webkit-mask-image: radial-gradient(80% 80% at 20% 100%, #000 0%, transparent 72%);
	pointer-events: none;
}

#igag .igag-logo {
	position: relative;
	z-index: 2;
	display: block;
	line-height: 0;
	width: 148px;
	padding: 9px 12px;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 26px -14px rgba(0, 0, 0, .8);
}

#igag .igag-logo img {
	display: block;
	width: 124px;
	height: auto;
}

#igag .igag-badge {
	position: absolute;
	top: 34px;
	right: 24px;
	z-index: 2;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--igag-red);
	color: #fff;
	font: 800 17px/1 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: -.02em;
	box-shadow: 0 10px 24px -8px rgba(200, 16, 46, .95), 0 0 0 5px rgba(200, 16, 46, .15);
}

#igag .igag-badge span { font-size: 11px; vertical-align: super; margin-left: 1px; }

@media (min-width: 761px) {
	#igag .igag-badge { display: none; }
}

#igag .igag-mark {
	position: relative;
	z-index: 1;
	margin-top: auto;
	padding-top: 26px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#igag .igag-mark__top {
	font: 700 10px/1 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: .38em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .42);
	padding-left: 4px;
}

#igag .igag-mark__big {
	font: 800 clamp(84px, 8.2vw, 116px)/.82 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: -.06em;
	color: #fff;
	display: block;
}

#igag .igag-mark__big sup {
	font-size: .3em;
	font-weight: 800;
	vertical-align: .58em;
	letter-spacing: 0;
	margin-left: .1em;
	color: #ff5069;
}

#igag .igag-brand__note {
	position: relative;
	z-index: 1;
	margin: 18px 0 0;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .12);
	font: 500 11px/1.55 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .48);
}

/* ------------------------------------------------------------- body panel */

#igag .igag-body {
	padding: 40px 44px 34px;
	display: flex;
	flex-direction: column;
}

#igag .igag-eyebrow {
	margin: 0 0 10px;
	font: 700 10.5px/1 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--igag-red);
	display: flex;
	align-items: center;
	gap: 8px;
}

#igag .igag-eyebrow::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(200, 16, 46, .28), rgba(200, 16, 46, 0));
}

#igag .igag-title {
	margin: 0 0 12px;
	font: 800 clamp(25px, 2.5vw, 31px)/1.16 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: -.028em;
	color: var(--igag-ink);
	max-width: 15ch;
}

#igag .igag-copy {
	margin: 0 0 22px;
	max-width: 44ch;
	font: 400 14.5px/1.6 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--igag-muted);
}

#igag .igag-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* ------------------------------------------------------------- buttons */

#igag button {
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	width: 100%;
	border: 0;
	border-radius: 13px;
	padding: 14px 20px;
	font: 700 14.5px/1 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	letter-spacing: -.005em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}

#igag .igag-yes {
	background: linear-gradient(180deg, #d4152f 0%, var(--igag-red) 58%, var(--igag-red-dark) 100%);
	color: #fff;
	box-shadow: 0 12px 26px -14px rgba(200, 16, 46, .95), 0 1px 0 rgba(255, 255, 255, .2) inset;
}

#igag .igag-yes:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -14px rgba(200, 16, 46, 1), 0 1px 0 rgba(255, 255, 255, .2) inset; }
#igag .igag-yes:active { transform: translateY(0) scale(.995); }

#igag .igag-no {
	background: #fff;
	color: var(--igag-ink);
	border: 1.5px solid var(--igag-line);
	font-weight: 600;
}

#igag .igag-no:hover {
	background: #faf7f8;
	border-color: #dcd2d5;
	color: var(--igag-red);
}

#igag button:focus-visible {
	outline: 2px solid rgba(200, 16, 46, .55);
	outline-offset: 2px;
}

/* ------------------------------------------------------------- remember */

#igag .igag-remember {
	margin: 16px 0 0;
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font: 500 13px/1.4 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #3f383a;
	-webkit-user-select: none;
	user-select: none;
	width: fit-content;
}

#igag .igag-remember input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

#igag .igag-box {
	flex: 0 0 auto;
	width: 19px;
	height: 19px;
	border-radius: 6px;
	border: 1.5px solid #cfc4c7;
	background: #fff;
	display: grid;
	place-items: center;
	color: #fff;
	transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#igag .igag-box svg { opacity: 0; transform: scale(.6); transition: opacity .14s ease, transform .14s ease; }

#igag .igag-remember input:checked + .igag-box {
	background: var(--igag-red);
	border-color: var(--igag-red);
	box-shadow: 0 4px 10px -5px rgba(200, 16, 46, .9);
}

#igag .igag-remember input:checked + .igag-box svg { opacity: 1; transform: none; }

#igag .igag-remember input:focus-visible + .igag-box {
	outline: 2px solid rgba(200, 16, 46, .45);
	outline-offset: 2px;
}

#igag .igag-fine {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--igag-line);
	font: 400 11.5px/1.55 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #948d90;
}

#igag .igag-fine a { color: var(--igag-red); text-decoration: none; border-bottom: 1px solid rgba(200, 16, 46, .3); }
#igag .igag-fine a:hover { border-bottom-color: var(--igag-red); }

/* reassurance line: hidden on desktop, fills the sheet on a phone */
#igag .igag-why {
	display: none;
	margin: 22px 0 0;
	gap: 8px;
	align-items: flex-start;
	font: 400 11.5px/1.55 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #948d90;
}

#igag .igag-why svg { flex: 0 0 auto; margin-top: 1px; color: #b9b1b4; }
#igag .igag-why strong { color: #6b6467; font-weight: 700; }

/* ------------------------------------------------------------- tablet */

@media (max-width: 900px) and (min-width: 761px) {
	#igag .igag-card { grid-template-columns: 280px 1fr; }
	#igag .igag-body { padding: 34px 32px 28px; }
	#igag .igag-title { font-size: 25px; }
}

/* ------------------------------------------------------------- mobile */

@media (max-width: 760px) {
	/* a bottom sheet rather than a full white screen: the blurred store stays
	   visible above it, which reads as native app rather than a template modal */
	#igag {
		padding: 44px 0 0;
		align-items: flex-end;
		overflow: hidden;
	}

	#igag .igag-card {
		display: flex;
		flex-direction: column;
		max-width: none;
		min-height: 0;
		max-height: 100%;
		margin: 0;
		border-radius: 26px 26px 0 0;
		box-shadow: 0 -24px 60px -20px rgba(0, 0, 0, .6);
		animation-name: igag-sheet;
	}

	@keyframes igag-sheet {
		from { opacity: 0; transform: translateY(34px); }
		to   { opacity: 1; transform: none; }
	}

	#igag .igag-brand {
		flex: 0 0 auto;
		padding: 20px 20px 16px;
		flex-direction: row;
		align-items: center;
		gap: 14px;
		border-radius: 26px 26px 0 0;
	}

	#igag .igag-logo { width: 122px; padding: 7px 10px; }
	#igag .igag-logo img { width: 102px; }

	#igag .igag-badge {
		position: static;
		order: 3;
		width: 44px;
		height: 44px;
		font-size: 15px;
		margin-left: auto;
		flex: 0 0 auto;
	}

	#igag .igag-badge span { font-size: 10px; }

	#igag .igag-mark,
	#igag .igag-brand::before { display: none; }

	#igag .igag-brand__note {
		margin: 0;
		padding: 0;
		border: 0;
		font-size: 9.5px;
		letter-spacing: .1em;
		line-height: 1.4;
		order: 2;
		color: rgba(255, 255, 255, .55);
	}

	#igag .igag-body {
		flex: 1 1 auto;
		min-height: 0;
		padding: 24px 20px 30px;
		justify-content: flex-start;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	#igag .igag-title { font-size: 24px; max-width: none; }
	#igag .igag-copy { font-size: 14px; margin-bottom: 20px; }
	#igag button { padding: 15px 16px; font-size: 14.5px; }
	#igag .igag-remember { font-size: 12.5px; margin-top: 16px; }

	#igag .igag-why {
		display: flex;
		margin-top: 20px;
		padding-top: 0;
	}

	#igag .igag-fine { font-size: 11px; margin-top: 18px; }
}

@media (max-width: 360px) {
	#igag .igag-brand__note { display: none; }
	#igag .igag-logo img { width: 92px; }
	#igag .igag-title { font-size: 22px; }
}

/* ------------------------------------------------------------- restricted notice */

#igag-restricted {
	--igag-red: #c8102e;
	position: relative;
	z-index: 9;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 14px;
	margin: 0;
	padding: 13px clamp(16px, 5vw, 44px);
	background: linear-gradient(90deg, #fff1f4 0%, #fff7f8 100%);
	border-bottom: 1px solid #f3d3d9;
	font: 500 13.5px/1.5 "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #4a2d33;
}

#igag-restricted p { margin: 0; flex: 1 1 320px; }
#igag-restricted strong { color: #1a1012; }

#igag-restricted .igag-r-icon {
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	flex: 0 0 auto;
	border-radius: 8px;
	background: var(--igag-red);
	color: #fff;
}

#igag-restricted a {
	font-weight: 700;
	color: var(--igag-red);
	text-decoration: none;
	white-space: nowrap;
	border-bottom: 1.5px solid rgba(200, 16, 46, .35);
	padding-bottom: 1px;
}

#igag-restricted a:hover { border-bottom-color: var(--igag-red); }

/* nothing behind the notice should invite a click (the redirect would only
   bounce them back, but a dead-end link reads as broken - grey it out instead) */
body.igag-restricted .ig-nav a,
body.igag-restricted .ig-actions a,
body.igag-restricted .ig-logowrap a,
body.igag-restricted .menu-item a,
body.igag-restricted .elementor-location-header a,
body.igag-restricted .site-header a {
	opacity: .38;
	pointer-events: none;
}

body.igag-restricted .ig-footer a,
body.igag-restricted .elementor-location-footer a,
body.igag-restricted footer a { opacity: .5; pointer-events: none; }

/* no sales ticker for a visitor who told us they are under 18 */
body.igag-restricted .isb-alerts,
body.igag-restricted .isb-alert { display: none !important; }

/* short viewports (landscape phones): let the card scroll from its top */
@media (max-height: 560px) {
	#igag { align-items: flex-start; padding: 12px; }
	#igag .igag-card { margin: 0 auto; }
}
