/*
  Tooltip styles adapted from popper.js
  https://popper.js.org/tooltip-examples.html
*/

.mmpro-popper,
.mmpro-tooltip {
	position: absolute;
	z-index: 9999;
	background: #FFC107;
	color: black;
	width: 150px;
	border-radius: 3px;
	box-shadow: 0 0 2px rgba(0,0,0,0.5);
	padding: 10px;
	text-align: left;
	font-size: 14px;
}

.mmpro-tooltip--dark {
	background: #1E252B;
	color: #FFFFFF;
	max-width: 200px;
	width: auto;
	font-size: .8rem;
	padding: .5em 1em;
}

.mmpro-popper .mmpro-popper__arrow,
.mmpro-tooltip .mmpro-tooltip-arrow {
	width: 0;
	height: 0;
	border-style: solid;
	position: absolute;
	margin: 5px;
}

.mmpro-tooltip .mmpro-tooltip-arrow,
.mmpro-popper .mmpro-popper__arrow {
	border-color: #FFC107;
}

.mmpro-tooltip--dark .mmpro-tooltip-arrow {
	border-color: #1E252B;
}

.mmpro-popper[x-placement^="top"],
.mmpro-tooltip[x-placement^="top"] {
	margin-bottom: 5px;
}

.mmpro-popper[x-placement^="top"] .mmpro-popper__arrow,
.mmpro-tooltip[x-placement^="top"] .mmpro-tooltip-arrow {
	border-width: 5px 5px 0 5px;
	border-left-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	bottom: -5px;
	left: calc(50% - 5px);
	margin-top: 0;
	margin-bottom: 0;
}

.mmpro-popper[x-placement^="bottom"],
.mmpro-tooltip[x-placement^="bottom"] {
	margin-top: 5px;
}

.mmpro-tooltip[x-placement^="bottom"] .mmpro-tooltip-arrow,
.mmpro-popper[x-placement^="bottom"] .mmpro-popper__arrow {
	border-width: 0 5px 5px 5px;
	border-left-color: transparent;
	border-right-color: transparent;
	border-top-color: transparent;
	top: -5px;
	left: calc(50% - 5px);
	margin-top: 0;
	margin-bottom: 0;
}

.mmpro-tooltip[x-placement^="right"],
.mmpro-popper[x-placement^="right"] {
	margin-left: 5px;
}

.mmpro-popper[x-placement^="right"] .mmpro-popper__arrow,
.mmpro-tooltip[x-placement^="right"] .mmpro-tooltip-arrow {
	border-width: 5px 5px 5px 0;
	border-left-color: transparent;
	border-top-color: transparent;
	border-bottom-color: transparent;
	left: -5px;
	top: calc(50% - 5px);
	margin-left: 0;
	margin-right: 0;
}

.mmpro-tooltip[x-placement^="left"],
.mmpro-popper[x-placement^="left"] {
	margin-right: 5px;
}

.mmpro-popper[x-placement^="left"] .mmpro-popper__arrow,
.mmpro-tooltip[x-placement^="left"] .mmpro-tooltip-arrow {
	border-width: 5px 0 5px 5px;
	border-top-color: transparent;
	border-right-color: transparent;
	border-bottom-color: transparent;
	right: -5px;
	top: calc(50% - 5px);
	margin-left: 0;
	margin-right: 0;
}