/* Floating WhatsApp button, always on the PHYSICAL bottom right in every language (1.2.0, same as 1.1.1).
   On RTL pages Astra's scroll-to-top sits bottom left. On left-to-right pages (English) Astra puts it bottom right,
   so it is moved to the physical left there and the two buttons never collide (see the html[dir="ltr"] rule below). */
.sg-wa-float {
	position: fixed;
	right: calc(20px + env(safe-area-inset-right, 0px));
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
	text-decoration: none;
}

.sg-wa-float:hover,
.sg-wa-float:visited,
.sg-wa-float:active {
	color: #fff;
	text-decoration: none;
}

.sg-wa-float:focus-visible {
	outline: 3px solid #1a1a1a;
	outline-offset: 3px;
	box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(0, 0, 0, 0.3);
}

.sg-wa-float svg {
	display: block;
	width: 32px;
	height: 32px;
}

@media (max-width: 600px) {
	.sg-wa-float {
		right: calc(16px + env(safe-area-inset-right, 0px));
		bottom: calc(16px + env(safe-area-inset-bottom, 0px));
		width: 52px;
		height: 52px;
	}
}

@media print {
	.sg-wa-float {
		display: none;
	}
}

/* Left-to-right pages: Astra's scroll-to-top button goes to the left side (the WhatsApp button keeps the right).
   Specificity beats Astra's .ast-scroll-to-top-right / -left rules without !important. */
html[dir="ltr"] #ast-scroll-top,
html[dir="ltr"] #ast-scroll-top.ast-scroll-to-top-right,
html[dir="ltr"] #ast-scroll-top.ast-scroll-to-top-left {
	right: auto;
	left: calc(30px + env(safe-area-inset-left, 0px));
}

@media (max-width: 600px) {
	html[dir="ltr"] #ast-scroll-top,
	html[dir="ltr"] #ast-scroll-top.ast-scroll-to-top-right,
	html[dir="ltr"] #ast-scroll-top.ast-scroll-to-top-left {
		left: calc(16px + env(safe-area-inset-left, 0px));
	}
}

/* Contact-box WhatsApp button: same family as the call buttons, with a green accent edge and a dark green icon
   (the text keeps the gram ink colour for contrast). Wrapper + five classes beat the theme's link rules without !important. */
.sg-gram .sg-contact__phones a.sg-btn.sg-btn--primary.sg-contact__call.sg-contact__wa {
	border-inline-start: 8px solid #25d366;
	text-decoration: none;
}

.sg-gram .sg-contact__phones a.sg-contact__wa .sg-contact__label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.sg-gram .sg-contact__phones a.sg-contact__wa .sg-contact__label svg {
	flex: none;
	color: #075e54;
}
