/**
 * UCB age gate skin — pixel CSS from ucb-website/index.html.
 * Scoped to .age-restriction only.
 */

.age-restriction,
.age-restriction * {
	box-sizing: border-box;
}

.age-restriction {
	font-family: Arial, Helvetica, sans-serif !important;
	-webkit-font-smoothing: antialiased;
}

/* Kill Age Gate admin color vars that tint texts / selects red */
.age-restriction,
.age-restriction .age-gate,
.age-restriction .age-gate__wrapper,
.age-restriction .age-gate-wrapper {
	--ag-text-color: #333333 !important;
	--ag-form-background: transparent !important;
	--ag-background-color: #c30d0d !important;
	color: #333333 !important;
}

/* Backdrop */
.age-restriction .age-gate__background-color,
.age-restriction .age-gate-background-color {
	background: #c30d0d !important;
	opacity: 1 !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

.age-restriction .age-gate__background,
.age-restriction .age-gate-background {
	background-color: #c30d0d !important;
	background-image: var(--ag-ucb-bg-image) !important;
	background-size: contain !important;
	background-repeat: repeat-y !important;
	background-position: center top !important;
	opacity: 1 !important;
}

.age-restriction .age-gate__wrapper,
.age-restriction .age-gate-wrapper {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 100vh;
	padding: 20px !important;
	text-align: center !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

.age-restriction .age-gate {
	background: transparent !important;
	box-shadow: none !important;
	border: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: auto !important;
	max-height: none !important;
	overflow: visible !important;
	margin: 0 !important;
	color: #333333 !important;
}

.age-restriction .age-gate__form,
.age-restriction .age-gate-form {
	display: block !important;
	width: 100%;
	height: auto !important;
}

/* Card — exact from index.html (16px root so rem = same as static page) */
.age-restriction .ageFunctionAge-verification-container {
	position: relative;
	background-color: rgba(255, 255, 255, 0.95);
	padding: 2.5rem;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
	text-align: center;
	max-width: 90%;
	width: 450px;
	margin: 0 auto;
	opacity: 0;
	transform: translateY(70px);
	animation: agUcbFadeInUp 1.2s ease-out forwards;
	overflow: hidden;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 16px !important;
	line-height: normal;
	color: #333333 !important;
}

@keyframes agUcbFadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.age-restriction .ucb-age-gate-logo {
	display: block;
	margin: 0 auto 10px;
	height: 100px;
	width: auto;
	max-width: 100%;
}

/* Title — index.html: 1.2rem / #333 */
.age-restriction .ageFunctionAge-verification-container h1,
.age-restriction .age-gate h1 {
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 1.2rem !important;
	font-weight: 700 !important;
	color: #333333 !important;
	margin: 0 0 1rem !important;
	line-height: 1.35 !important;
	text-transform: uppercase !important;
	letter-spacing: 0 !important;
}

/* Birth + legal — index.html: 0.9rem / #666 */
.age-restriction .ageFunctionAge-verification-container p,
.age-restriction .age-gate p {
	font-family: Arial, Helvetica, sans-serif !important;
	color: #666666 !important;
	font-size: 0.9rem !important;
	line-height: 1.6 !important;
	margin: 0 0 0.2rem !important;
	font-weight: 400 !important;
}

.age-restriction .ageFunctionAge-verification-container .highlight {
	color: #ff0000 !important;
	font-weight: 800 !important;
}

.age-restriction .ageFunctionDate-inputs {
	display: flex;
	gap: 15px;
	margin: 0 0 30px;
	justify-content: center;
}

.age-restriction .ageFunctionInput-group {
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
}

/* Selects — index.html: grey border; focus #667eea (NOT red) */
.age-restriction .ageFunctionInput-group select,
.age-restriction .age-gate select.age-gate__select,
.age-restriction .age-gate select.age-gate-select {
	width: 100%;
	padding: 12px;
	border: 2px solid #e2e8f0 !important;
	border-radius: 5px !important;
	font-size: 16px !important;
	font-family: Arial, Helvetica, sans-serif !important;
	background-color: #ffffff !important;
	color: #14171c !important;
	transition: all 0.3s ease;
	cursor: pointer;
	font-weight: 600 !important;
	appearance: auto;
	text-align: left;
	outline: none !important;
	box-shadow: none !important;
	accent-color: #14171c;
}

.age-restriction .ageFunctionInput-group select:hover,
.age-restriction .ageFunctionInput-group select:focus,
.age-restriction .ageFunctionInput-group select:active,
.age-restriction .ageFunctionInput-group select:focus-visible,
.age-restriction .age-gate select.age-gate__select:hover,
.age-restriction .age-gate select.age-gate__select:focus,
.age-restriction .age-gate select.age-gate__select:active,
.age-restriction .age-gate select.age-gate__select:focus-visible,
.age-restriction .age-gate select.age-gate-select:hover,
.age-restriction .age-gate select.age-gate-select:focus,
.age-restriction .age-gate select.age-gate-select:active,
.age-restriction .age-gate select.age-gate-select:focus-visible {
	outline: none !important;
	border-color: #667eea !important;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
	color: #14171c !important;
	background-color: #ffffff !important;
}

.age-restriction .ageFunctionInput-group select option,
.age-restriction .ageFunctionInput-group select option:checked,
.age-restriction .ageFunctionInput-group select option:hover {
	background-color: #ffffff !important;
	color: #14171c !important;
}

/* CTA — index.html gradient */
.age-restriction .ageFunctionConfirm-btn,
.age-restriction .age-gate__submit,
.age-restriction .age-gate-submit {
	background: linear-gradient(135deg, #ed2024 0%, #c53030 100%) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 10px 20px;
	border-radius: 5px;
	font-size: 16px !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	width: 90%;
	display: inline-block;
	line-height: 1.25;
	position: relative;
	overflow: hidden;
	box-shadow: none !important;
}

.age-restriction .ageFunctionConfirm-btn:hover,
.age-restriction .age-gate__submit:hover,
.age-restriction .age-gate-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 25px rgba(237, 32, 36, 0.3) !important;
	color: #ffffff !important;
	background: linear-gradient(135deg, #ed2024 0%, #c53030 100%) !important;
}

.age-restriction .ageFunctionConfirm-btn:active {
	transform: translateY(0);
}

/* Privacy / Cookie — index.html: 0.7rem / #034280 (16px root → same as maquette) */
.age-restriction .skip-links {
	margin-top: 1.5rem;
}

.age-restriction .skip-links a {
	color: #034280 !important;
	text-decoration: none !important;
	font-size: 0.7rem !important;
	line-height: 1.4 !important;
	margin: 0 0.2rem;
	font-family: Arial, Helvetica, sans-serif !important;
	font-weight: 400 !important;
	transition: color 0.8s ease;
}

.age-restriction .skip-links a:hover {
	color: #ff6200 !important;
}

.age-restriction .skip-links span {
	color: #666666 !important;
	font-size: 0.7rem !important;
}

/* Access denied — exact from ucb-website/index.html .ageFunctionError-message */
.age-restriction .ageFunctionError-message:not(:empty),
.age-restriction .age-gate__errors:not(:empty),
.age-restriction .age-gate-errors:not(:empty),
.age-restriction .ageFunctionError-message[data-ag-ucb-error="1"],
.age-restriction .age-gate__errors[data-ag-ucb-error="1"],
.age-restriction .age-gate-errors[data-ag-ucb-error="1"] {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	background: linear-gradient(135deg, #fed7d7 0%, #feb2b2 100%) !important;
	color: #c53030 !important;
	padding: 20px !important;
	border-radius: 5px !important;
	margin-top: 20px !important;
	border: 0 !important;
	border-left: 4px solid #e53e3e !important;
	font-family: Arial, Helvetica, sans-serif !important;
	font-size: 0.9rem !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	text-align: center !important;
	box-shadow: none !important;
	animation: agUcbSlideIn 0.3s ease;
}

.age-restriction .ageFunctionError-message strong,
.age-restriction .age-gate__errors strong,
.age-restriction .age-gate-errors strong {
	color: #c53030 !important;
	font-weight: 700 !important;
	font-size: 1rem !important;
	font-family: Arial, Helvetica, sans-serif !important;
}

.age-restriction .ageFunctionError-message span,
.age-restriction .age-gate__errors span,
.age-restriction .age-gate-errors span,
.age-restriction .age-gate__error,
.age-restriction .age-gate-error {
	color: #c53030 !important;
	font-weight: 400 !important;
	font-size: 0.9rem !important;
	font-family: Arial, Helvetica, sans-serif !important;
	margin: 0 !important;
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
	display: inline !important;
	visibility: visible !important;
}

@keyframes agUcbSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.age-restriction .age-gate__remember-wrapper,
.age-restriction .age-gate-remember-wrapper,
.age-restriction .age-gate__headline,
.age-restriction .age-gate-headline,
.age-restriction .age-gate__subheadline,
.age-restriction .age-gate-subheadline,
.age-restriction .age-gate__additional-information,
.age-restriction .age-gate-additional-information {
	display: none !important;
}

.age-restriction #ucbPromoPopup,
body.age-gate-restricted #ucbPromoPopup {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

@media (max-width: 480px) {
	.age-restriction .ageFunctionAge-verification-container {
		padding: 1.2rem;
		width: 95%;
	}

	.age-restriction .ageFunctionDate-inputs {
		flex-direction: column;
		gap: 15px;
	}
}
