// (C) 2026 GoodData Corporation

@use "sass:color";
@use "../../../styles/scss/variables" as kit-variables;

// Tooltip content is portaled outside the icon subtree; reset the variant-none wrapper around it.
.gd-ui-kit-tooltip--variant-none:has(.gd-ui-kit-certification-icon__tooltip) {
    padding: 0;
    border: none;
    line-height: inherit;
    font-size: inherit;
}

.gd-ui-kit-certification-icon {
    display: inline-flex;

    &__tooltip {
        background: var(--gd-palette-complementary-0);
        border: 1px solid var(--gd-palette-complementary-3);
        box-shadow: 0 2px 10px 0 color.adjust(kit-variables.$default-gd-color-dark, $alpha: -0.9);
        border-radius: 3px;
        padding: 15px;
        display: grid;
        gap: 10px;
    }

    &__tooltip-header {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    &__tooltip-title {
        font-size: 14px;
        line-height: 23px;
        font-weight: 400;
        color: var(--gd-palette-complementary-8);
    }

    &__tooltip-message {
        font-size: 14px;
        line-height: 18px;
        color: var(--gd-palette-complementary-7);
    }

    &__tooltip-date {
        text-transform: uppercase;
        color: var(--gd-palette-complementary-6);
        font-size: 10px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        padding-top: 5px;
    }

    &__tooltip-date-value {
        color: var(--gd-palette-complementary-8);
        font-size: 12px;
        font-style: normal;
        font-weight: 400;
        line-height: 19px;
        margin-top: -7px;
    }
}
