/**
 * Age Gate v3 — Đông Dương Wine popup theme.
 *
 * Styles the plugin BEM markup (.age-gate__*) plus child-theme decorations
 * (divider, shield/grape icons). View overrides live under /age-gate/.
 * Typography inherits Flatsome theme fonts (Appearance → Style → Typography).
 *
 * @package dongduongwine
 */

:root {
	--dd-cream: #FBF7F2;
	--dd-red: #6B0F1B;
	--dd-red-ink: #7A1220;
	--dd-gold: #C9A24A;
	--dd-gold-ink: #B08A3E;
	--dd-body: #4A3B34;
	--dd-muted: #8A7355;
	--dd-line: #E6DBCB;
}

/* Overlay */
.age-gate__background-colour {
	background: rgba(24, 17, 15, .78);
	backdrop-filter: blur(4px);
}

/* Centering shell */
.age-gate__wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
}
.age-gate-heading-title-logo, .age-gate__heading-title--logo{max-width: 240px;}
/* Card */
.age-gate {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	box-sizing: border-box;
	padding: 40px 36px 28px;
	background-color: var(--dd-cream);
	background-image:
		radial-gradient(rgba(106, 84, 58, .035) 1px, transparent 1px),
		linear-gradient(180deg, #FDFBF7 0%, var(--dd-cream) 100%);
	background-size: 3px 3px, auto;
	border: 1px solid var(--dd-line);
	border-radius: 14px;
	box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
	text-align: center;
	color: var(--dd-body);
}

/* Logo */
.age-gate__logo-image {
	display: block;
	max-width: 190px;
	height: auto;
	margin: 0 auto 6px;
}

.age-gate__heading {
	margin: 0 0 8px;
}

/* Gold grape divider (replaces heading::after rule) */
.age-gate__heading::after {
	content: none;
}

.age-gate__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 78%;
	margin: 0 auto;
}

.age-gate__divider-line {
	flex: 1 1 auto;
	height: 1px;
	background: linear-gradient(90deg, rgba(201, 162, 74, 0), var(--dd-gold), rgba(201, 162, 74, 0));
}

.age-gate__icon {
	display: inline-block;
	flex: 0 0 auto;
	vertical-align: middle;
	line-height: 0;
}

.age-gate__icon--grape {
	color: var(--dd-gold);
}

.age-gate__icon--shield {
	color: var(--dd-gold);
}

.age-gate__icon--shield-btn {
	color: var(--dd-cream);
}

/* Headline */
.age-gate__headline {
	margin: 0 0 16px;
	font-weight: 700;
	font-size: 31px;
	line-height: 1.25;
	color: var(--dd-red-ink);
}

@media (max-width: 480px) {
	.age-gate {
		padding: 30px 22px 22px;
	}

	.age-gate__headline {
		font-size: 25px;
	}
}

/* Subheadline / body */
.age-gate__subheadline {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--dd-body);
	text-wrap: pretty;
}

/* Challenge (Yes/No sub question) */
.age-gate__challenge {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--dd-muted);
}

.age-gate__challenge-inner {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	text-align: left;
}

.age-gate__challenge-inner .age-gate__icon {
	margin-top: 2px;
}

.age-gate__challenge-text {
	flex: 1 1 auto;
}

.age-gate__challenge-text p {
	margin: 0;
}

/* Buttons */
.age-gate__buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.age-gate__submit {
	width: 100%;
	min-height: 56px;
	padding: 16px 20px;
	border-radius: 8px;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, transform .2s ease, color .2s ease;
}

.age-gate__submit-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.age-gate__submit--yes {
	background: var(--dd-red);
	border: 1px solid var(--dd-red);
	color: var(--dd-cream);
}

.age-gate__submit--yes:hover {
	background: #571018;
	border-color: #571018;
	transform: translateY(-1px);
}

.age-gate__submit--no {
	background: #FFFFFF;
	border: 1px solid var(--dd-red);
	color: var(--dd-red);
}

.age-gate__submit--no:hover {
	background: #F4EADD;
	border-color: var(--dd-red-ink);
	color: var(--dd-red-ink);
}

.age-gate__submit:focus-visible {
	outline: 2px solid var(--dd-gold);
	outline-offset: 3px;
}

/* Additional / footer */
.age-gate__additional-information {
	margin: 10px 0 0;
	font-size: 13px;
	font-style: normal;
	color: var(--dd-muted);
}

.age-gate__additional-information p {
	margin: 0;
}

.age-gate__additional-inner {
	display: inline-flex;
	align-items: flex-start;
	justify-content: center;
	gap: 8px;
	max-width: 100%;
	text-align: left;
}

.age-gate__additional-inner .age-gate__icon {
	margin-top: 2px;
	color: var(--dd-gold);
}

.age-gate__additional-text {
	flex: 1 1 auto;
}

/* Form */
.age-gate__form {
	margin: 0;
}

/* Errors */
.age-gate__errors {
	margin: 0 0 14px;
}

.age-gate__error,
.age-gate__error-message {
	color: #A32530;
	font-size: 14px;
	line-height: 1.5;
}

/* Remember (optional; muted, after footer) */
.age-gate__remember-wrapper {
	margin: 18px 0 0;
	font-size: 13.5px;
	color: var(--dd-muted);
}

.age-gate__remember {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.age-gate__remember-field {
	accent-color: var(--dd-red);
}

.age-gate__remember-text {
	color: var(--dd-muted);
}
