/*
Incoming calls on the homepage desk phone (voip-hosting.jpg).
The script places this panel on the black screen. Visual ring only.
*/

.nv-phone-ring-host {
	position: relative;
	display: inline-block;
	max-width: 100%;
	line-height: 0;
}

.nv-phone-ring-host > img {
	display: block;
	max-width: 100%;
	height: auto;
}

.nv-phone-ring {
	position: absolute;
	z-index: 1;
	box-sizing: border-box;
	min-width: 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	gap: 0.05em;
	margin: 0;
	padding: 0.1em 0.06em 0.08em;
	overflow: hidden;
	color: #f4fff8;
	background: transparent;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.05;
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
	cursor: pointer;
	animation: nv-phone-ring-glow 1.8s ease-in-out infinite;
}

.nv-phone-ring:hover,
.nv-phone-ring:focus {
	color: #ffffff;
	text-decoration: none;
}

.nv-phone-ring:focus-visible {
	outline: 1px solid #b6ffd0;
	outline-offset: -2px;
}

.nv-phone-ring__status,
.nv-phone-ring__place,
.nv-phone-ring__number {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	text-align: center;
	transition: opacity 0.28s ease;
}

.nv-phone-ring.is-swap .nv-phone-ring__status,
.nv-phone-ring.is-swap .nv-phone-ring__place,
.nv-phone-ring.is-swap .nv-phone-ring__number {
	opacity: 0;
}

.nv-phone-ring__status {
	color: #9dffc3;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.nv-phone-ring__number {
	font-size: 0.98em;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.nv-phone-ring__place {
	color: #d5e4ea;
	font-size: 0.58em;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.nv-phone-ring__pulse {
	position: absolute;
	top: 9%;
	right: 7%;
	width: 0.7em;
	height: 0.7em;
	pointer-events: none;
}

.nv-phone-ring__pulse i {
	position: absolute;
	inset: 0;
	border: 1px solid #7dffb2;
	border-radius: 50%;
	animation: nv-phone-ring-pulse 1.6s ease-out infinite;
}

.nv-phone-ring__pulse i:nth-child(2) {
	animation-delay: 0.8s;
}

.nv-phone-ring__pulse::after {
	content: "";
	position: absolute;
	left: 22%;
	top: 22%;
	width: 56%;
	height: 56%;
	border-radius: 50%;
	background: #7dffb2;
	box-shadow: 0 0 6px rgba(125, 255, 178, 0.85);
}

@keyframes nv-phone-ring-pulse {
	0% {
		transform: scale(0.45);
		opacity: 0.95;
	}
	100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

@keyframes nv-phone-ring-glow {
	0%,
	100% {
		box-shadow: inset 0 0 0 1px rgba(125, 255, 178, 0.12);
	}
	50% {
		box-shadow: inset 0 0 10px rgba(125, 255, 178, 0.38);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nv-phone-ring,
	.nv-phone-ring__pulse i,
	.nv-phone-ring__status,
	.nv-phone-ring__place,
	.nv-phone-ring__number {
		animation: none !important;
		transition: none !important;
	}

	.nv-phone-ring__pulse i {
		display: none;
	}

	.nv-phone-ring.is-swap .nv-phone-ring__status,
	.nv-phone-ring.is-swap .nv-phone-ring__place,
	.nv-phone-ring.is-swap .nv-phone-ring__number {
		opacity: 1;
	}
}
