/* Popup — stili base (personalizza il contenuto in content.php) */

.shared-popup-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.shared-popup-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

.shared-popup-overlay.is-closing {
	opacity: 0;
	visibility: hidden;
}

.shared-popup {
	position: relative;
	width: min(100%, 560px);
	max-height: min(90vh, 720px);
	overflow: auto;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.shared-popup-overlay.is-visible .shared-popup {
	transform: translateY(0) scale(1);
}

.shared-popup__close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	height: auto;
	padding: 0.25rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #222;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.shared-popup__close:hover,
.shared-popup__close:focus {
	background: transparent;
	color: #000;
	opacity: 0.75;
	outline: none;
}

.shared-popup__body {
	padding: 2.5rem 2rem 2rem;
	text-align: center;
}

.shared-popup__announcement {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

.shared-popup__logo {
	display: block;
	width: min(100%, 240px);
	height: auto;
	margin: 0 auto 0.25rem;
}

.shared-popup__title {
	margin: 0;
	color: #1a1a1a;
	font-size: clamp(1.25rem, 2.5vw, 1.5rem);
	font-weight: 700;
	line-height: 1.3;
}

.shared-popup__text {
	margin: 0;
	color: #444;
	font-size: 1rem;
	line-height: 1.6;
}

.shared-popup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 0.5rem;
	padding: 0.85rem 1.5rem;
	border-radius: 999px;
	background: #00a094;
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background 0.2s ease, transform 0.2s ease;
}

.shared-popup__button:hover,
.shared-popup__button:focus {
	background: #008a80;
	color: #fff !important;
	transform: translateY(-1px);
	outline: none;
}

.shared-popup__body > :first-child {
	margin-top: 0;
}

.shared-popup__body > :last-child {
	margin-bottom: 0;
}

body.shared-popup-open {
	overflow: hidden;
}
