.amec-floating-social {
	--amec-floating-dark: #151719;
	--amec-floating-accent: #c83c00;
	position: fixed;
	left: max(1.5rem, env(safe-area-inset-left, 0px));
	bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
	z-index: 1200;
	display: flex;
	align-items: flex-end;
	pointer-events: none;
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.amec-nav-open .amec-floating-social {
	opacity: 0;
	visibility: hidden;
}

.amec-floating-social__toggle,
.amec-floating-social__item {
	pointer-events: auto;
}

.amec-floating-social__toggle {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	min-width: 54px;
	min-height: 54px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--amec-floating-dark) !important;
	color: #fff !important;
	box-shadow: 0 18px 38px rgba(21, 23, 25, .22), 0 4px 12px rgba(21, 23, 25, .14);
	cursor: pointer;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	line-height: 1;
	font-size: 0;
	touch-action: manipulation;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.amec-floating-social__toggle:hover,
.amec-floating-social__toggle:active {
	transform: translateY(-1px) scale(.98);
	box-shadow: 0 14px 30px rgba(21, 23, 25, .18), 0 3px 10px rgba(21, 23, 25, .12);
}

.amec-floating-social__toggle:focus-visible,
.amec-floating-social__item:focus-visible {
	outline: 3px solid var(--amec-floating-accent);
	outline-offset: 4px;
}

.amec-floating-social__toggle-icon,
.amec-floating-social__toggle-icon::before,
.amec-floating-social__toggle-icon::after {
	display: block;
	width: 22px;
	height: 3px;
	border-radius: 999px;
	background: currentColor;
}

.amec-floating-social__toggle-icon {
	position: relative;
}

.amec-floating-social__toggle-icon::before,
.amec-floating-social__toggle-icon::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	transition: transform 200ms ease;
}

.amec-floating-social__toggle-icon::before {
	transform: rotate(90deg);
}

.amec-floating-social.is-open .amec-floating-social__toggle-icon {
	background: transparent;
}

.amec-floating-social.is-open .amec-floating-social__toggle-icon::before {
	transform: rotate(45deg);
}

.amec-floating-social.is-open .amec-floating-social__toggle-icon::after {
	transform: rotate(-45deg);
}

.amec-floating-social__panel {
	position: absolute;
	left: 0;
	bottom: 0;
	min-width: 54px;
	pointer-events: none;
}

.amec-floating-social__panel[hidden] {
	display: none;
}

.amec-floating-social__label {
	position: absolute;
	left: 0;
	bottom: calc(100% + 4.9rem);
	display: flex;
	align-items: center;
	width: max-content;
	min-height: 28px;
	padding: .3rem .78rem;
	border-radius: 999px;
	background: var(--amec-floating-dark);
	color: #fff;
	font-size: .68rem;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: .22em;
	text-transform: uppercase;
	box-shadow: 0 12px 26px rgba(21, 23, 25, .12);
	opacity: 0;
	transform: translate3d(0, 10px, 0);
	transition: opacity 220ms ease, transform 220ms ease;
	white-space: nowrap;
}

.amec-floating-social__items {
	position: relative;
	width: 54px;
	height: 54px;
}

.amec-floating-social__item {
	position: absolute;
	left: 4px;
	bottom: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	color: var(--amec-floating-dark) !important;
	text-decoration: none !important;
	box-shadow: 0 14px 30px rgba(21, 23, 25, .14);
	opacity: 0;
	pointer-events: none;
	transform: translate3d(0, 0, 0) scale(.72);
	transform-origin: bottom left;
	transition: opacity 220ms ease, transform 220ms ease, background-color 180ms ease, color 180ms ease;
}

.amec-floating-social__item:hover,
.amec-floating-social__item:focus-visible {
	background: var(--amec-floating-accent);
	color: #fff !important;
}

.amec-floating-social__item svg {
	display: block;
	width: 19px;
	height: 19px;
	fill: currentColor;
}

.amec-floating-social.is-open .amec-floating-social__panel {
	pointer-events: auto;
}

.amec-floating-social.is-open .amec-floating-social__label,
.amec-floating-social.is-open .amec-floating-social__item {
	opacity: 1;
}

.amec-floating-social.is-open .amec-floating-social__label {
	transform: translate3d(0, 0, 0);
}

.amec-floating-social.is-open .amec-floating-social__item {
	pointer-events: auto;
}

.amec-floating-social.is-open .amec-floating-social__item[data-item-index="0"] {
	transform: translate3d(0, -72px, 0) scale(1);
}

.amec-floating-social.is-open .amec-floating-social__item[data-item-index="1"] {
	transform: translate3d(52px, -64px, 0) scale(1);
}

.amec-floating-social.is-open .amec-floating-social__item[data-item-index="2"] {
	transform: translate3d(96px, -36px, 0) scale(1);
}

.amec-floating-social.is-open .amec-floating-social__item[data-item-index="3"] {
	transform: translate3d(124px, 8px, 0) scale(1);
}

@media (max-width: 640px) {
	.amec-floating-social {
		left: max(1rem, env(safe-area-inset-left, 0px));
		bottom: max(1rem, env(safe-area-inset-bottom, 0px));
	}

	.amec-floating-social__toggle {
		width: 50px;
		height: 50px;
		min-width: 50px;
		min-height: 50px;
	}

	.amec-floating-social__item {
		width: 44px;
		height: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.amec-floating-social__toggle,
	.amec-floating-social__toggle-icon::before,
	.amec-floating-social__toggle-icon::after,
	.amec-floating-social__label,
	.amec-floating-social__item {
		transition: none;
	}
}
