.app-toast-container {
    position: fixed;
    z-index: 9999;
    top: 1rem;
    right: 1rem;
    width: min(380px, calc(100vw - 2rem));
    pointer-events: none;
}

.app-toast {
    display: none;
    margin-bottom: .75rem;
    color: #fff;
    background: #0d6efd;
    border-radius: 7px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .22);
    opacity: 0;
    pointer-events: auto;
    transition: opacity .2s ease-in-out;
}

.app-toast.showing,
.app-toast.show {
    display: block;
}

.app-toast.show {
    opacity: 1;
}

.app-toast.hide {
    display: none;
}

.app-toast-success { background: #198754; }
.app-toast-danger { background: #dc3545; }
.app-toast-info { background: #0d9dbc; }
.app-toast-warning { color: #212529; background: #ffc107; }

.app-toast-content {
    display: flex;
    align-items: center;
    min-height: 72px;
}

.app-toast-icon {
    padding-left: 1rem;
    font-size: 1.25rem;
}

.app-toast-body {
    flex: 1;
    padding: .85rem 1rem;
    line-height: 1.35;
}

.app-toast-title {
    display: block;
    margin-bottom: .2rem;
    font-size: .95rem;
}

.app-toast-message {
    font-size: .875rem;
    overflow-wrap: anywhere;
}

.app-toast-close {
    align-self: stretch;
    width: 44px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: .8;
}

.app-toast-close:hover,
.app-toast-close:focus {
    opacity: 1;
    outline: none;
}

@media (max-width: 480px) {
    .app-toast-container {
        top: .75rem;
        right: .75rem;
        width: calc(100vw - 1.5rem);
    }
}
