.atfa-floating-actions {
	position: fixed;
	top: 56%;
	right: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transform: translateY(-50%);
	pointer-events: none;
}

.atfa-floating-action {
	--atfa-visible-width: 46px;
	display: inline-flex;
	align-items: center;
	width: 132px;
	min-height: 46px;
	overflow: hidden;
	color: #fff;
	background: #780080;
	border-radius: 999px 0 0 999px;
	box-shadow: 0 10px 24px rgba(44, 0, 48, .24);
	text-decoration: none;
	transform: translateX(calc(100% - var(--atfa-visible-width)));
	transition: transform 300ms cubic-bezier(.2, .8, .2, 1), box-shadow 300ms ease, background-color 300ms ease;
	pointer-events: auto;
	will-change: transform;
}

.atfa-floating-action:hover,
.atfa-floating-action:focus-visible {
	color: #fff;
	background: #8a0793;
	box-shadow: 0 14px 28px rgba(44, 0, 48, .32);
	text-decoration: none;
	transform: translateX(0);
}

.atfa-floating-action__icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 999px 0 0 999px;
	background: transparent;
	color: #fff;
}

.atfa-floating-action__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 21px;
	height: 21px;
	color: #fff;
	line-height: 1;
}

.atfa-floating-action__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 72px;
	padding: 0 16px 0 10px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
}

@media (max-width: 767px) {
	.atfa-floating-actions {
		top: auto;
		right: 10px;
		bottom: max(82px, env(safe-area-inset-bottom));
		gap: 9px;
		transform: none;
	}

	.atfa-floating-action {
		width: 44px;
		min-height: 44px;
		border-radius: 999px;
		transform: none;
		box-shadow: 0 8px 20px rgba(44, 0, 48, .26);
	}

	.atfa-floating-action__icon-wrap {
		flex-basis: 44px;
		width: 44px;
		height: 44px;
		border-radius: 999px;
	}

	.atfa-floating-action__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}
}

@media (min-width: 768px) and (max-width: 1024px), (hover: none) and (pointer: coarse) {
	.atfa-floating-action {
		transform: none;
	}

	.atfa-floating-action__label {
		padding-right: 14px;
	}
}

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

.atfa-floating-action__icon svg,
.atfa-floating-action__svg {
	display: block;
	width: 21px;
	height: 21px;
	fill: #fff;
	color: #fff;
}

.atfa-floating-action__icon svg *,
.atfa-floating-action__svg * {
	fill: #fff !important;
	stroke: #fff !important;
}

/* ==========================================================================
   Hover, reworked
   The pill slid out in one flat 300ms move and the label simply arrived with
   it, clipped by `overflow: hidden` until the travel finished. The motion now
   has three overlapping parts — the pill eases out with a little overshoot,
   the label follows a beat behind, and the icon turns into the movement — and
   the shadow deepens and lifts with it. Colour is untouched: both actions stay
   the magazine's purple.
   ========================================================================== */

.atfa-floating-action {
	/* A touch of overshoot at the end of the travel, so it lands rather than
	   stops. The shadow keeps a shorter, flatter curve — a spring on a shadow
	   reads as a wobble. */
	transition:
		transform 460ms cubic-bezier(.22, .96, .28, 1.08),
		box-shadow 340ms cubic-bezier(.2, .8, .2, 1),
		background-color 320ms ease;
}

.atfa-floating-action:hover,
.atfa-floating-action:focus-visible {
	/* Lifted and softened rather than simply darker: a wider, lower shadow
	   reads as the tab coming off the edge of the page. */
	box-shadow: 0 18px 38px -10px rgba(44, 0, 48, .46), 0 4px 10px rgba(44, 0, 48, .18);
}

/* The label comes in behind the pill rather than riding out with it. */
.atfa-floating-action__label {
	opacity: 0;
	transform: translateX(8px);
	transition: opacity 240ms ease, transform 380ms cubic-bezier(.2, .8, .2, 1);
}

.atfa-floating-action:hover .atfa-floating-action__label,
.atfa-floating-action:focus-visible .atfa-floating-action__label {
	opacity: 1;
	transform: none;
	transition-delay: 110ms;
}

/* The icon turns into the movement instead of being carried along by it. */
.atfa-floating-action__icon {
	transition: transform 460ms cubic-bezier(.22, .96, .28, 1.08);
}

.atfa-floating-action:hover .atfa-floating-action__icon,
.atfa-floating-action:focus-visible .atfa-floating-action__icon {
	transform: scale(1.14) rotate(-8deg);
}

/* The icon keeps its own disc so the pill does not read as one flat slab once
   it is open. */
.atfa-floating-action__icon-wrap {
	transition: background-color 320ms ease;
}

.atfa-floating-action:hover .atfa-floating-action__icon-wrap,
.atfa-floating-action:focus-visible .atfa-floating-action__icon-wrap {
	background: rgba(255, 255, 255, .14);
}

@media (prefers-reduced-motion: reduce) {
	.atfa-floating-action,
	.atfa-floating-action__label,
	.atfa-floating-action__icon,
	.atfa-floating-action__icon-wrap { transition: none; }

	.atfa-floating-action__label { opacity: 1; transform: none; }
	.atfa-floating-action:hover .atfa-floating-action__icon { transform: none; }
}
