/* Tooltips */

span.tooltip {
    position: absolute;
    display: block;
    font-size: 12px;
    font-weight: normal;
    color: #fff;
    background-color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 8px 12px;
    pointer-events: none;
    /* Default is top */
    left: 50%;
    right: auto;
    top: -40px;
    transform: translateX(-50%);
    box-shadow: 0px 5px 4px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

span.tooltip::after {
    content: "";
    display: block;
    position: absolute;
    width: 12px;
    height: 12px;
    top: calc(100% - 8px);
    left: 50%;
    border-radius: 3px;
    transform: translateX(-50%) rotate(45deg);
    background-color: #000;
    z-index: -1;
}

.tooltip.tooltip--top {
    left: 50%;
    right: auto;
    top: -90%;
    bottom: auto;
    transform: translateX(-50%);
}

.tooltip.tooltip--bottom {
    left: 50%;
    right: auto;
    bottom: -90%;
    top: auto;
    transform: translateX(-50%);
}

.tooltip.tooltip--left {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    left: -100%;
    right: auto;
}

.tooltip.tooltip--right {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    right: -100%;
    left: auto;
}