[class*="telecrm-tooltip-"] {
    position: relative;
}

[class*="telecrm-tooltip-"]::before,
[class*="telecrm-tooltip-"]::after {
    --bg-color: #ECE9FF;
    --color: #7C65F1;
}

.telecrm-tooltip-success::after,
.telecrm-tooltip-success::before {
    --bg-color: #ECE9FF;
    --color: #7C65F1;
}

.telecrm-tooltip-warning::after,
.telecrm-tooltip-warning::before {
    --bg-color: #ECE9FF;
    --color: #7C65F1;
}

.telecrm-tooltip-danger::after,
.telecrm-tooltip-danger::before {
    --bg-color: #ffedf1;
    --color: #e01e5a;
}

.telecrm-tooltip-info::before,
.telecrm-tooltip-info::after {
    --bg-color: #ECE9FF;
    --color: #7C65F1;
}

[class*="telecrm-tooltip-"]::before,
[class*="telecrm-tooltip-"]::after {
    position: absolute;
    z-index: 9999998;
    transition: 0.3s;
    content: "";
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

[class*="telecrm-tooltip-"]:hover::before,
[class*="telecrm-tooltip-"]:hover::after {
    visibility: visible;
    opacity: 1;
}

[class*="telecrm-tooltip-"]::after {
    position: absolute;
    border: 6px solid transparent;
    color: #19191a;
    z-index: 9999999;
}

[class*="telecrm-tooltip-"]::before {
    content: attr(data-title);
    position: absolute;
    padding: 4px 8px;
    line-height: 18px;
    font-size: 13px;
    font-weight: 400;
    border-radius: 5px;
    background-color: var(--bg-color);
    color: var(--color);
    box-shadow: 0px 5px 10px -3.88666033744812px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    border-radius: 3px;
}

.telecrm-tooltip-top-left::after {
    bottom: 100%;
    left: calc(50% - 6px);
    border-top-color: var(--bg-color);
    transform: translateY(0);
    margin-bottom: -11px;
}

.telecrm-tooltip-top-left:hover::after {
    transform: translateY(-9px);
}

.telecrm-tooltip-top-left::before {
    bottom: 100%;
    right: 50%;
    transform: translateY(0);
    margin-right: -12px;
}

.telecrm-tooltip-top-left:hover::before {
    transform: translateY(-9px);
}

.telecrm-tooltip-top::after {
    bottom: 100%;
    left: calc(50% - 6px);
    border-top-color: var(--bg-color);
    transform: translateY(0);
    margin-bottom: -11px;
}

.telecrm-tooltip-top:hover::after {
    transform: translateY(-9px);
}

.telecrm-tooltip-top::before {
    bottom: 100%;
    left: 50%;
    transform: translateY(0) translateX(-50%);
}

.telecrm-tooltip-top:hover::before {
    transform: translateY(-9px) translateX(-50%);
}

.telecrm-tooltip-top-right::after {
    bottom: 100%;
    left: calc(50% - 6px);
    border-top-color: var(--bg-color);
    transform: translateY(0);
    margin-bottom: -11px;
}

.telecrm-tooltip-top-right:hover::after {
    transform: translateY(-9px);
}

.telecrm-tooltip-top-right::before {
    bottom: 100%;
    left: 50%;
    transform: translateY(0);
    margin-left: -12px;
}

.telecrm-tooltip-top-right:hover::before {
    transform: translateY(-9px);
}

.telecrm-tooltip-left::after {
    top: 50%;
    right: 100%;
    border-left-color: var(--bg-color);
    transform: translateY(-50%) translateX(0);
    margin-right: -12px;
}

.telecrm-tooltip-left:hover::after {
    transform: translateY(-50%) translateX(-9px);
}

.telecrm-tooltip-left::before {
    top: 50%;
    right: 100%;
    transform: translateY(-50%) translateX(0);
    margin-right: -1px;
}

.telecrm-tooltip-left:hover::before {
    transform: translateY(-50%) translateX(-9px);
}

.telecrm-tooltip-right::after {
    top: 50%;
    left: 100%;
    border-right-color: var(--bg-color);
    transform: translateY(-50%) translateX(0);
    margin-left: -11px;
}

.telecrm-tooltip-right:hover::after {
    transform: translateY(-50%) translateX(9px);
}

.telecrm-tooltip-right::before {
    top: 50%;
    left: 100%;
    transform: translateY(-50%) translateX(0);
}

.telecrm-tooltip-right:hover::before {
    transform: translateY(-50%) translateX(9px);
}

.telecrm-tooltip-bottom-left::after {
    top: 100%;
    left: calc(50% - 6px);
    border-bottom-color: var(--bg-color);
    transform: translateY(0);
    margin-top: -11px;
}

.telecrm-tooltip-bottom-left:hover::after {
    transform: translateY(9px);
}

.telecrm-tooltip-bottom-left::before {
    top: 100%;
    right: 50%;
    transform: translateY(0);
    margin-right: -12px;
}

.telecrm-tooltip-bottom-left:hover::before {
    transform: translateY(9px);
}

.telecrm-tooltip-bottom::after {
    top: 100%;
    left: calc(50% - 6px);
    border-bottom-color: var(--bg-color);
    transform: translateY(0);
    margin-top: -12px;
}

.telecrm-tooltip-bottom:hover::after {
    transform: translateY(10px);
}

.telecrm-tooltip-bottom::before {
    top: 100%;
    left: 50%;
    transform: translateY(0) translateX(-50%);
}

.telecrm-tooltip-bottom:hover::before {
    transform: translateY(9px) translateX(-50%);
}

.telecrm-tooltip-bottom-right::after {
    top: 100%;
    left: calc(50% - 6px);
    border-bottom-color: var(--bg-color);
    transform: translateY(0);
    margin-top: -12px;
}

.telecrm-tooltip-bottom-right:hover::after {
    transform: translateY(9px);
}

.telecrm-tooltip-bottom-right::before {
    top: 100%;
    left: 50%;
    transform: translateY(0);
    margin-left: -12px;
}

.telecrm-tooltip-bottom-right:hover::before {
    transform: translateY(9px);
}

.telecrm-tooltip-small::before {
    white-space: pre-line;
    line-height: 1.4em;
    word-wrap: anywhere;
    min-width: 100px;
}

.telecrm-tooltip-medium::before {
    white-space: pre-line;
    line-height: 1.4em;
    word-wrap: anywhere;
    min-width: 170px;
}

.telecrm-tooltip-large::before {
    white-space: pre-line;
    line-height: 1.4em;
    word-wrap: anywhere;
    min-width: 320px;
}

@media (pointer: coarse) {

    [class*="telecrm-tooltip-"]:hover::before,
    [class*="telecrm-tooltip-"]:hover::after {
        visibility: hidden;
        opacity: 0;
        animation: mobileTooltipAnimation 2s linear;
    }

    @keyframes mobileTooltipAnimation {
        0% {
            visibility: visible;
            opacity: 1;
        }

        99% {
            visibility: visible;
            opacity: 1;
        }

        100% {
            visibility: hidden;
            opacity: 0;
        }
    }
}