/* Toast colors for the user UI - the portal design (:root --main-color-* / --background-color-*
   in theme/user/css/main.css): light tint of the type color on white, black text, the type color
   for the left border, the icon and the progress bar */
.app-toasts {
    --toast-success: var(--main-color-green);
    --toast-error: var(--main-color-red);
    --toast-warning: var(--main-color-orange);
    --toast-info: var(--main-color-blue);
    --toast-radius: 3px;
}

.app-toasts .app-toast-success { --toast-tint: var(--background-color-green); }
.app-toasts .app-toast-error   { --toast-tint: var(--background-color-red); }
.app-toasts .app-toast-warning { --toast-tint: var(--background-color-orange); }
.app-toasts .app-toast-info    { --toast-tint: var(--background-color-blue); }

.app-toasts .app-toast {
    /* the tint is 20 % transparent: lay it over white so the page doesn't show through */
    --toast-background: linear-gradient(var(--toast-tint), var(--toast-tint)), #fff;
    --toast-foreground: var(--main-color-black);
    --toast-border: 4px solid var(--toast-color);
    --toast-icon: var(--toast-color);
    --toast-progress: var(--toast-color);
}
.app-toasts .app-toast-message a:hover { color: var(--toast-color); }
