.gfs-btn {
	position: relative;
	display: inline-flex;
	align-items: stretch;
	width: 100%;
	max-width: max-content;
	min-height: 50px;
	box-sizing: border-box;
	border-radius: 11px;
	overflow: hidden;
	text-decoration: none;
	cursor: pointer;
	z-index: 0;

	/* Green fill via background-size, NOT the ::before width trick */
	background-repeat: no-repeat;
	background-position: right center;
	background-image: linear-gradient(#008a00, #008a00);
	background-size: 0% 100%;

	transition-property: background-size, color, border-color;
	transition-duration: 0.4s, 0.4s, 0.3s;
	transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease, ease;
	transition-delay: 0s, 0s, 0s;
}

/* Hover: exact spec requested */
.gfs-btn:hover {
	background-size: 100% 100% !important;
	color: #FFFFFF !important;
	transition-property: background-size, color !important;
	transition-duration: 0.4s, 0.4s !important;
	transition-timing-function: cubic-bezier(0.65, 0, 0.35, 1), ease !important;
	transition-delay: 0s, 0s !important;
}

.gfs-btn__label {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 15px 8px 24px;
	font-family: 'Outfit', sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 130%;
	letter-spacing: 0%;
	text-transform: uppercase;
	white-space: normal;
	overflow-wrap: break-word;
	word-break: break-word;
	color: inherit; /* inherits from .gfs-btn / .gfs-btn:hover */
}

.gfs-btn__arrow {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 50px;
	width: 50px;
	align-self: stretch;
	padding: 12px 16px;
	box-sizing: border-box;
	overflow: hidden; /* clips the outgoing arrow */
	border-top-right-radius: 10px;
	border-bottom-right-radius: 10px;
	transition: background 0.4s ease, border-color 0.4s ease;
}

.gfs-btn__arrow svg {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 22px;
	height: 15px;
	flex-shrink: 0;
}

/* ===== Keyframes ===== */

/* Primary arrow: rest position -> slides out to the right on hover */
@keyframes gfs-primary-exit {
	from {
		transform: translate(-50%, -50%) translateX(0);
		opacity: 1;
	}
	to {
		transform: translate(-50%, -50%) translateX(24px);
		opacity: 0;
	}
}

/* Primary arrow: returning to rest position when hover ends */
@keyframes gfs-primary-enter {
	from {
		transform: translate(-50%, -50%) translateX(24px);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%) translateX(0);
		opacity: 1;
	}
}

/* Secondary (green) arrow: comes IN from the LEFT on hover */
@keyframes gfs-secondary-enter {
	from {
		transform: translate(-50%, -50%) translateX(-24px);
		opacity: 0;
	}
	to {
		transform: translate(-50%, -50%) translateX(0);
		opacity: 1;
	}
}

/* Secondary (green) arrow: exits back to the LEFT when hover ends */
@keyframes gfs-secondary-exit {
	from {
		transform: translate(-50%, -50%) translateX(0);
		opacity: 1;
	}
	to {
		transform: translate(-50%, -50%) translateX(-24px);
		opacity: 0;
	}
}

/* ===== Rest state ===== */
.gfs-btn__arrow .gfs-icon-primary {
	animation: gfs-primary-enter 0.6s ease forwards;
}
.gfs-btn__arrow .gfs-icon-secondary {
	animation: gfs-secondary-exit 0.6s ease forwards;
}

/* ===== Hover state ===== */
.gfs-btn:hover .gfs-btn__arrow .gfs-icon-primary {
	animation: gfs-primary-exit 0.6s ease forwards;
}
.gfs-btn:hover .gfs-btn__arrow .gfs-icon-secondary {
	animation: gfs-secondary-enter 0.6s ease forwards;
}
/* ============ DARK VARIANT ============ */
.gfs-btn--dark {
	background-color: transparent; /* NOTE: background-color, not background shorthand */
	border: 1px solid #ffffff;
	color: #ffffff;
}
.gfs-btn--dark .gfs-btn__arrow {
	background: #008a00;
	border-left: 1px solid #ffffff;
}
.gfs-btn--dark:hover {
	border-color: #ffffff;
}
.gfs-btn--dark:hover .gfs-btn__arrow {
	background: #ffffff;
}

/* ============ WHITE VARIANT ============ */
.gfs-btn--white {
	background-color: #ffffff; /* NOTE: background-color, not background shorthand */
	border: 1px solid #000000;
	color: #000000;
}
.gfs-btn--white .gfs-btn__arrow {
	background: #ffffff;
	border-left: 1px solid #000000;
}
.gfs-btn--white:hover {
	border-color: #008a00;
}
.gfs-btn--white:hover .gfs-btn__arrow {
	background: transparent;
	border-left-color: #ffffff;
}