/**
 * WP Tutorials Floating Button and Popup (WPTFLP)
 *
 * https://wp-tutorials.tech/add-functionality/floating-button-tutorial-for-wordpress/
 *
 */
.wptflp-floating-button {
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	background-color: green;
	position: fixed;
	right: 1.0rem;
	bottom: 1.5rem;
	z-index: 2010;
	font-size: 20pt;
	border: 2px solid black;
	box-shadow: 0 0 0.5em #0002;
	background-image: linear-gradient(to bottom right, #fff8, transparent 50%, #0004);
	cursor: pointer;
	transition: 0.3s filter;
}

.wptflp-floating-button:hover {
	filter: brightness(1.2);
}

.wptflp-floating-button>i {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	color: white;
}

.wptflp-floating-panel {
	width: 20em;
	background-color: green;
	color: white;
	position: fixed;
	right: 3.5rem;
	bottom: 2.5rem;
	z-index: 2000;
	transition: 0.5s opacity, 0.5s scale;
	transform-origin: bottom right;
	border: 2px solid #0004;
	border-radius: 0.5em;
	overflow: hidden;
	box-shadow: 0 0 1em #0004;
}

/* The popup panel when it's hidden */
.wptflp-floating-panel:not(.show-popup) {
	opacity: 0.0;
	scale: 0.0;
}

/* The popup panel when it's visible */
.wptflp-floating-panel.show-popup {
	opacity: 1.0;
	scale: 1.0;
}

/**
 * The popup panel contents.
 */
.wptflp-floating-panel .panel-title {
	padding: 0.5rem;
	background-color: #fff2;
	font-weight: bold;
	text-align: center;
	margin-bottom: 1em;
}

.wptflp-floating-panel p {
	margin: 0 1em 1em 1em;
}