/* vitaservice-personalization.css — minimale, thema-neutrale overlay-styling.
 * Bewust geen kleuren hardcoded op de knop zelf (erft de winkel se eigen
 * .button-styling via WooCommerce's standaard knopklasse) — uitsluitend de
 * modal/overlay-mechaniek wordt hier gestyled.
 */

.vitaservice-personalization-launcher {
	margin: 1em 0;
}

.vitaservice-personalization-confirmed-note {
	margin-top: 0.5em;
	font-size: 0.9em;
	color: #2e7d32;
}

.vitaservice-personalization-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

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

.vitaservice-personalization-iframe {
	width: 100%;
	max-width: 960px;
	height: 90vh;
	max-height: 900px;
	border: 0;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.vitaservice-personalization-close {
	position: absolute;
	top: 24px;
	right: max(24px, calc(50vw - 480px));
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: #111;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.vitaservice-personalization-open {
	overflow: hidden;
}

@media (max-width: 640px) {
	.vitaservice-personalization-overlay {
		padding: 0;
	}
	.vitaservice-personalization-iframe {
		max-width: 100%;
		height: 100vh;
		max-height: 100vh;
		border-radius: 0;
	}
	.vitaservice-personalization-close {
		right: 12px;
		top: 12px;
	}
}
