﻿/* Placement popup toast — shows random "so-and-so placed at X" notifications
   one at a time, right corner, just under the sticky nav bar.
   Uses existing site color variables. Top offset is set inline by JS
   (placement-toast.js) so it always tracks the nav bar's real height. */

.placement-toast {
    position: fixed;
    right: 20px;
    top: 90px; /* fallback; JS overrides this to sit right under #site-header */
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 340px;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: var(--radius, 18px);
    box-shadow: var(--shadow-lift, 0 28px 60px -24px rgba(20, 38, 74, 0.45));
    border: 1px solid rgba(124, 179, 66, 0.25);
    opacity: 0;
    transform: translateY(-12px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease, top 0.25s ease;
}

    .placement-toast.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

.placement-toast__icon {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--green, #7cb342);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.placement-toast__body {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.placement-toast__title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy-deep, #14264a);
}

.placement-toast__sub {
    font-size: 12.5px;
    color: #4a5568;
}

    .placement-toast__sub strong {
        color: var(--green, #7cb342);
    }

/* Small screens: don't let it stretch full width awkwardly */
@media (max-width: 480px) {
    .placement-toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}
