/* TASSEL Wine Categories v1.13.0 - potwierdzenie pełnoletności */

html.twc-agegate-locked,
html.twc-agegate-locked body {
	overflow: hidden !important;
}

.twc-agegate {
	--twc-age-accent: var(--global-palette1, #6d1b32);
	--twc-age-accent-2: var(--global-palette2, #99304b);
	--twc-age-ink: var(--global-palette4, #241a1c);
	--twc-age-card: var(--global-palette9, #fff);
	--twc-age-display: var(--global-heading-font-family, Georgia, "Times New Roman", serif);
	--twc-age-body: var(--global-body-font-family, Arial, sans-serif);

	position: fixed;
	inset: 0;
	z-index: 2147483000;
	/* Bezpieczny stan początkowy: baner nie może mignąć zanim JS odczyta cookie. */
	display: none;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 4vw, 2rem);
	font-family: var(--twc-age-body);
}

html.twc-agegate-locked .twc-agegate {
	display: flex;
}

html.twc-agegate-verified .twc-agegate {
	display: none !important;
}

.twc-agegate[hidden] {
	display: none !important;
}

.twc-agegate__backdrop {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 50% 20%, rgba(109, 27, 50, 0.28), transparent 45%),
		rgba(20, 12, 14, 0.92);
	backdrop-filter: blur(9px);
}

.twc-agegate__panel {
	position: relative;
	width: min(100%, 560px);
	max-height: min(92vh, 720px);
	overflow: auto;
	padding: clamp(1.7rem, 5vw, 3.2rem);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 18px;
	background: var(--twc-age-card);
	color: var(--twc-age-ink);
	box-shadow: 0 32px 90px rgba(0, 0, 0, 0.45);
	text-align: center;
	transform: translateY(0);
	opacity: 1;
	transition: transform 0.25s ease, opacity 0.25s ease;
}

.twc-agegate.is-leaving .twc-agegate__panel {
	transform: translateY(10px);
	opacity: 0;
}

.twc-agegate__logo {
	margin: 0 auto 1.25rem;
}

.twc-agegate__logo img {
	display: block;
	max-width: min(220px, 70%);
	max-height: 88px;
	width: auto;
	height: auto;
	margin: 0 auto;
}

.twc-agegate__mark {
	display: grid;
	place-items: center;
	width: 4.5rem;
	height: 4.5rem;
	margin: 0 auto 1.15rem;
	border: 1px solid rgba(109, 27, 50, 0.22);
	border-radius: 50%;
	background: rgba(109, 27, 50, 0.07);
	color: var(--twc-age-accent);
	font-family: var(--twc-age-display);
	font-size: 1.65rem;
	font-weight: 700;
	line-height: 1;
}

.twc-agegate__title {
	margin: 0;
	font-family: var(--twc-age-display);
	font-size: clamp(1.65rem, 5vw, 2.45rem);
	line-height: 1.12;
	color: var(--twc-age-ink);
}

.twc-agegate__text {
	max-width: 45ch;
	margin: 1rem auto 0;
	font-size: 1rem;
	line-height: 1.65;
	color: rgba(36, 26, 28, 0.78);
}

.twc-agegate__legal {
	margin: 1rem auto 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba(36, 26, 28, 0.62);
}

.twc-agegate__noscript {
	display: none;
	margin: 1rem auto 0;
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--twc-age-accent);
}

.twc-agegate__actions {
	display: grid;
	gap: 0.75rem;
	margin-top: 1.7rem;
}

.twc-agegate__confirm,
.twc-agegate__reject {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.35rem;
	border-radius: 999px;
	font-size: 0.84rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.twc-agegate__confirm {
	border: 1px solid var(--twc-age-accent);
	background: var(--twc-age-accent);
	color: #fff;
	box-shadow: none;
}

.twc-agegate__confirm:hover,
.twc-agegate__confirm:focus-visible {
	border-color: var(--twc-age-accent-2);
	background: var(--twc-age-accent-2);
	color: #fff;
}

.twc-agegate__reject {
	border: 1px solid rgba(36, 26, 28, 0.2);
	background: transparent;
	color: rgba(36, 26, 28, 0.72);
}

.twc-agegate__reject:hover,
.twc-agegate__reject:focus-visible {
	border-color: rgba(36, 26, 28, 0.45);
	color: var(--twc-age-ink);
	text-decoration: none;
}

.twc-agegate__confirm:focus-visible,
.twc-agegate__reject:focus-visible {
	outline: 3px solid rgba(109, 27, 50, 0.28);
	outline-offset: 3px;
}

@media (min-width: 540px) {
	.twc-agegate__actions {
		grid-template-columns: 1fr 1fr;
	}
}

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