/* Onsite IT — Book an Apple Review modal
   Brand v5 tokens: ink #1b1e1a, canvas #eef2ec, border #dde6db, green dot #44d17f. */

.onsite-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.onsite-modal.is-open { display: flex; }

.onsite-modal__scrim {
	position: absolute;
	inset: 0;
	background: rgba(27, 30, 26, 0.62); /* ink-based scrim, not a dark card fill */
	backdrop-filter: saturate(120%) blur(2px);
}

.onsite-modal__dialog {
	position: relative;
	width: min(560px, 94vw);
	height: min(760px, 88vh);
	background: #ffffff;
	border: 1px solid #dde6db;
	border-radius: 24px;
	box-shadow: 0 40px 90px rgba(20, 32, 22, 0.28);
	overflow: hidden;
	animation: onsite-pop 0.18s ease-out;
}
@keyframes onsite-pop {
	from { transform: translateY(8px) scale(0.985); opacity: 0; }
	to   { transform: none; opacity: 1; }
}

.onsite-modal__embed {
	width: 100%;
	height: 100%;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}
.onsite-modal__embed iframe {
	width: 100% !important;
	border: 0 !important;
	display: block;
}

.onsite-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border: 1.5px solid #1b1e1a;
	border-radius: 50%;
	background: #1b1e1a;
	color: #ffffff;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease;
}
.onsite-modal__close::after {
	content: "";
	position: absolute;
	bottom: 7px;
	right: 7px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #44d17f; /* green-dot signature */
}
.onsite-modal__close:hover { transform: scale(1.06); }

body.onsite-modal-open { overflow: hidden; }

@media (max-width: 600px) {
	.onsite-modal { padding: 0; }
	.onsite-modal__dialog { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
}
