/**
 * Minimal CSS to render the Age Verification modal as a centered lightbox.
 * Keeps styles intentionally small and self-contained.
 */

.avm-modal {
	position: fixed;
	inset: 0;
	display: none;
	z-index: 99999;
	pointer-events: none;
}

.avm-modal.avm-open {
	display: block;
	pointer-events: auto;
}

.avm-modal .avm-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	-webkit-backdrop-filter: blur(0);
	backdrop-filter: blur(0);
}

.avm-modal .avm-dialog {
	position: relative;
	max-width: 520px;
	margin: 6vh auto;
	background: #ffffff;
	color: #111827;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	padding: 20px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	z-index: 1;
}

/* Center dialog vertically on larger viewports */
@media (min-height: 600px) {
	.avm-modal .avm-dialog {
	margin: 10vh auto;
	}
}

.avm-modal .avm-close {
	position: absolute;
	top: 8px;
	right: 10px;
	background: transparent;
	border: 0;
	font-size: 24px;
	color: #111827;
	cursor: pointer;
	line-height: 1;
}

.avm-modal .avm-body {
	outline: none;
}

.avm-modal .avm-methods {
	margin-bottom: 12px;
}

.avm-modal .avm-methods label {
	display: inline-block;
	margin-right: 12px;
	font-weight: 500;
}

.avm-modal .avm-dob label {
	display: block;
	margin-bottom: 6px;
	font-weight: 500;
}

.avm-modal input[type="date"],
.avm-modal input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: inherit;
	margin-bottom: 10px;
}

.avm-modal .avm-actions {
	margin-top: 8px;
	text-align: right;
}

.avm-modal .avm-actions .avm-submit {
	background: #2563eb;
	color: #fff;
	border: 0;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
}

.avm-modal .avm-actions .avm-cancel {
	background: #f3f4f6;
	color: #374151;
	border: 0;
	padding: 10px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.2s;
	margin-right: 10px;
}

.avm-modal .avm-actions .avm-cancel:hover,
.avm-modal .avm-actions .avm-cancel:focus {
	background: #e5e7eb;
	color: #111827;
}

.avm-modal .avm-error {
	color: #b91c1c;
	margin-top: 10px;
	min-height: 18px;
}

/* Accessibility tweaks */
.avm-modal [tabindex] { outline: none; }
.avm-modal:focus { outline: none; }

/* RTL support */
html[dir="rtl"] .avm-modal .avm-dialog { direction: rtl; }
html[dir="rtl"] .avm-modal .avm-close { left: 10px; right: auto; }

/* Small screens */
@media (max-width: 480px) {
	.avm-modal .avm-dialog {
	margin: 4vh 12px;
	width: calc(100% - 24px);
	max-width: none;
	}
}
