/**
 * Arokora WhatsApp Button
 *
 * Farben und Abstände kommen als CSS-Variablen aus den Einstellungen.
 */

.awa-fab {
	--awa-bg: #25d366;
	--awa-icon: #ffffff;
	--awa-x: 20px;
	--awa-y: 20px;

	position: fixed;
	bottom: var(--awa-y);
	z-index: 9990;

	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	width: 58px;
	height: 58px;
	padding: 0;

	border-radius: 999px;
	background: var(--awa-bg);
	color: var(--awa-icon);

	box-shadow: 0 6px 20px -6px rgba( 0, 0, 0, 0.45 );
	text-decoration: none;

	transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.awa-fab:hover,
.awa-fab:focus {
	color: var(--awa-icon);
	transform: translateY(-2px);
	box-shadow: 0 10px 26px -8px rgba( 0, 0, 0, 0.5 );
}

.awa-fab:focus-visible {
	outline: 3px solid var(--awa-bg);
	outline-offset: 3px;
}

.awa-fab .awa-icon {
	display: inline-flex;
	flex: 0 0 auto;
	line-height: 0;
}

.awa-fab svg {
	display: block;
	width: 28px;
	height: 28px;
}

/* Variante mit Beschriftung: aus dem Kreis wird eine Pille. */
.awa-fab--label {
	width: auto;
	height: 54px;
	padding: 0 22px 0 18px;
}

.awa-fab .awa-text {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	white-space: nowrap;
}

/* Auf schmalen Bildschirmen nur das Symbol – eine Pille verdeckt sonst
   zu viel vom Inhalt. */
@media (max-width: 600px) {

	.awa-fab--label {
		width: 58px;
		padding: 0;
	}

	.awa-fab--label .awa-text {
		display: none;
	}
}

/* Nur auf Mobilgeräten anzeigen. */
@media (min-width: 783px) {

	.awa-fab--mobil {
		display: none;
	}
}

/* Erst nach dem Scrollen einblenden. */
.awa-fab--versteckt {
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	pointer-events: none;
}

.awa-fab--versteckt.is-sichtbar {
	opacity: 1;
	visibility: visible;
	transform: none;
	pointer-events: auto;
}

/* Button im Seiteninhalt über den Shortcode. */
.awa-inline {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border-radius: 999px;
	background: var(--awa-bg, #25d366);
	color: var(--awa-icon, #ffffff);
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}

.awa-inline:hover,
.awa-inline:focus {
	color: var(--awa-icon, #ffffff);
	opacity: 0.9;
}

.awa-inline svg {
	width: 22px;
	height: 22px;
}

@media (prefers-reduced-motion: reduce) {

	.awa-fab {
		transition-duration: 0.01ms;
	}

	.awa-fab:hover,
	.awa-fab:focus {
		transform: none;
	}
}
