/* ── Widget container ── */
.float-widget {
	position: fixed;
	bottom: 32px;
	right: 32px;
	z-index: 9999;
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	gap: 12px;
}

/* ── Toggle button ── */
.float-widget__toggle {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fecc43;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 20px rgba(26, 25, 24, 0.25);
	transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	flex-shrink: 0;
	position: relative;
	z-index: 2;
}

.float-widget__toggle:hover {
	transform: scale(1.08);
	box-shadow: 0 6px 28px rgba(26, 25, 24, 0.32);
}

.float-widget__toggle:active {
	transform: scale(0.96);
}

/* Icon switching */
.float-widget__icon {
	width: 24px;
	height: 24px;
	color: #1a1918;
	position: absolute;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.float-widget__icon--close {
	opacity: 0;
	transform: rotate(-90deg);
}

.float-widget__icon--open {
	opacity: 1;
	transform: rotate(0deg);
}

.float-widget.is-open .float-widget__icon--open {
	opacity: 0;
	transform: rotate(90deg);
}

.float-widget.is-open .float-widget__icon--close {
	opacity: 1;
	transform: rotate(0deg);
}

/* ── Buttons container ── */
.float-widget__buttons {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: center;
	pointer-events: none;
	opacity: 0;
	transform: translateY(16px) scale(0.95);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.float-widget.is-open .float-widget__buttons {
	pointer-events: all;
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* ── Contact icon buttons (circle, icons only) ── */
.float-widget__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 12px;
	box-sizing: border-box;
	border-radius: 50%;
	text-decoration: none;
	color: #fff;
	box-shadow: 0 2px 12px rgba(26, 25, 24, 0.18);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.float-widget__btn:hover {
	transform: scale(1.08);
	box-shadow: 0 4px 20px rgba(26, 25, 24, 0.25);
}

.float-widget__btn svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	display: block;
	object-fit: contain;
}

.float-widget__btn-icon {
	width: 24px;
	height: 24px;
	display: block;
	flex-shrink: 0;
}

/* Brand colors */
.float-widget__btn--viber {
	background: #7360f2;
}

.float-widget__btn--telegram {
	background: #2aabee;
}

.float-widget__btn--whatsapp {
	background: #25d366;
}

.float-widget__buttons .float-widget__btn--phone,
a.float-widget__btn.float-widget__btn--phone {
	background-color: #fecc43;
	background: #fecc43;
	color: #1a1918;
}

.float-widget__buttons .float-widget__btn--phone:hover,
a.float-widget__btn.float-widget__btn--phone:hover {
	background-color: #f5c030;
	background: #f5c030;
	color: #1a1918;
}

.float-widget__btn--phone svg {
	color: #1a1918;
}

/* Staggered animation for each button */
.float-widget__buttons .float-widget__btn:nth-child(1) {
	transition-delay: 0s;
}

.float-widget__buttons .float-widget__btn:nth-child(2) {
	transition-delay: 0.04s;
}

.float-widget__buttons .float-widget__btn:nth-child(3) {
	transition-delay: 0.08s;
}

.float-widget__buttons .float-widget__btn:nth-child(4) {
	transition-delay: 0.12s;
}

/* Mobile */
@media (max-width: 480px) {
	.float-widget {
		bottom: 20px;
		right: 16px;
	}

	.float-widget__toggle {
		width: 52px;
		height: 52px;
	}

	.float-widget__btn {
		width: 44px;
		height: 44px;
		padding: 11px;
	}

	.float-widget__btn svg {
		width: 20px;
		height: 20px;
	}
}
