﻿#liv-toast-container.liv-toasts {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    inset-inline-end: 16px;
}
#liv-toast-container.liv-toasts > div {
    pointer-events: auto;
    --liv-toast-accent: #fff;
    --liv-toast-icon-bg: #ffffff24;
    position: relative;
    width: min(410px, calc(100vw - 32px));
    max-width: none;
    min-height: 70px;
    margin: 0 0 8px;
    padding: 21px 58px;
    border: 1px solid #ffffff38;
    border-radius: 14px;
    /* The bundled Toastr icons use !important. */
    background-image: none !important;
    box-shadow: 0 8px 24px #17284329;
    opacity: 1;
    color: #fff;
    text-align: start;
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
#liv-toast-container.liv-toasts > .toast-error {
    --liv-toast-accent: #a3293c;
    --liv-toast-icon-bg: #ffdade;
    border-color: #f2adb5;
    background-color: #fff0f1;
    color: #822334;
}
#liv-toast-container.liv-toasts > .toast-success { background-color: #196047; }
#liv-toast-container.liv-toasts > div::before {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-start: 14px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    transform: translateY(-50%);
    border-radius: 50%;
    background-color: var(--liv-toast-icon-bg);
    color: var(--liv-toast-accent);
    font: 700 21px/1 Arial, sans-serif;
}
#liv-toast-container.liv-toasts > .toast-error::before { content: "!"; }
#liv-toast-container.liv-toasts > .toast-success::before { content: "✓"; }
#liv-toast-container.liv-toasts .toast-close-button {
    position: absolute;
    top: 50%;
    right: auto;
    inset-inline-end: 12px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    border-radius: 8px;
    background-color: var(--liv-toast-icon-bg);
    color: var(--liv-toast-accent);
    opacity: 1;
}
#liv-toast-container.liv-toasts .toast-close-button::before,
#liv-toast-container.liv-toasts .toast-close-button::after {
    content: "";
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - 7px);
    width: 14px;
    height: 2px;
    border-radius: 1px;
    background-color: currentColor;
    transform: rotate(45deg);
}
#liv-toast-container.liv-toasts .toast-close-button::after { transform: rotate(-45deg); }
#liv-toast-container.liv-toasts .toast-close-button:hover,
#liv-toast-container.liv-toasts .toast-close-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 1px;
}

#liv-toast-container.liv-toasts .toast-message { white-space: pre-line; }
