.flag {
    position: fixed;
    bottom: 50px;
    left: 70px;
    z-index: 10000;
    display: flex;
    align-items: start;
    width: 400px;
    padding: 16px;
    border-radius: 3px;
    background-color: var(--ds-surface-overlay, #fff);
    box-shadow: var(--ds-shadow-overlay, 0 8px 12px #1e1f2126, 0 0 1px #1e1f214f);
    color: var(--ds-text, #292a2e);
    font-size: 14px;
    font-weight: 400;
    animation: flag-slide-in 0.3s ease-out;

    &.flag-slide-out {
        animation: flag-slide-out 0.3s ease-in forwards;
    }

    .flag-icon {
        flex-shrink: 0;
        margin-right: 12px;
        color: var(--ds-icon-success, #6A9A23);
    }

    .flag-icon-progress {
        color: var(--ds-icon-subtle, #42526E);

        svg {
            animation: flag-spinner 0.8s linear infinite;
        }
    }

    .flag-icon-error {
        color: var(--ds-icon-danger, #C9372C);
    }

    .flag-content {
        flex: 1;
        min-width: 0;
        margin-top: 3px;
    }

    .flag-header {
        margin-bottom: 8px;
        font-size: 14px;
        font-weight: 650;
    }

    .flag-details {
        margin-bottom: 8px;
    }

    .flag-footer {
        font-size: 12px;

        a {
            color: var(--ds-link, #3572b0);
            text-decoration: none;
            cursor: pointer;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    .flag-close {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: none;
        border-radius: 3px;
        background: none;
        color: var(--ds-text-subtle, #505258);
        cursor: pointer;

        &:hover {
            background-color: var(--ds-background-neutral-subtle-hovered, #0515240f);
        }
    }
}

@keyframes flag-slide-in {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes flag-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes flag-spinner {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
