/* Woo Disclaimer — popup d'avertissement */

.wdcl-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	background: var(--wdcl-overlay, rgba(15, 23, 42, 0.75));
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
	animation: wdcl-fade-in 0.25s ease-out;
}

.wdcl-overlay[hidden] { display: none; }

@keyframes wdcl-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

.wdcl-modal {
	background: #ffffff;
	width: 100%;
	max-width: 560px;
	border-radius: 14px;
	box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.5), 0 10px 25px -5px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1f2937;
	animation: wdcl-slide-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wdcl-slide-in {
	from { transform: translateY(20px) scale(0.98); opacity: 0; }
	to   { transform: translateY(0) scale(1); opacity: 1; }
}

.wdcl-header {
	background: var(--wdcl-header-bg, #b91c1c);
	color: #ffffff;
	padding: 20px 28px;
	display: flex;
	align-items: center;
	gap: 14px;
}

.wdcl-header .wdcl-icon {
	flex-shrink: 0;
}

.wdcl-header h2 {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #ffffff;
	line-height: 1.3;
}

.wdcl-body {
	padding: 26px 28px 24px;
}

.wdcl-intro {
	font-size: 0.95rem;
	line-height: 1.55;
	color: #374151;
	margin-bottom: 18px;
}

.wdcl-intro p { margin: 0 0 0.75em; }
.wdcl-intro p:last-child { margin-bottom: 0; }

.wdcl-form { margin: 0; }

.wdcl-fields {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 14px;
}

.wdcl-field {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wdcl-field label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6b7280;
	margin-bottom: 6px;
	font-weight: 600;
}

.wdcl-field input {
	width: 64px;
	padding: 12px 8px;
	font-size: 1.25rem;
	text-align: center;
	font-weight: 600;
	color: #111827;
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	font-variant-numeric: tabular-nums;
}

.wdcl-field-year input { width: 96px; }

.wdcl-field input:focus {
	border-color: var(--wdcl-primary, #2563eb);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wdcl-field input.wdcl-input-error {
	border-color: #dc2626;
	background: #fef2f2;
}

.wdcl-sep {
	font-size: 1.5rem;
	color: #9ca3af;
	font-weight: 300;
	padding-bottom: 10px;
	user-select: none;
}

.wdcl-error {
	min-height: 1.25rem;
	color: #dc2626;
	font-size: 0.875rem;
	text-align: center;
	margin: 4px 0 12px;
	font-weight: 500;
}

.wdcl-warning {
	background: #fef3c7;
	border-left: 3px solid #f59e0b;
	padding: 12px 14px;
	margin: 16px 0 12px;
	font-size: 0.82rem;
	line-height: 1.5;
	color: #78350f;
	border-radius: 6px;
}

.wdcl-warning strong { color: #92400e; }

.wdcl-footer-warning {
	font-size: 0.78rem;
	line-height: 1.5;
	color: #6b7280;
	margin: 0 0 22px;
	text-align: center;
	font-style: italic;
}

.wdcl-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.wdcl-btn {
	flex: 1 1 auto;
	min-width: 140px;
	padding: 14px 20px;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
	font-family: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.wdcl-btn-primary {
	background: var(--wdcl-primary, #2563eb);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.wdcl-btn-primary:hover {
	filter: brightness(1.08);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.wdcl-btn-primary:active { transform: translateY(1px); }

.wdcl-btn-secondary {
	background: #f3f4f6;
	color: #374151;
}

.wdcl-btn-secondary:hover { background: #e5e7eb; }

@media (max-width: 480px) {
	.wdcl-modal { border-radius: 12px; }
	.wdcl-header { padding: 16px 20px; }
	.wdcl-header h2 { font-size: 1rem; }
	.wdcl-body { padding: 20px; }
	.wdcl-field input { width: 56px; font-size: 1.1rem; padding: 10px 6px; }
	.wdcl-field-year input { width: 84px; }
	.wdcl-actions { flex-direction: column; }
	.wdcl-btn { width: 100%; }
}

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