/**
 * Sparkton Animated Action Button.
 * All selectors are widget-scoped to avoid Astra, WooCommerce, and theme button conflicts.
 */

.elementor-widget-sparkton_animated_action_button .sparkton-aab-container {
	display: flex;
	width: 100%;
	justify-content: flex-start;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button {
	--sparkton-aab-duration: 300ms;
	--sparkton-aab-icon-travel: 1.2em;
	--sparkton-aab-active-scale: 0.96;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.3em;
	width: auto;
	max-width: 100%;
	padding: 0.7em 1em 0.7em 0.9em;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: #4169e1;
	color: #fff;
	font-family: inherit;
	font-size: 20px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	text-decoration-line: none !important;
	text-decoration-thickness: 0 !important;
	border-bottom-style: none;
	background-image: none;
	cursor: pointer;
	isolation: isolate;
	-webkit-tap-highlight-color: transparent;
	transition:
		transform var(--sparkton-aab-duration) cubic-bezier(0.2, 0.8, 0.2, 1),
		background-color var(--sparkton-aab-duration) ease,
		border-color var(--sparkton-aab-duration) ease,
		box-shadow var(--sparkton-aab-duration) ease,
		color var(--sparkton-aab-duration) ease;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:hover,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:focus,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:active,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:visited {
	text-decoration: none !important;
	text-decoration-line: none !important;
	border-bottom-style: none;
	background-image: none;
}

/* Prevent Astra/Elementor global link decoration from drawing a line under button text. */
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button *,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button *::before,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button *::after {
	text-decoration: none !important;
	text-decoration-line: none !important;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:focus-visible {
	outline: 3px solid #111827;
	outline-offset: 3px;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:active {
	transform: scale(var(--sparkton-aab-active-scale));
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-lift:hover,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-lift:focus-visible {
	transform: translateY(-3px);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-scale:hover,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-scale:focus-visible {
	transform: scale(1.035);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-none:hover,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-button.sparkton-aab-motion-none:focus-visible {
	transform: none;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-text {
	position: relative;
	display: block;
	min-width: 0;
	color: #fff;
	white-space: nowrap;
	transition:
		transform var(--sparkton-aab-duration) cubic-bezier(0.2, 0.8, 0.2, 1),
		opacity var(--sparkton-aab-duration) ease,
		color var(--sparkton-aab-duration) ease;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-shell {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	transform-origin: center;
	transition:
		transform var(--sparkton-aab-duration) cubic-bezier(0.2, 0.8, 0.2, 1),
		background-color var(--sparkton-aab-duration) ease;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	color: #fff;
	transform-origin: center;
	transition:
		transform var(--sparkton-aab-duration) cubic-bezier(0.2, 0.8, 0.2, 1),
		color var(--sparkton-aab-duration) ease;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon i,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon svg {
	display: block;
	width: 1em;
	height: 1em;
	line-height: 1;
	fill: currentColor;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after {
	flex-direction: row;
}

/* Reference-style flying icon. */
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-fly:hover .sparkton-aab-icon-shell,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-fly:focus-visible .sparkton-aab-icon-shell {
	animation: sparkton-aab-float 0.6s ease-in-out infinite alternate;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-fly:hover .sparkton-aab-icon,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-fly:focus-visible .sparkton-aab-icon {
	transform: translateX(var(--sparkton-aab-icon-travel)) rotate(45deg) scale(1.1);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-icon-animation-fly:hover .sparkton-aab-icon,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-icon-animation-fly:focus-visible .sparkton-aab-icon {
	transform: translateX(calc(var(--sparkton-aab-icon-travel) * -1)) rotate(-45deg) scale(1.1);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-slide:hover .sparkton-aab-icon,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-slide:focus-visible .sparkton-aab-icon {
	transform: translateX(var(--sparkton-aab-icon-travel));
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-icon-animation-slide:hover .sparkton-aab-icon,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-icon-animation-slide:focus-visible .sparkton-aab-icon {
	transform: translateX(calc(var(--sparkton-aab-icon-travel) * -1));
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-rotate:hover .sparkton-aab-icon,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-rotate:focus-visible .sparkton-aab-icon {
	transform: rotate(360deg) scale(1.08);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-bounce:hover .sparkton-aab-icon-shell,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-animation-bounce:focus-visible .sparkton-aab-icon-shell {
	animation: sparkton-aab-bounce 0.7s ease-in-out infinite alternate;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-text-animation-slide-away:hover .sparkton-aab-text,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-text-animation-slide-away:focus-visible .sparkton-aab-text {
	transform: translateX(5em);
	opacity: 0;
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-text-animation-slide-away:hover .sparkton-aab-text,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-text-animation-slide-away:focus-visible .sparkton-aab-text {
	transform: translateX(-5em);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-text-animation-shift:hover .sparkton-aab-text,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-text-animation-shift:focus-visible .sparkton-aab-text {
	transform: translateX(0.35em);
}

.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-text-animation-shift:hover .sparkton-aab-text,
.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-after.sparkton-aab-text-animation-shift:focus-visible .sparkton-aab-text {
	transform: translateX(-0.35em);
}

@keyframes sparkton-aab-float {
	from { transform: translateY(0.1em); }
	to { transform: translateY(-0.1em); }
}

@keyframes sparkton-aab-bounce {
	from { transform: translateY(0); }
	to { transform: translateY(-0.3em); }
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-button,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-text,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon-shell,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-icon {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}

	.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:hover .sparkton-aab-text,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:focus-visible .sparkton-aab-text,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:hover .sparkton-aab-icon,
	.elementor-widget-sparkton_animated_action_button .sparkton-aab-button:focus-visible .sparkton-aab-icon {
		transform: none !important;
		opacity: 1 !important;
	}
}
