/* Ежедневное модальное окно для пользователей с адблоком (контент из баннера DLE {banner_adblok}) */

html.amd-adblock-modal-open {
	overflow: hidden;
}

.amd-adblock-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.amd-adblock-modal-overlay--visible {
	opacity: 1;
	visibility: visible;
}

.amd-adblock-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	cursor: pointer;
}

.amd-adblock-modal-shell {
	position: relative;
	z-index: 1;
	width: auto;
	display: inline-block;
	max-width: 100%;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	animation: amd-ab-fade-in 0.35s ease;
}

@keyframes amd-ab-fade-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.amd-adblock-modal-overlay * {
	box-sizing: border-box;
}

.amd-adblock-modal-overlay .modal {
	width: min(420px, 100%);
	background: #ffffff;
	border-radius: 20px;
	padding: 28px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
	text-align: center;
	margin: 0 auto;
}

.amd-adblock-modal-overlay .icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 16px;
	border-radius: 16px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	line-height: 1;
}

.amd-adblock-modal-overlay h2 {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.amd-adblock-modal-overlay p {
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
	margin: 0 0 24px;
}

.amd-adblock-modal-overlay .buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.amd-adblock-modal-overlay .btn {
	flex: 1;
	min-width: 120px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: background 0.2s ease, transform 0.15s ease;
	font-family: inherit;
}

.amd-adblock-modal-overlay .btn:active {
	transform: scale(0.98);
}

.amd-adblock-modal-overlay .btn-primary {
	background: #6366f1;
	color: #fff;
}

.amd-adblock-modal-overlay .btn-primary:hover {
	background: #4f46e5;
}

.amd-adblock-modal-overlay .btn-secondary {
	background: #f1f5f9;
	color: #0f172a;
}

.amd-adblock-modal-overlay .btn-secondary:hover {
	background: #e2e8f0;
}

.amd-adblock-modal-overlay .link {
	display: block;
	margin-top: 16px;
	font-size: 13px;
	color: #64748b;
	text-decoration: none;
	cursor: pointer;
	border: 0;
	background: none;
	padding: 8px;
	width: 100%;
	font-family: inherit;
}

.amd-adblock-modal-overlay .link:hover {
	color: #334155;
	text-decoration: underline;
}

#amd-adblock-modal-source {
	display: none !important;
}
