/* Button */
.fba-button-wrap { display: flex; }
.fba-button-wrap--start  { justify-content: flex-start; }
.fba-button-wrap--center { justify-content: center; }
.fba-button-wrap--end    { justify-content: flex-end; }

.fba-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fba-space-2);
	border: 1px solid transparent;
	border-radius: var(--fba-btn-radius, var(--fba-radius-sm));
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	--fba-icon-size: 1.15em;
	transition:
		background-color var(--fba-motion-fast) var(--fba-ease),
		color var(--fba-motion-fast) var(--fba-ease),
		border-color var(--fba-motion-fast) var(--fba-ease),
		transform var(--fba-motion-fast) var(--fba-ease);
}

/* A "button" with no address is a span. It must not look clickable. */
span.fba-button { cursor: default; opacity: 0.75; }

.fba-button--sm { padding: 8px 14px;  font-size: 0.875rem; }
.fba-button--md { padding: 11px 20px; font-size: 1rem; }
.fba-button--lg { padding: 15px 28px; font-size: 1.0625rem; }

.fba-button.is-full { width: 100%; }

.fba-button--solid {
	background: var(--fba-btn-bg, var(--fba-color-accent));
	color: var(--fba-btn-color, var(--fba-color-accent-contrast));
}

.fba-button--outline {
	background: transparent;
	color: var(--fba-btn-color, var(--fba-color-accent));
	border-color: var(--fba-btn-bg, var(--fba-color-accent));
}

.fba-button--soft {
	background: var(--fba-btn-bg, var(--fba-color-accent-soft));
	color: var(--fba-btn-color, var(--fba-color-accent));
}

.fba-button--link {
	background: transparent;
	padding-inline: 0;
	color: var(--fba-btn-color, var(--fba-color-accent));
}

a.fba-button:hover {
	background: var(--fba-btn-bg-hover, var(--fba-color-accent));
	color: var(--fba-btn-color-hover, var(--fba-color-accent-contrast));
	border-color: var(--fba-btn-bg-hover, var(--fba-color-accent));
}

.fba-button--link:hover { background: transparent; text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
	a.fba-button:active { transform: translateY(1px); }
	.fba-button.has-icon-end:hover .fba-icon { transform: translateX(2px); }
	.fba-button .fba-icon { transition: transform var(--fba-motion-fast) var(--fba-ease); }
}

[dir="rtl"] .fba-button .fba-icon { transform: scaleX(-1); }
