﻿.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
    user-select: none;
}

    .tooltip-content {
        display: none;
        position: absolute;
        width: 24rem;
        z-index: 1000;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Header */
    .tooltip-content .tooltip-header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        background-color: #f7f7f7;
        border: 1px solid rgba(204, 204, 204, 1);
        border-bottom-color: rgba(204, 204, 204, 0.5);
        border-radius: 6px 6px 0 0;
        padding: 0.25rem 0.75rem;
    }

        /* Close button */
        .tooltip-content .tooltip-header .tooltip-close {
            flex: 1;
            align-self: flex-end;
            text-align: right;
            cursor: pointer;
            color: #000;
            font-size: 28px;
            font-weight: 700;
            width: 2rem;
            height: 2rem;
            opacity: 0.2;
            user-select: none;
        }

            .tooltip-content .tooltip-header .tooltip-close:hover {
                opacity: 0.6;
            }


        .tooltip-content .tooltip-header .tooltip-caption {
            flex: 0 0 90%;
            font-size: 14px;
            font-weight: bold;
            text-align: left;
        }

    /* Body */
        .tooltip-content .tooltip-body {
            display: flex;
            flex-direction: column;
            font-size: 14px;
            text-align: left;
            background-color: #ffffff;
            border: 1px solid rgba(204, 204, 204, 1);
            border-top-color: rgba(204, 204, 204, 0);
            border-radius: 0 0 6px 6px;
            padding: 0.25rem 0.75rem;
        }

        .tooltip-content .tooltip-body .tooltip-text {
            font-size: 14px;
            font-weight: normal;
        }

        .tooltip-content .tooltip-body .tooltip-link {
            color: #171DD5;
            font-size: 14px;
            font-weight: bold;
            text-decoration: underline;
        }

            .tooltip-content .tooltip-body .tooltip-link:hover {
                text-decoration: none;
            }

        .tooltip-content .tooltip-body div {
            text-align: right;
        }