/* GHW Chat Buttons: floating chat button, bottom left, in the site's black and gold. */

.ghw-chat {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99990;
	font-family: "Outfit", system-ui, sans-serif;
}

.ghw-chat__toggle {
	width: 56px;
	height: 56px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	display: grid;
	place-items: center;
	color: #0a0908;
	background: linear-gradient(135deg, #f7e08c 0%, #d4af37 45%, #a67c1a 100%);
	box-shadow: 0 10px 28px -10px rgba(212, 175, 55, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
	transition: transform 0.2s ease;
}

.ghw-chat__toggle:hover {
	transform: scale(1.06);
}

.ghw-chat__toggle:focus-visible {
	outline: 2px solid #f3d77a;
	outline-offset: 3px;
}

.ghw-chat__toggle svg {
	width: 26px;
	height: 26px;
	grid-area: 1 / 1;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.ghw-chat__close {
	opacity: 0;
	transform: rotate(-90deg);
}

.ghw-chat.is-open .ghw-chat__open {
	opacity: 0;
	transform: rotate(90deg);
}

.ghw-chat.is-open .ghw-chat__close {
	opacity: 1;
	transform: none;
}

.ghw-chat__menu {
	position: absolute;
	left: 4px;
	bottom: 68px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.ghw-chat__menu[hidden] {
	display: none;
}

.ghw-chat.is-open .ghw-chat__item {
	animation: ghw-chat-in 0.22s ease both;
}

.ghw-chat.is-open .ghw-chat__item:nth-child(2) {
	animation-delay: 0.05s;
}

.ghw-chat__item {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.75), 0 0 0 2px rgba(10, 9, 8, 0.9);
	transition: transform 0.2s ease;
}

.ghw-chat__item:hover,
.ghw-chat__item:focus-visible {
	color: #fff;
	transform: scale(1.08);
}

.ghw-chat__item:focus-visible {
	outline: 2px solid #f3d77a;
	outline-offset: 3px;
}

.ghw-chat__item svg {
	width: 24px;
	height: 24px;
}

.ghw-chat__item--wa {
	background: #25d366;
}

.ghw-chat__item--tg {
	background: #229ed9;
}

@keyframes ghw-chat-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (max-width: 600px) {
	.ghw-chat {
		left: 14px;
		bottom: 14px;
	}

	.ghw-chat__toggle {
		width: 52px;
		height: 52px;
	}

	.ghw-chat__menu {
		left: 2px;
		bottom: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ghw-chat * {
		animation: none !important;
		transition: none !important;
	}
}
