/* WhatsApp Butonu - floating button styles.
   Position, size and colors arrive as inline custom properties. */

.wab-btn {
	position: fixed;
	z-index: 99998;
	display: inline-flex;
	align-items: center;
	box-sizing: border-box;
	height: var(--wab-size, 56px);
	min-width: var(--wab-size, 56px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--wab-bg, #25d366);
	color: var(--wab-fg, #ffffff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wab-btn:hover,
.wab-btn:focus,
.wab-btn:active,
.wab-btn:visited {
	color: var(--wab-fg, #ffffff);
	text-decoration: none;
}

.wab-btn:hover,
.wab-btn:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.wab-btn:focus-visible {
	outline: 3px solid var(--wab-fg, #ffffff);
	outline-offset: 3px;
}

.wab-btn__icon {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--wab-size, 56px);
	height: var(--wab-size, 56px);
}

.wab-btn__icon svg {
	display: block;
	width: 56%;
	height: 56%;
	fill: currentColor;
}

.wab-btn__label {
	padding-right: 22px;
	white-space: nowrap;
}

/* Corners */

.wab-h-right {
	right: var(--wab-h, 20px);
}

.wab-h-left {
	left: var(--wab-h, 20px);
}

.wab-v-bottom {
	bottom: var(--wab-v, 20px);
}

.wab-v-top {
	top: var(--wab-v, 20px);
}

/* Keep a top-placed button clear of the WordPress admin bar. */

body.admin-bar .wab-v-top {
	top: calc(var(--wab-v, 20px) + 32px);
}

@media screen and (max-width: 782px) {

	body.admin-bar .wab-v-top {
		top: calc(var(--wab-v, 20px) + 46px);
	}
}

/* Device visibility */

@media (max-width: 767px) {

	.wab-hide-mobile {
		display: none !important;
	}
}

@media (min-width: 768px) {

	.wab-hide-desktop {
		display: none !important;
	}
}

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

	.wab-btn {
		transition: none;
	}

	.wab-btn:hover,
	.wab-btn:focus-visible {
		transform: none;
	}
}

@media print {

	.wab-btn {
		display: none !important;
	}
}
