/* ============================================================
   Product Engagement Stats — Toast notification v1.2
   ============================================================ */

.pes-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 40px));
    z-index: 999999;

    display: flex;
    flex-direction: column;

    min-width: 300px;
    max-width: 460px;

    background: #fff;
    color: #010101;
    border-radius: 5px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.1);
    overflow: hidden;

    /* Start hidden & off-screen */
    opacity: 0;
    transition:
            transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
            opacity   0.3s ease;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Visible state */
.pes-toast.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ---- Body row ---- */
.pes-toast__body {
    display: flex;
    align-items:center;
    gap: 12px;
    padding: 14px 16px 12px;
    justify-content: center
}

/* Eye icon */
.pes-toast__icon {
    flex-shrink: 0;
    margin-top: 1px;
    color: #e50046;
    display: flex;
}
.pes-toast__icon svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Message text */
.pes-toast__text {
    flex: 1;
    font-size: 0.87rem;
    line-height: 1.5;
    font-weight: 400;
}

/* Close × */
.pes-toast__close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #888;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    margin-left: 6px;
    transition: color 0.15s;
    align-self: flex-start;
}
.pes-toast__close:hover,
.pes-toast__close:focus { color: #ddd; outline: none; }

/* ---- Progress bar ---- */
.pes-toast__bar {
    height: 3px;
    background: #e50046;;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(1);
}
.pes-toast__bar.is-running {
    animation: pes-bar-shrink linear forwards;
}
@keyframes pes-bar-shrink {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 520px) {
    .pes-toast {
        left: 12px;
        right: 12px;
        bottom: 14px;
        min-width: unset;
        max-width: unset;
        width: auto;
        transform: translateX(0) translateY(calc(100% + 30px));
    }
    .pes-toast.is-visible {
        transform: translateX(0) translateY(0);
    }
}
