.evg-contact {
	position: fixed;
	z-index: 400;
	right: 20px;
	bottom: 20px;
	font-family: Roboto, "Segoe UI", sans-serif;
}

body:has(.back-to-top.visible) .evg-contact {
	bottom: 78px;
}

.evg-contact__toggle {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin: 0;
	border-radius: 50%;
	background: #141414;
	color: #fff;
	list-style: none;
	cursor: pointer;
}

.evg-contact__toggle::-webkit-details-marker {
	display: none;
}

.evg-contact__toggle:focus {
	outline: none;
}

.evg-contact__toggle:focus-visible {
	outline: 2px solid #d92b37;
	outline-offset: 3px;
}

.evg-contact__glyph {
	display: grid;
	place-items: center;
}

.evg-contact[open] .evg-contact__glyph--chat,
.evg-contact:not([open]) .evg-contact__glyph--close {
	display: none;
}

.evg-contact__panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 188px;
	margin: 0;
	padding: 8px;
	border: 1px solid rgba(20, 20, 20, 0.08);
	border-radius: 18px;
	background: #fff;
}

.evg-contact__link {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 12px 0 8px;
	border-radius: 12px;
	color: #141414;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.evg-contact__icon {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f4f4f5;
	color: #141414;
}

.evg-contact__link:focus-visible {
	outline: 2px solid #d92b37;
	outline-offset: 2px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.evg-contact__toggle,
	.evg-contact__link {
		transition: background-color 150ms linear, color 150ms linear;
	}

	.evg-contact__toggle:hover {
		background: #d92b37;
	}

	.evg-contact__link:hover {
		background: #f4f4f5;
	}
}

.evg-contact[open] .evg-contact__toggle {
	background: #d92b37;
}

@media (prefers-reduced-motion: no-preference) {
	.evg-contact[open] .evg-contact__panel {
		animation: evg-contact-in 180ms cubic-bezier(0.2, 0.6, 0.2, 1);
	}
}

@keyframes evg-contact-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 767px) {
	.evg-contact {
		right: 16px;
		bottom: 16px;
	}

	body:has(.back-to-top.visible) .evg-contact {
		bottom: 72px;
	}
}

.evg-contact .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
