.tooltip {
    background-color: #4a4a4a;
    border-radius: 3px;
    color: #fff;
    display: block;
    filter: alpha(opacity=0);
    font-family: Rubik, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 1px;
    line-break: auto;
    line-height: 1.43;
    max-width: 200px;
    opacity: 1;
    padding: 8px;
    position: absolute;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    white-space: normal;
    word-break: normal;
    word-spacing: normal;
    word-wrap: normal;
    z-index: 1070;

    &.in {
        filter: alpha(opacity=90);
        opacity: 1;
    }

    &.top {
        margin-top: -3px;
        padding: 5px 0;

        .tooltip-arrow {
            border-top: 8px solid #4a4a4a;
            border-width: 5px 5px 0;
            bottom: 0;
            left: 50%;
            margin-left: -5px;
        }

        &-left .tooltip-arrow {
            border-width: 5px 5px 0;
            bottom: 0;
            margin-bottom: -5px;
            right: 5px;
        }

        &-right .tooltip-arrow {
            border-width: 5px 5px 0;
            bottom: 0;
            left: 5px;
            margin-bottom: -5px;
        }

        .tooltip-inner {
            margin-bottom: 3px;
        }
    }

    &.right {
        margin-left: 3px;
        padding: 0 5px;

        .tooltip-arrow {
            border-right: 8px solid #4a4a4a;
            border-width: 5px 5px 5px 0;
            left: 0;
            margin-top: -5px;
            top: 50%;
        }

        .tooltip-inner {
            margin-left: 3px;
        }
    }

    &.bottom {
        margin-top: 3px;
        padding: 5px 0;

        .tooltip-arrow {
            border-bottom: 8px solid #4a4a4a;
            border-width: 0 5px 5px;
            left: 50%;
            margin-left: -5px;
            top: 0;
        }

        .tooltip-inner {
            margin-top: 3px;
        }

        &-left .tooltip-arrow {
            border-width: 0 5px 5px;
            margin-top: -5px;
            right: 5px;
            top: 0;
        }

        &-right .tooltip-arrow {
            border-width: 0 5px 5px;
            left: 5px;
            margin-top: -5px;
            top: 0;
        }
    }

    &.left {
        margin-left: -3px;
        padding: 0 5px;

        .tooltip-arrow {
            border-left: 8px solid #4a4a4a;
            border-width: 5px 0 5px 5px;
            margin-top: -5px;
            right: 0;
            top: 50%;
        }
        .tooltip-inner {
            margin-right: 3px;
        }
    }
    &-inner {
        background-color: #000;
        border-radius: 4px;
        color: #fff;
        max-width: 200px;
        padding: 3px 8px;
        text-align: center;
    }

    &-arrow {
        border-color: transparent;
        border-style: solid;
        height: 0;
        position: absolute;
        width: 0;
    }

    &::before {
        background: transparent none repeat scroll 0 0;
        border: 8px solid transparent;
    }

    &.tooltip-sm-width {
        font-size: 11px;
        max-width: 140px;
        word-wrap: break-word;
    }

    &.top,
    &.bottom {
        background: none;

        .tooltip-arrow {
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            margin-left: -8px;
        }
    }

    &.left,
    &.right {
        background: none;

        .tooltip-arrow {
            border-bottom: 8px solid transparent;
            border-top: 8px solid transparent;
            margin-top: -8px;
        }
    }

    .tooltip-inner {
        background-color: #4a4a4a;
        font-size: 12px;
        text-align: left;
    }

    &.right-arrow::before {
        border-right-color: rgb(51 51 51 / 90%);
        content: '';
        left: -16px;
        position: absolute;
        top: 15px;
    }

    &.top-arrow::before {
        border-top-color: rgb(51 51 51 / 90%);
        bottom: -16px;
        content: '';
        left: 30px;
        position: absolute;

        &-sm::before {
            border-top-color: rgb(51 51 51 / 90%);
            bottom: -16px;
            content: '';
            left: 50%;
            margin-left: -8px;
            position: absolute;
        }
    }

    &.bottom-arrow::before {
        border-bottom-color: rgb(51 51 51 / 90%);
        content: '';
        left: 90px;
        position: absolute;
        top: -16px;
    }
}
