#alertify-log
{
    position: fixed;
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    margin: 0;
    padding: 0;
    z-index: 110;
    pointer-events: none;
}

body.dock-right #alertify-log

{

    right: 64px;

    width: min(360px, calc(100vw - 80px));

}
body.dock-bottom #alertify-log
{
    bottom: 64px;
    max-height: calc(100dvh - 80px);
}

#alertify-log > li
{
    --notice-accent: #187bb7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-sizing: border-box;
    margin: 8px 0;
    padding: 12px;
    border: 1px solid var(--dialog-border-normal);
    border-left: 3px solid var(--notice-accent);
    border-radius: 10px;
    background: var(--dialog-background-normal);
    color: var(--dialog-color-normal);
    box-shadow: 0 4px 14px rgb(0 0 0 / 14%);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 180ms ease, transform 180ms ease;
    pointer-events: auto;
}

#alertify-log > li.visible

{

    opacity: 1;

    transform: none;

}
#alertify-log > .alertify-log-success
{
    --notice-accent: #287d38;
}
#alertify-log > .alertify-log-warn
{
    --notice-accent: #a46600;
}
#alertify-log > .alertify-log-error
{
    --notice-accent: #c43434;
}
#alertify-log .alertify-log-icon
{
    color: var(--notice-accent);
    font-weight: bold;
    font-size: 20px;
}
#alertify-log .alertify-message
{
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
#alertify-log h4
{
    margin: 0 0 4px;
    font-size: 15px;
}
#alertify-log p
{
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
}
#alertify-log .alertify-log-close
{
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: -8px -8px 0 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 24px;
    cursor: pointer;
}
#alertify-log button:focus-visible
{
    outline: 2px solid var(--dialog-border-highlight);
}
@media (prefers-reduced-motion: reduce)
{
    #alertify-log > li
    {
        transition: none;
        transform: none;
    }
}

