.hs-glossary {
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

/* Tooltip */

.hs-tooltip {

    position: absolute;

    width: 340px;
    max-width: 90vw;

    background: #ffffff;

    border: 1px solid #d0d7de;

    border-radius: 12px;

    padding: 16px;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        0 2px 4px rgba(0, 0, 0, 0.08);

    z-index: 999999;

    line-height: 1.6;

    font-size: 14px;

    color: #24292f;

    animation: hsTooltipFade .15s ease-out;
}

/* Seta superior */

.hs-tooltip::before {

    content: "";

    position: absolute;

    top: -8px;

    left: 20px;

    width: 14px;
    height: 14px;

    background: #ffffff;

    border-left: 1px solid #d0d7de;
    border-top: 1px solid #d0d7de;

    transform: rotate(45deg);
}

/* Título */

.hs-tooltip strong {

    display: block;

    margin-bottom: 10px;

    font-size: 20px;

    font-weight: 700;

    color: #111827;

    line-height: 1.3;
}

/* Descrição */

.hs-tooltip p {

    margin: 0 0 14px 0;

    color: #4b5563;

    font-size: 15px;

    line-height: 1.6;
}

/* Botão */

.hs-tooltip a {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 8px 14px;

    border-radius: 6px;

    background: #2563eb;

    color: #ffffff !important;

    text-decoration: none !important;

    font-weight: 600;

    line-height: 1;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

/* Seta do botão */

.hs-tooltip a::after {

    content: "→";

    transition: transform .2s ease;
}

/* Hover do botão */

.hs-tooltip a:hover {

    color: #ffffff !important;

    background: #2563eb;

    text-decoration: none !important;

    box-shadow: 0 4px 12px rgba(37, 99, 235, .25);
}

/* Move apenas a seta */

.hs-tooltip a:hover::after {

    transform: translateX(5px);
}

/* ===================================================== */
/* BOTÃO DESABILITADO                                    */
/* ===================================================== */

.hs-tooltip a[href=""],
.hs-tooltip a[href="#"] {

    background: #e5e7eb !important;

    color: #6b7280 !important;

    cursor: not-allowed;

    pointer-events: none;

    box-shadow: none;

    transform: none;
}

.hs-tooltip a[href=""]::after,
.hs-tooltip a[href="#"]::after {

    content: "";
}

.hs-tooltip a[href=""]:hover,
.hs-tooltip a[href="#"]:hover {

    background: #e5e7eb !important;

    color: #6b7280 !important;

    box-shadow: none;
}

/* Fade de entrada */

@keyframes hsTooltipFade {

    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile */

@media (max-width: 768px) {

    .hs-tooltip {

        width: 280px;

        padding: 14px;
    }

    .hs-tooltip strong {

        font-size: 18px;
    }

    .hs-tooltip p {

        font-size: 14px;
    }
}