/* ━━━ Hiroba FAB ━━━ */
.oeh-fab {
	position: fixed;
	bottom: calc(env(safe-area-inset-bottom) + 30px);
	left: 30px;
	z-index: 9998;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: max-content;
	color: #fff;
	text-decoration: none;
	transition: transform .2s ease;
}

.oeh-fab.has-bubble-control {
	bottom: calc(env(safe-area-inset-bottom) + 92px);
}

.oeh-fab:hover {
	transform: translateY(-2px);
}

.oeh-fab:hover .oeh-fab__icon {
	animation-play-state: paused;
	transform: scale(1.05);
	filter: drop-shadow(0 8px 18px rgba(66,98,72,.22));
}

.oeh-fab:active .oeh-fab__icon {
	transform: scale(.95);
}

.oeh-fab.is-active .oeh-fab__icon {
	filter: drop-shadow(0 0 0 rgba(58,138,68,.25)) drop-shadow(0 4px 16px rgba(46,114,56,.22));
}

.oeh-fab__brand {
	display: inline-flex;
	align-items: center;
	pointer-events: none;
}

.oeh-fab__brand-text {
	display: block;
	white-space: nowrap;
	padding: 0;
	background: linear-gradient(135deg, #90caf9, #a5d6a7);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	-webkit-text-fill-color: transparent;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-shadow: none;
}

.oeh-fab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 12px;
	overflow: hidden;
	filter: drop-shadow(0 4px 14px rgba(66,98,72,.18));
	transition: transform .2s ease, filter .2s ease;
	animation: oeh-fab-attention 7s ease-in-out 2s infinite;
}

.oeh-fab__icon img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

@keyframes oeh-fab-attention {
	0%,
	78%,
	100% {
		transform: translateX(0) rotate(0);
	}

	81% {
		transform: translateX(-2px) rotate(-4deg);
	}

	84% {
		transform: translateX(2px) rotate(4deg);
	}

	87% {
		transform: translateX(-2px) rotate(-3deg);
	}

	90% {
		transform: translateX(2px) rotate(3deg);
	}

	93% {
		transform: translateX(0) rotate(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.oeh-fab,
	.oeh-fab__icon {
		animation: none;
		transition: none;
	}
}

@media (max-width: 600px) {
	.oeh-fab {
		bottom: calc(env(safe-area-inset-bottom) + 20px);
		left: 20px;
		gap: 5px;
	}

	.oeh-fab.has-bubble-control {
		bottom: calc(env(safe-area-inset-bottom) + 76px);
	}

	.oeh-fab__brand-text {
		font-size: 11px;
	}

	.oeh-fab__icon {
		width: 48px;
		height: 48px;
		border-radius: 10px;
	}

	.oeh-fab__icon img {
		width: 100%;
		height: 100%;
	}
}
