/**
 * Fixed WhatsApp icon.
 */

.olima-messenger {
	position: fixed;
	z-index: 900;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: var(--olima-messenger-background, #25d366);
	color: var(--olima-messenger-icon, #fff);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
	text-decoration: none;
	line-height: 0;
}

.olima-messenger--right {
	right: calc(20px + env(safe-area-inset-right, 0px));
}

.olima-messenger--left {
	left: calc(20px + env(safe-area-inset-left, 0px));
}

.olima-messenger:hover,
.olima-messenger:focus {
	color: var(--olima-messenger-icon, #fff);
	filter: brightness(0.92);
}

.olima-messenger:focus {
	outline: 2px solid var(--wp--preset--color--contrast, #1d1d1b);
	outline-offset: 3px;
}

.olima-messenger svg {
	display: block;
	width: 28px;
	height: 28px;
}

.olima-messenger .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.olima-messenger--preview {
	position: static;
	right: auto;
	left: auto;
	bottom: auto;
	filter: none;
}

@media print {
	.olima-messenger {
		display: none;
	}
}
