/* Image Download Popup Ads */

.idpa-bar {
	margin: 8px 0 20px;
	text-align: center;
}

.idpa-figure {
	margin: 0 0 24px;
	text-align: center;
}

.idpa-figure img {
	max-width: 100%;
	height: auto;
}

.idpa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--idpa-color, #2271b1);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
	transition: filter .15s ease, transform .05s ease;
}

.idpa-btn:hover,
.idpa-btn:focus-visible {
	filter: brightness(1.12);
	color: #fff;
}

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

.idpa-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: none;
}

.idpa-btn[disabled] {
	opacity: .5;
	cursor: not-allowed;
	filter: grayscale(.4);
}

/* Modal */
.idpa-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .7);
	overflow-y: auto;
}

.idpa-modal.is-open {
	display: flex;
}

.idpa-dialog {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: 100%;
	overflow-y: auto;
	background: #fff;
	color: #1d2327;
	border-radius: 12px;
	padding: 28px 24px 24px;
	text-align: center;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
	animation: idpa-pop .18s ease-out;
}

@keyframes idpa-pop {
	from { opacity: 0; transform: scale(.96) translateY(8px); }
	to   { opacity: 1; transform: none; }
}

.idpa-close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #50575e;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.idpa-close:hover {
	background: #f0f0f1;
	color: #000;
}

.idpa-title {
	margin: 0 28px 14px;
	font-size: 20px;
	line-height: 1.3;
	color: inherit;
}

.idpa-ad {
	margin: 12px auto;
	max-width: 100%;
	overflow: hidden;
}

.idpa-ad:empty {
	display: none;
}

.idpa-status {
	margin: 14px 0 8px;
	font-size: 15px;
	font-weight: 600;
}

.idpa-progress {
	height: 6px;
	margin: 0 auto 16px;
	max-width: 320px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
}

.idpa-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--idpa-color, #2271b1);
	transition: width 1s linear;
}

.idpa-lock {
	overflow: hidden !important;
}

@media (max-width: 480px) {
	.idpa-dialog {
		padding: 24px 14px 18px;
	}
	.idpa-title {
		font-size: 18px;
	}
	.idpa-btn {
		width: 100%;
	}
}
