// (C) 2026 GoodData Corporation

.gd-ui-kit-widget-notice {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 100%;
    box-sizing: border-box;
    color: var(--gd-palette-complementary-7);
    font-size: 12px;
    line-height: 16px;
    background: var(--gd-palette-complementary-0, #fff);
    border: 1px solid var(--gd-palette-complementary-3, #dde4eb);
    border-radius: 3px;
    box-shadow: 0 2px 5px rgb(0 0 0 / 10%);

    &__header {
        display: flex;
        gap: 7px;
        align-items: flex-start;
        padding: 5.5px 5px 5.5px 10px;
        box-sizing: border-box;
    }

    &__content {
        display: flex;
        flex: 1 1 auto;
        gap: 7px;
        align-items: flex-start;
        min-width: 236px;
    }

    &__icon {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 22px;
    }

    &__text {
        display: flex;
        flex-wrap: wrap;
        gap: 7px;
        align-items: center;
        min-width: 0;
        min-height: 22px;
        padding: 3px 0;
        box-sizing: border-box;
    }

    &__message {
        font-family: var(--gd-font-family);
        font-weight: 700;
        overflow-wrap: anywhere;
    }

    &__action,
    &__detail-action {
        display: inline-flex;

        a {
            color: var(--gd-palette-complementary-6, #94a1ad);
            cursor: pointer;
            text-decoration: underline;
        }

        a:hover {
            color: var(--gd-palette-complementary-6, #94a1ad);
            text-decoration: underline;
        }
    }

    &__toggle {
        margin: 0;
        padding: 0;
        color: var(--gd-palette-complementary-6, #94a1ad);
        font: inherit;
        font-weight: 400;
        text-decoration: underline;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .gd-ui-kit-icon-button {
        --gd-button-width: 16px;

        flex: 0 0 auto;
        height: 16px;
        min-width: 16px;
        margin-top: 3px;
    }

    &__detail {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 5px 10px 10px 10px;
        background: var(--gd-palette-complementary-0, #fff);
        border-top: 1px solid var(--gd-palette-complementary-3, #dde4eb);
        border-bottom-right-radius: 3px;
        border-bottom-left-radius: 3px;
    }

    &__detail-text {
        line-height: 17px;
        overflow-wrap: anywhere;
    }
}
