/* Processin Social Proof — premium toast */

.psp-toast-root {
    position: fixed;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    width: min(360px, calc(100vw - 24px));
    pointer-events: none;
}

.psp-toast-root--bottom-left {
    left: 14px;
    bottom: 14px;
    align-items: flex-start;
}

.psp-toast-root--bottom-center {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    align-items: center;
}

.psp-toast-root--bottom-right {
    right: 14px;
    bottom: 14px;
    align-items: flex-end;
}

.psp-toast-root--middle-left {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-start;
}

.psp-toast-root--middle-right {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
}

.psp-toast-root--top-left {
    left: 14px;
    top: 14px;
    align-items: flex-start;
}

.psp-toast-root--top-center {
    left: 50%;
    top: 14px;
    transform: translateX(-50%);
    align-items: center;
}

.psp-toast-root--top-right {
    right: 14px;
    top: 14px;
    align-items: flex-end;
}

.psp-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 0.75rem;
    align-items: center;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.95);
    box-shadow:
        0 18px 40px -24px rgba(15, 23, 42, 0.45),
        0 8px 18px -12px rgba(37, 99, 235, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #0f172a;
    text-decoration: none;
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.psp-toast.is-in {
    transform: translateY(0);
    opacity: 1;
}

.psp-toast.is-out {
    transform: translateY(12px);
    opacity: 0;
}

.psp-toast:hover {
    border-color: #93c5fd;
    box-shadow:
        0 22px 48px -22px rgba(15, 23, 42, 0.5),
        0 10px 22px -12px rgba(37, 99, 235, 0.22);
}

.psp-toast__media {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0, #f8fafc);
    flex-shrink: 0;
}

.psp-toast__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.psp-toast__body {
    min-width: 0;
}

.psp-toast__name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.psp-toast__action {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
}

.psp-toast__title {
    font-weight: 650;
    color: #1d4ed8;
}

.psp-toast__meta {
    margin: 0.25rem 0 0;
    font-size: 0.7rem;
    color: #94a3b8;
    font-weight: 600;
}

.psp-toast__close {
    border: 0;
    background: #f1f5f9;
    color: #64748b;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: start;
}

.psp-toast__close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

@media (max-width: 575.98px) {
    .psp-toast-root {
        width: calc(100vw - 20px);
        left: 10px !important;
        right: 10px !important;
        transform: none !important;
    }

    .psp-toast-root--bottom-left,
    .psp-toast-root--bottom-center,
    .psp-toast-root--bottom-right {
        bottom: 10px;
        top: auto;
    }

    .psp-toast-root--top-left,
    .psp-toast-root--top-center,
    .psp-toast-root--top-right {
        top: 10px;
        bottom: auto;
    }

    .psp-toast-root--middle-left,
    .psp-toast-root--middle-right {
        top: 50%;
        transform: translateY(-50%) !important;
    }

    .psp-toast {
        grid-template-columns: 56px 1fr auto;
    }

    .psp-toast__media {
        width: 56px;
        height: 56px;
    }
}
