﻿.tooltip {
    position: relative;
    display: inline-block;

    &__box {
        font-size: 16px;
        display: none;
        position: absolute;
        top: 0;
        right: calc(100% + 12px);
        width: 320px;
        border: 1px solid #a0a0a0;
        text-align: center;
        padding: 15px;
        z-index: 10;
        -webkit-box-shadow: 5px 5px 19px rgba(17, 17, 17, 0.39);
        box-shadow: 5px 5px 19px rgba(17, 17, 17, 0.39);
        white-space: normal;
        background-color: #fff;

        @media (max-width: 991px) {
            right: auto;
            left: calc(100% + 12px);
        }

        @media (max-width: 480px) {
            top: calc(100% + 12px);
            left: 0;
            width: 280px;
        }
    }

    &__btn {
        -webkit-transition: all .3s ease;
        transition: all .3s ease;
        width: 21px;
        height: 21px;
        border-radius: 7px;
        border: 1px solid var(--Stroke);
        cursor: pointer;
        position: relative;
    
        &:hover {
            border-color: var(--Main2);
            background-color: var(--Main2);
    
            &+.tooltip__box {
                display: block;
            }
        }
    
        svg {
            position: absolute;
            top: 50%;
            left: 50%;
            -webkit-transform: translate(-50%, -50%);
            -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
            display: block;
            width: 7px;
            height: 13px;
        }
    }

    &__container {
        font-size: 12px;
        display: none;
        position: absolute;
        margin-top: 12px;
        width: 200px;
        border: 1px solid var(--Stroke);
        border-radius: 4px;
        text-align: left;
        padding: 10px;
        background-color: #fff;
        z-index: 10;
        -webkit-box-shadow: 2px 2px 2px rgba(10, 10, 10, 0.2);
        box-shadow: 2px 2px 2px rgba(10, 10, 10, 0.2);
        left: calc(102%);
        top: -30px;
    
        &:before {
            position: absolute;
            background-color: #fff;
            left: -8px;
            top: 30px;
            content: '';
            border-left: 1px solid var(--Stroke);
            border-top: 1px solid var(--Stroke);
            width: 14px;
            height: 14px;
            transform: translateY(-53%) rotate(-45deg);
            z-index: 11;
        }
    }
}

p.tooltip__header {
    color: var(--Red);
    margin: 0;
    padding: 15px 0 !important;
    font-family: 'PT Sans', sans-serif;
    font-size: 12px;
}

.exclamation-icon {
    width: 14px;
    height: 14px;
    float: left;
    margin-right: 2px;
}

.tooltip__content {
    color: var(--Stroke);
    font-family: 'PT Sans', sans-serif;
    font-size: 12px;
    padding-top: 8px;
}

.tooltip--round .tooltip__btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
}

.tooltip--round .tooltip__btn svg {
    width: 8px;
    height: 16px;
}

.tooltip {
    &-expert_title {
        display: flex;
        align-items: center;
        color: var(--Red);
        margin-bottom: 10px;
    }

    &_img {
        flex-shrink: 0;
        margin-right: 5px;
    }

    &_templates {
        display: none;
    }
}