/*
 * Centered modal + overlay shown when the checkout phone number matches
 * a VIBGYOR employee. Triggered by typing into the existing checkout
 * phone field - not shown up front, and not shown at all for non-matches.
 */

.ivc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 99998;
}

body.ivc-locked {
	overflow: hidden;
}

.ivc-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 92%;
	max-width: 420px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
	z-index: 99999;
	padding: 28px 32px;
	font-family: inherit;
	text-align: center;
	animation: ivc-modal-in 0.2s ease-out;
}

@keyframes ivc-modal-in {
	from {
		opacity: 0;
		transform: translate(-50%, -46%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.ivc-modal h3 {
	margin: 0 0 12px;
	font-size: 20px;
	font-weight: 700;
	color: #1e8e3e;
}

.ivc-modal .ivc-modal-text {
	margin: 0 0 22px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.ivc-portal-btn {
	display: block;
	width: 100%;
	padding: 12px 22px;
	background: #1a56c4;
	color: #fff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
}

.ivc-portal-btn:hover,
.ivc-portal-btn:focus {
	background: #164a9e;
	color: #fff;
}

.ivc-modal-close {
	position: absolute;
	top: 10px;
	right: 14px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 22px;
	line-height: 1;
	color: #999;
	padding: 4px;
}

.ivc-modal-close:hover {
	color: #333;
}
