.ap_popover {
	position: relative;
	display: inline-block;
}

.ap_popover .ap_popovertext {
	visibility: hidden;
	position: absolute;
	min-width: 120px;
	background-color: #555;
	color: #fff;
	text-align: center;
	padding: 10px 5px;
	border-radius: 6px;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.3s;
}

.ap_popover:hover .ap_popovertext {
	visibility: visible;
	opacity: 1;
	font-size: 12px;
	font-weight: normal;
}

.ap_popover-right {
	top: -5px;
	left: 125%;
}

.ap_popover-right::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 100%;
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent #555 transparent transparent;
}

.ap_popover-bottom {
	top: 125%;
	left: 50%;
	margin-left: -60px;
}

.ap_popover-bottom::after {
	content: "";
	position: absolute;
	bottom: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent #555 transparent;
}

.ap_popover-top {
	bottom: 125%;
	left: 50%;
	margin-left: -60px;
}

.ap_popover-top::after {
	content: "";
	position: absolute;
	top: 100%;
	left: 50%;
	margin-left: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: #555 transparent transparent transparent;
}

.ap_popover-left {
	top: -5px;
	bottom: auto;
	right: 128%;
}

.ap_popover-left::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 100%;
	margin-top: -5px;
	border-width: 5px;
	border-style: solid;
	border-color: transparent transparent transparent #555;
}