/* SweetAlert toasts on the surface of the app.

   sweetalert2.min.css paints `.swal2-popup.swal2-toast` white, and that
   selector beats the theme rules the script injects, so in dark mode the
   toast stayed white while its text followed the theme (light on white).
   The toast takes the Tabler surface and text instead, which follow
   light and dark on their own. */
.swal2-popup.swal2-toast {
    color: var(--tblr-body-color);
    background: var(--tblr-bg-surface);
}

.swal2-popup.swal2-toast .swal2-close {
    color: var(--tblr-secondary);
}

/* The text of a coloured alert (the warning of the seal modal, the notice of
   an active plan): Tabler paints it with the pure colour, which gives 2.03:1
   for the warning and 2.83:1 for the info on their 10% tint in light mode.
   The readable variant of the tokens (tokens.css) keeps the hue and reaches
   4.5:1 in both themes; the tint of the alert and its icon stay Tabler's. */
.alert-success {
    color: var(--ec-text-success);
}

.alert-info {
    color: var(--ec-text-info);
}

.alert-warning {
    color: var(--ec-text-warning);
}

.alert-danger {
    color: var(--ec-text-danger);
}
