.fmc-widget {
	--fmc-side-offset: 24px;
	--fmc-bottom-offset: 24px;
	--fmc-launcher-size: 56px;
	--fmc-icon-size: 52px;
	--fmc-gap: 10px;
	position: fixed;
	bottom: var(--fmc-bottom-offset);
	z-index: 999999;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--fmc-gap);
	box-sizing: border-box;
	pointer-events: none;
}

.fmc-widget--right {
	right: var(--fmc-side-offset);
}

.fmc-widget--left {
	left: var(--fmc-side-offset);
}

.fmc-methods {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--fmc-gap);
	margin: 0;
	padding: 12px;
	max-height: calc(100vh - var(--fmc-bottom-offset) - var(--fmc-launcher-size) - 32px);
	overflow: hidden;
	box-sizing: border-box;
	list-style: none;
	pointer-events: none;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.fmc-methods::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.fmc-method {
	width: var(--fmc-icon-size);
	height: var(--fmc-icon-size);
	margin: 0;
	padding: 0;
	opacity: 0;
	transform: translateY(18px) scale(.76);
	transition:
		opacity .24s ease,
		transform .32s cubic-bezier(.2, .8, .2, 1);
	transition-delay: calc((var(--fmc-index) * 28ms));
}

.fmc-widget.is-open .fmc-methods {
	overflow-y: auto;
	pointer-events: auto;
}

.fmc-widget.is-open .fmc-method {
	opacity: 1;
	transform: translateY(0) scale(1);
}

.fmc-method-link,
.fmc-launcher {
	display: grid;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}

.fmc-method-link {
	width: var(--fmc-icon-size);
	height: var(--fmc-icon-size);
	transition: transform .18s ease, box-shadow .18s ease;
}

.fmc-launcher {
	position: relative;
	width: var(--fmc-launcher-size);
	height: var(--fmc-launcher-size);
	cursor: pointer;
	pointer-events: auto;
	transition: transform .25s ease, box-shadow .18s ease;
}

/* Keep themes from turning the launcher into a padded rectangular button. */
button.fmc-launcher {
	-webkit-appearance: none;
	appearance: none;
	display: grid;
	width: var(--fmc-launcher-size);
	min-width: 0;
	height: var(--fmc-launcher-size);
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: transparent;
	background-image: none;
	color: inherit;
	font: inherit;
	line-height: 0;
	text-align: center;
	white-space: normal;
}

button.fmc-launcher:hover,
button.fmc-launcher:focus,
button.fmc-launcher:active {
	border: 0;
	background-color: transparent;
	background-image: none;
	color: inherit;
}

.fmc-widget.is-open .fmc-launcher {
	transform: rotate(8deg);
}

.fmc-method-link:hover,
.fmc-method-link:focus-visible,
.fmc-launcher:hover,
.fmc-launcher:focus-visible {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	outline: 3px solid rgba(34, 113, 177, .35);
	outline-offset: 3px;
}

.fmc-method-link:hover,
.fmc-method-link:focus-visible {
	transform: scale(1.08);
}

.fmc-method-link:hover {
	box-shadow: none;
}

.fmc-method-link img,
.fmc-launcher img {
	display: block;
	width: 100%;
	height: 100%;
	border-radius: inherit;
	object-fit: contain;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.fmc-method,
	.fmc-method-link,
	.fmc-launcher {
		transition-duration: .01ms;
		transition-delay: 0ms;
	}
}
