/* Miamon Cart Toast — toast.css */

.miamon-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999;

    display: flex;
    align-items: center;
    gap: 10px;

    background: #1FC16B;
    color: #fff;
    border-radius: 10px;
    padding: 13px 16px;
    min-width: 300px;
    max-width: 480px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);

    transform: translateY(calc(100% + 40px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.34, 1.36, 0.64, 1), opacity 0.28s ease;
}

.miamon-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.miamon-toast.is-hiding {
    transform: translateY(calc(100% + 40px));
    opacity: 0;
    transition: transform 0.3s ease-in, opacity 0.25s ease-in;
}

.miamon-toast__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.miamon-toast__content {
    flex: 1;
    min-width: 0;
}

.miamon-toast__message {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.miamon-toast__cta {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    opacity: 0.92;
    transition: opacity 0.15s ease;
    cursor: pointer;
}

.miamon-toast__cta:hover {
    opacity: 1;
    color: #fff;
}

.miamon-toast__close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.15s ease;
    margin-left: 2px;
}

.miamon-toast__close:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .miamon-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        min-width: unset;
        max-width: unset;
    }
}

/* ── Fly-to-cart ghost image ── */
.miamon-fly-ghost {
    will-change: left, top, width, height, opacity;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    border: 2px solid #1FC16B;
}

/* ── Cart icon bounce on landing ── */
@keyframes miamon-bounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    55%  { transform: scale(0.88); }
    75%  { transform: scale(1.15); }
    90%  { transform: scale(0.96); }
    100% { transform: scale(1); }
}

.miamon-cart-bounce {
    animation: miamon-bounce 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
