:root {
	--monch-bubble-size: 54px;
	--monch-bubble-gap: 10px;
	--monch-bubble-bottom: calc(28px + env(safe-area-inset-bottom));
	--monch-bubble-right: 98px;
	--monch-bubble-accent: #10b7b0;
	--monch-bubble-call: #f7fbfb;
	--monch-bubble-call-icon: #0b1516;
	--monch-bubble-shadow: 1px 6px 24px rgba(0, 0, 0, 0.28);
}

.monch-mobile-actions {
	position: fixed;
	right: var(--monch-bubble-right);
	bottom: var(--monch-bubble-bottom);
	z-index: 8999;
	display: flex;
	flex-direction: row-reverse;
	gap: var(--monch-bubble-gap);
	font-family: -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen-sans, ubuntu, cantarell, "Helvetica Neue", sans-serif;
	pointer-events: none;
}

.monch-mobile-actions__item {
	position: relative;
	display: inline-grid;
	width: var(--monch-bubble-size);
	height: var(--monch-bubble-size);
	place-items: center;
	border: 0;
	border-radius: 50%;
	color: #fff;
	box-shadow: var(--monch-bubble-shadow);
	text-decoration: none;
	pointer-events: auto;
	transition: transform 160ms ease, filter 160ms ease;
	-webkit-tap-highlight-color: transparent;
}

.monch-mobile-actions__item--phone {
	background: var(--monch-bubble-call);
	color: var(--monch-bubble-call-icon);
}

.monch-mobile-actions__item--save {
	background: var(--monch-bubble-accent);
	color: #031615;
}

.monch-mobile-actions__item:active {
	transform: translateY(1px) scale(0.98);
}

.monch-mobile-actions__item:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.9);
	outline-offset: 3px;
}

.monch-mobile-actions__icon {
	display: inline-grid;
	width: 24px;
	height: 24px;
	place-items: center;
}

.monch-mobile-actions__icon svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.monch-mobile-actions__tooltip {
	position: absolute;
	right: 50%;
	bottom: calc(100% + 12px);
	display: block;
	max-width: min(170px, calc(100vw - 24px));
	height: 32px;
	padding: 0 14px;
	border-radius: 16px;
	background: #fff;
	color: rgba(0, 0, 0, 0.82);
	font-size: 13px;
	font-weight: 600;
	line-height: 32px;
	text-align: center;
	white-space: nowrap;
	opacity: 0;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.38));
	pointer-events: none;
	transform: translateX(50%) translateY(5px) scale(0.96);
	transition: opacity 180ms ease, transform 180ms ease;
}

.monch-mobile-actions__tooltip::after {
	position: absolute;
	right: 50%;
	bottom: -6px;
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-top-color: #fff;
	border-bottom: 0;
	content: "";
	transform: translateX(50%);
}

.monch-mobile-actions__item:hover .monch-mobile-actions__tooltip,
.monch-mobile-actions__item:focus-visible .monch-mobile-actions__tooltip {
	opacity: 1;
	transform: translateX(50%) translateY(0) scale(1);
}

.joinchat .joinchat__tooltip {
	top: auto;
	right: 50%;
	bottom: calc(100% + 12px);
	max-width: min(170px, calc(100vw - 24px));
	height: 32px;
	padding: 0 14px;
	border-radius: 16px;
	background: #fff;
	color: rgba(0, 0, 0, 0.82);
	font-size: 13px;
	font-weight: 600;
	line-height: 32px;
	text-align: center;
	white-space: nowrap;
	opacity: 0;
	filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.38));
	pointer-events: none;
	transform: translateX(50%) translateY(5px) scale(0.96);
	transition: opacity 180ms ease, transform 180ms ease;
}

.joinchat .joinchat__tooltip::after {
	top: auto;
	right: 50%;
	bottom: -6px;
	border: 7px solid transparent;
	border-top-color: #fff;
	border-bottom: 0;
	border-left-color: transparent;
	content: "";
	transform: translateX(50%);
}

.joinchat .joinchat__tooltip div {
	max-width: 100%;
}

.joinchat .joinchat__button:hover .joinchat__tooltip,
.joinchat .joinchat__button:focus .joinchat__tooltip,
.joinchat .joinchat__button:focus-visible .joinchat__tooltip {
	opacity: 1;
	animation: none;
	transform: translateX(50%) translateY(0) scale(1);
}

.joinchat--chatbox ~ .monch-mobile-actions,
.joinchat[hidden] ~ .monch-mobile-actions {
	display: none;
}

@media (hover: hover) {
	.monch-mobile-actions__item:hover {
		filter: brightness(1.06);
		transform: translateY(-1px);
	}
}

@media (max-width: 480px), (orientation: landscape) and (max-height: 480px) {
	:root {
		--monch-bubble-size: 50px;
		--monch-bubble-gap: 8px;
		--monch-bubble-bottom: calc(14px + env(safe-area-inset-bottom));
		--monch-bubble-right: 82px;
	}

	.monch-mobile-actions__icon {
		width: 22px;
		height: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.monch-mobile-actions__item,
	.monch-mobile-actions__tooltip,
	.joinchat .joinchat__tooltip {
		transition: none;
	}
}
