.widget-contacts {
	position: fixed;
	bottom: 40px;
	right: 20px;
	z-index: 1040;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.widget-contacts * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.widget-contacts {
		bottom: 50px;
		right: 40px;
	}
}

.widget-link {
	display: block;
	aspect-ratio: 1;
	width: 50px;
	border-radius: 50%;
	overflow: hidden;
	opacity: 0;
	transform: translateY(20px) scale(0.8);
	transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
	text-decoration: none;
	pointer-events: none;
	visibility: hidden;
}

.widget-link:hover {
	box-shadow: 0 0 20px rgba(93, 48, 253, 0.4);
}

.widget-link img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.widget-link.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
	visibility: visible;
	pointer-events: auto;
}

@media (min-width: 768px) {
	.widget-link {
		width: 60px;
	}
}

.widget-link-1:hover {
	box-shadow: 0 0 20px #4d76a1;
}

.widget-link-2:hover {
	box-shadow: 0 0 20px #29abdf;
}

.widget-link-3 {
	background-color: #fff;
}

.widget-link-3:hover {
	box-shadow: 0 0 20px #67c15e;
}

.widget-toggle {
	position: relative;
	aspect-ratio: 1;
	width: 50px;
	background-color: #5d30fd;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	outline: 4px solid rgba(93, 48, 253, 0.4);
	overflow: visible;
	transition: transform 0.3s ease, outline-width 0.3s ease;
}

.widget-toggle.active {
	background-color: #a3a3a3;
	outline-width: 0;
}

.widget-toggle::before,
.widget-toggle::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(93, 48, 253, 0.8);
	opacity: 0;
	pointer-events: none;
	animation: pulse 2s ease-out infinite;
}

.widget-toggle::after {
	animation-delay: 4s;
}

.widget-toggle::before {
	animation-delay: 0s;
	animation-iteration-count: infinite;
}

.widget-toggle.active::before,
.widget-toggle.active::after {
	display: none;
}

@media (min-width: 768px) {
	.widget-toggle {
		width: 60px;
		outline-width: 6px;
	}
}

@keyframes pulse {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}
	70% {
		transform: scale(1.8);
		opacity: 0;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

.widget-chat,
.widget-close {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 30px;
	opacity: 0;
	transform: translate(-50%, -50%) scale(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.widget-chat.active,
.widget-close.active {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

@media (min-width: 768px) {
	.widget-chat,
	.widget-close {
		width: 34px;
	}
}

.widget-close {
	width: 18px;
}

@media (min-width: 768px) {
	.widget-close {
		width: 20px;
	}
}
