.whatchat-floating-button {
	position: fixed;
	z-index: 99999;
	bottom: calc(var(--whatchat-y, 24px) + env(safe-area-inset-bottom, 0px));
	width: var(--whatchat-size, 56px);
	height: var(--whatchat-size, 56px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #16a31a;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.22);
	line-height: 1;
	text-decoration: none;
	transition: transform 160ms ease, box-shadow 160ms ease;
	-webkit-tap-highlight-color: transparent;
}

.whatchat-floating-button.whatchat-desktop-right {
	right: calc(var(--whatchat-x, 24px) + env(safe-area-inset-right, 0px));
	left: auto;
}

.whatchat-floating-button.whatchat-desktop-left {
	left: calc(var(--whatchat-x, 24px) + env(safe-area-inset-left, 0px));
	right: auto;
}

.whatchat-floating-button img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border: 0;
	border-radius: 50%;
	box-shadow: none;
}

.whatchat-floating-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 16px rgba(0, 0, 0, 0.26);
}

.whatchat-floating-button:focus-visible {
	outline: 3px solid #155eef;
	outline-offset: 4px;
}

@media screen and (min-width: 768px) {
	.whatchat-floating-button.whatchat-hide-desktop {
		display: none !important;
	}
}

@media screen and (max-width: 767px) {
	.whatchat-floating-button.whatchat-hide-mobile {
		display: none !important;
	}

	.whatchat-floating-button.whatchat-mobile-right {
		right: calc(var(--whatchat-x, 18px) + env(safe-area-inset-right, 0px));
		left: auto;
	}

	.whatchat-floating-button.whatchat-mobile-left {
		left: calc(var(--whatchat-x, 18px) + env(safe-area-inset-left, 0px));
		right: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.whatchat-floating-button {
		transition: none;
	}
}
