/**
 * Responsible Play — age verification.
 *
 * Colours come from --otg-* custom properties injected alongside this file by
 * OneTwenty_Giveaways::palette_css(). Fallbacks are the same values, so the
 * sheet still renders correctly if it is ever loaded on its own.
 */

/* --------------------------------------------------------------------- *
 *  Interstitial
 * --------------------------------------------------------------------- */

.otg-age-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(20, 38, 58, .92);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
}

.otg-age-gate__panel {
	width: 100%;
	max-width: 460px;
	padding: 36px 28px 30px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(20, 38, 58, .35);
	text-align: center;
}

.otg-age-gate__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: var(--otg-violet-deep, #6d28d9);
	color: #fff;
	/* Glyph metric for the fixed 62px circle, not a text size — stays off the
	   --ep-fs-* ladder on purpose. */
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.otg-age-gate__title {
	margin: 0 0 12px;
	color: var(--otg-navy, #14263a);
	font-size: var(--ep-fs-h3, 1.375rem);
	line-height: 1.25;
}

.otg-age-gate__body {
	margin: 0 0 24px;
	color: var(--otg-muted, #374758);
	font-size: var(--ep-fs-base, 1rem);
	line-height: 1.55;
}

.otg-age-gate__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.otg-age-gate__button {
	display: block;
	width: 100%;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: var(--ep-fs-btn, 0.9375rem);
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.otg-age-gate__button--yes {
	background: var(--otg-violet-deep, #6d28d9);
	color: #fff;
}

.otg-age-gate__button--yes:hover,
.otg-age-gate__button--yes:focus {
	background: var(--otg-plum, #5b21b6);
}

.otg-age-gate__button--no {
	background: transparent;
	border-color: var(--otg-track, #e7e1f5);
	color: var(--otg-muted, #374758);
}

.otg-age-gate__button--no:hover,
.otg-age-gate__button--no:focus {
	background: var(--otg-tint, #f4efff);
}

.otg-age-gate__refused .otg-age-gate__title {
	color: var(--otg-navy, #14263a);
}

/* --------------------------------------------------------------------- *
 *  Registration field
 * --------------------------------------------------------------------- */

.otg-age-field__hint {
	display: block;
	margin-top: 6px;
	color: var(--otg-faint, #64748b);
	font-size: var(--ep-fs-xs, 0.8125rem);
}

/* Match whatever the theme does to the surrounding inputs, then only correct
   what the mask needs: a tabular figure width so the dashes do not jump. */
.otg-age-field__input {
	font-variant-numeric: tabular-nums;
	letter-spacing: .02em;
}

.otg-age-field__input:focus {
	outline: 2px solid var(--otg-violet, #7c3aed);
	outline-offset: 1px;
}

/* Bootscore's two-column form rows collapse on narrow screens; the name pair
   uses WooCommerce's own first/last classes so it follows the same rules. */
.otg-reg-row::after {
	content: "";
	display: table;
	clear: both;
}

/* --------------------------------------------------------------------- *
 *  Missing-DOB prompt
 * --------------------------------------------------------------------- */

.otg-age-notice {
	margin: 0 0 24px;
	padding: 18px 20px;
	border: 1px solid var(--otg-track, #e7e1f5);
	border-left: 4px solid var(--otg-violet-deep, #6d28d9);
	border-radius: 8px;
	background: var(--otg-tint, #f4efff);
}

.otg-age-notice--blocked {
	border-left-color: var(--otg-lose, #d64562);
	background: #fdf2f4;
}

.otg-age-notice__title {
	margin: 0 0 6px;
	color: var(--otg-navy, #14263a);
	font-size: var(--ep-fs-base, 1rem);
	font-weight: 700;
}

.otg-age-notice p {
	margin: 0 0 8px;
	color: var(--otg-muted, #374758);
	font-size: var(--ep-fs-sm, 0.875rem);
	line-height: 1.5;
}

.otg-age-notice p:last-child {
	margin-bottom: 0;
}

.otg-age-notice__link {
	font-weight: 600;
	color: var(--otg-violet-deep, #6d28d9);
}

/* --------------------------------------------------------------------- *
 *  18+ mark (header / footer)
 * --------------------------------------------------------------------- */

.otg-age-mark {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
}

.otg-age-mark__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border: 1.5px solid currentColor;
	border-radius: 50%;
	font-size: var(--ep-fs-3xs, 0.6875rem);
	font-weight: 700;
	line-height: 1;
}

.otg-age-mark__label {
	font-size: var(--ep-fs-xs, 0.8125rem);
	letter-spacing: .01em;
}
