/* Acrona Popup */
.acp[hidden] { display: none !important; }

.acp {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.acp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 30, 25, 0.6);
	opacity: 0;
	transition: opacity 0.25s ease;
	cursor: pointer;
}

.acp-dialog {
	position: relative;
	width: 100%;
	max-width: 960px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	opacity: 0;
	transform: translateY(12px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.acp.is-open .acp-backdrop { opacity: 1; }
.acp.is-open .acp-dialog { opacity: 1; transform: none; }

.acp-media {
	display: block;
	min-height: 0;
	flex: 1 1 auto;
	line-height: 0;
}

.acp-img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	object-fit: contain;
	margin: 0;
}

.acp-actions {
	flex: 0 0 auto;
	padding: 12px 16px 18px;
	text-align: center;
}

.acp-button {
	display: inline-block;
	padding: 10px 22px;
	background: var(--acp-accent, #333);
	color: #fff !important;
	border-radius: 4px;
	text-decoration: none !important;
	font-weight: 600;
}
.acp-button:hover,
.acp-button:focus-visible { filter: brightness(0.85); }

.acp-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	color: #333;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: pointer;
	line-height: 1;
}
.acp-close:hover { background: #fff; color: var(--acp-accent, #333); }
.acp-close:focus-visible,
.acp-button:focus-visible,
.acp-media:focus-visible {
	outline: 3px solid var(--acp-accent, #333);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.acp { padding: 10px; }
	.acp-close { top: 4px; right: 4px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.acp-backdrop,
	.acp-dialog { transition: none; transform: none; }
}
