// (C) 2026 GoodData Corporation

// Styles for the custom tooltip section rendered inside .gd-viz-tooltip
// containers across chart families (Highcharts, geo, etc.).

.gd-viz-tooltip-custom-section {
    font-size: 14px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    min-width: 200px;
    color: var(--gd-palette-complementary-7);

    h1,
    h2,
    h3,
    h4 {
        margin: 0;
        font-weight: 700;
        color: var(--gd-palette-complementary-9);
        font-size: 14px;
        line-height: 1.2;
        padding: 5px 0;
    }

    p {
        margin: 0;
        padding-block-end: 5px;
    }

    strong {
        font-weight: 700;
    }

    ul,
    ol {
        padding: 0 0 0 18px;
        margin: 0;
    }

    hr {
        border: 0;
        border-top: 1px solid var(--gd-palette-complementary-3);
        padding: 4px 0;
    }

    img {
        max-width: 100%;
        display: block;
        padding: 3px 0;
    }

    a {
        text-decoration: underline;
        color: inherit;
        cursor: pointer;
        pointer-events: auto;

        &:hover {
            color: var(--gd-palette-primary-base);
        }
    }
}

.gd-viz-tooltip-custom-separator {
    border-top: 1px solid var(--gd-palette-complementary-3);
    padding: 7px 0;
}
