/* =========================================================
   FINDZLE VAULTS — ACTIVITÉ EN DIRECT
   ========================================================= */

.vaults-live-activity {
    position: fixed;
    right: 22px;
    bottom: 22px;

    z-index: 10050;

    width: min(
        390px,
        calc(100vw - 32px)
    );

    display: flex;
    flex-direction: column;
    gap: 10px;

    pointer-events: none;
}

.vaults-live-toast {
    pointer-events: auto;

    display: flex;
    align-items: flex-start;
    gap: 12px;

    width: 100%;

    padding: 14px 15px;

    background: #ffffff;

    border:
        1px solid
        rgba(148, 163, 184, .35);

    border-radius: 14px;

    box-shadow:
        0 16px 38px
        rgba(15, 23, 42, .16);

    animation:
        vaultsLiveToastIn
        .22s ease-out;
}

.vaults-live-toast__icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #eef4ff;

    font-size: 18px;
}

.vaults-live-toast__content {
    min-width: 0;
    flex: 1 1 auto;
}

.vaults-live-toast__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;

    margin-bottom: 4px;
}

.vaults-live-toast__head strong {
    display: block;

    color: #0f172a;

    font-size: 14px;
    line-height: 1.3;
}

.vaults-live-toast__message {
    color: #334155;

    font-size: 13px;
    line-height: 1.45;

    overflow-wrap: anywhere;
}

.vaults-live-toast__footer {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 7px;

    font-size: 12px;
    color: #64748b;
}

.vaults-live-toast__footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.vaults-live-toast__footer a:hover {
    text-decoration: underline;
}

.vaults-live-toast__close {
    appearance: none;

    border: 0;
    background: transparent;

    padding: 0;

    width: 24px;
    height: 24px;

    display: grid;
    place-items: center;

    border-radius: 6px;

    cursor: pointer;

    color: #64748b;
    font-size: 20px;
    line-height: 1;
}

.vaults-live-toast__close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.vaults-live-toast.is-leaving {
    opacity: 0;
    transform: translateY(8px);

    transition:
        opacity .22s ease,
        transform .22s ease;
}

@keyframes vaultsLiveToastIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dark mode */

html[data-theme="dark"]
.vaults-live-toast,
body.dark
.vaults-live-toast {
    background: #111827;

    border-color:
        rgba(148, 163, 184, .25);

    box-shadow:
        0 16px 40px
        rgba(0, 0, 0, .4);
}

html[data-theme="dark"]
.vaults-live-toast__head strong,
body.dark
.vaults-live-toast__head strong {
    color: #f8fafc;
}

html[data-theme="dark"]
.vaults-live-toast__message,
body.dark
.vaults-live-toast__message {
    color: #cbd5e1;
}

html[data-theme="dark"]
.vaults-live-toast__icon,
body.dark
.vaults-live-toast__icon {
    background: #1e293b;
}

@media (
    max-width: 700px
) {
    .vaults-live-activity {
        right: 12px;
        bottom: 12px;

        width:
            calc(100vw - 24px);
    }
}