/* Global age gate, floating tools and WhatsApp IAB gate. */

body.yq-overlay-lock {
	overflow: hidden !important;
}

.yq-age-gate,
.yq-wa-gate {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.yq-age-gate[hidden],
.yq-wa-gate[hidden],
.yq-fabs [hidden],
.yq-wa-gate [hidden],
.yq-age-gate [hidden] {
	display: none !important;
}

.yq-age-gate {
	z-index: 12000;
}

.yq-age-gate__backdrop,
.yq-wa-gate__backdrop {
	position: absolute;
	inset: 0;
}

.yq-age-gate__backdrop {
	background: rgba(4, 4, 6, 0.94);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.yq-age-gate__panel {
	position: relative;
	width: min(520px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 46px 44px 38px;
	border: 1px solid var(--yq-line-gold);
	background: #0e0e11;
	box-shadow: var(--yq-shadow);
	text-align: center;
}

.yq-age-gate__panel::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid rgba(var(--yq-gold-rgb), 0.14);
	pointer-events: none;
}

.yq-age-gate__mark {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	margin: 0 auto 22px;
	border: 1px solid var(--yq-gold);
	border-radius: 50%;
	color: var(--yq-gold-2);
	font-family: var(--yq-serif);
	font-size: 24px;
}

.yq-age-gate h2 {
	margin: 0 0 14px;
	color: var(--yq-ink);
	font-family: var(--yq-serif);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.12;
}

.yq-age-gate p {
	margin: 0;
	color: var(--yq-muted);
	font-size: 13px;
	line-height: 1.8;
}

.yq-age-gate__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 26px;
}

.yq-age-gate__actions .yq-btn {
	min-width: 150px;
}

.yq-age-gate .yq-age-gate__denial {
	margin-top: 18px;
	color: var(--yq-red);
}

.yq-age-gate .yq-age-gate__note {
	margin-top: 24px;
	color: var(--yq-muted-2);
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.yq-fabs {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	display: grid;
	gap: 10px;
	pointer-events: none;
}

.yq-fabs__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	padding: 0;
	border: 1px solid var(--yq-line-gold);
	border-radius: 50%;
	background: rgba(12, 12, 15, 0.94);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	color: var(--yq-gold-2);
	cursor: pointer;
	pointer-events: auto;
	transition: transform 0.25s var(--yq-ease), border-color 0.25s ease, background 0.25s ease;
}

.yq-fabs__button:hover {
	transform: translateY(-3px);
	border-color: var(--yq-gold);
	background: #19171a;
	color: var(--yq-gold-2);
}

.yq-fabs__button:focus-visible,
.yq-age-gate a:focus-visible,
.yq-age-gate button:focus-visible,
.yq-wa-gate a:focus-visible,
.yq-wa-gate button:focus-visible {
	outline: 3px solid var(--yq-gold-2);
	outline-offset: 3px;
}

.yq-fabs__button svg {
	width: 24px;
	height: 24px;
}

.yq-wa-gate {
	z-index: 11000;
}

.yq-wa-gate__backdrop {
	background: rgba(0, 0, 0, 0.7);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.yq-wa-gate__panel {
	position: relative;
	width: min(430px, 100%);
	max-height: calc(100vh - 40px);
	max-height: calc(100dvh - 40px);
	overflow-y: auto;
	padding: 28px 24px 22px;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	color: #171410;
	font-family: var(--yq-sans);
}

.yq-wa-gate__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #171410;
	color: var(--yq-gold-2);
	font-size: 23px;
	line-height: 1;
	cursor: pointer;
}

.yq-wa-gate__brand {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	margin-bottom: 14px;
	border-radius: 14px;
	background: #25d366;
	color: #fff;
}

.yq-wa-gate__brand svg {
	width: 28px;
	height: 28px;
}

.yq-wa-gate h2 {
	margin: 0 34px 8px 0;
	color: #171410;
	font-family: var(--yq-sans);
	font-size: 21px;
	line-height: 1.25;
}

.yq-wa-gate p {
	margin: 0 0 12px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.6;
}

.yq-wa-gate .yq-wa-gate__phone {
	color: #171410;
	font-weight: 600;
}

.yq-wa-gate__steps {
	margin: 0 0 16px;
	padding: 12px 12px 12px 32px;
	border-radius: 10px;
	background: #f3f4f6;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.55;
}

.yq-wa-gate[data-yq-wa-platform="facebook"] .yq-wa-gate__steps {
	background: #fef3c7;
	color: #78520d;
}

.yq-wa-gate__button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 44px;
	margin: 8px 0 0;
	padding: 11px 14px;
	border: 1px solid transparent;
	border-radius: 10px;
	font: 600 14px/1.25 var(--yq-sans);
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.yq-wa-gate__button--primary {
	border-color: #25d366 !important;
	background: #25d366 !important;
	box-shadow: 0 6px 16px rgba(37, 211, 102, 0.28);
	color: #fff !important;
}

.yq-wa-gate__button--primary:hover {
	border-color: #1ebe57 !important;
	background: #1ebe57 !important;
	color: #fff !important;
}

.yq-wa-gate__button--ghost {
	border-color: rgba(18, 140, 126, 0.35) !important;
	background: #fff !important;
	color: #128c7e !important;
}

.yq-wa-gate__button--ghost:hover {
	background: #f0fdf9 !important;
	color: #0f766e !important;
}

.yq-wa-gate__copy-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.yq-wa-gate .yq-wa-gate__status {
	margin: 12px 0 0;
	color: #0f766e;
	font-size: 12px;
}

.yq-wa-gate .yq-wa-gate__status.is-error {
	color: #b91c1c;
}

.yq-wa-gate__button.is-opening {
	cursor: wait;
	opacity: 0.82;
}

.yq-iab-sim {
	position: fixed;
	left: 12px;
	bottom: 12px;
	z-index: 13000;
	max-width: min(92vw, 340px);
	padding: 8px 10px;
	border-radius: 8px;
	background: #111;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
	color: #fff;
	font: 12px/1.35 var(--yq-sans);
}

@media (max-width: 600px) {
	.yq-age-gate {
		padding: 16px;
	}

	.yq-age-gate__panel {
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		padding: 38px 24px 30px;
	}

	.yq-age-gate h2 {
		font-size: 30px;
	}

	.yq-age-gate__actions {
		display: grid;
	}

	.yq-age-gate__actions .yq-btn {
		width: 100%;
	}

	.yq-fabs {
		right: 12px;
		bottom: 12px;
	}

	body.single-product .yq-fabs {
		bottom: calc(88px + env(safe-area-inset-bottom, 0px));
	}

	.yq-fabs__button {
		width: 48px;
		height: 48px;
	}

	.yq-wa-gate {
		padding: 16px;
	}

	.yq-wa-gate__panel {
		max-height: calc(100vh - 32px);
		max-height: calc(100dvh - 32px);
		padding: 24px 18px 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.yq-fabs__button {
		transition: none;
	}
}
