﻿#momc-promo-overlay[hidden],
#momc-promo-mini[hidden] {
    display: none !important;
}

#momc-promo-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 20, 39, .78);
    backdrop-filter: blur(9px);
    perspective: 1500px;
    animation: momcFade .35s ease both;
}

.momc-promo-card {
    position: relative;
    width: fit-content;
    max-width: min(760px, 92vw);
    padding: 7px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 35px 100px rgba(0,0,0,.45);
    animation: momc3DEntry .85s cubic-bezier(.16,1,.3,1) both;
}

.momc-promo-card img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 16px;
}

#momc-promo-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border: 3px solid white;
    border-radius: 50%;
    background: #102b4e;
    color: white;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 5px 20px #0004;
    transition: transform .25s ease;
}

#momc-promo-close:hover {
    transform: rotate(90deg);
    background: #f97316;
}

#momc-promo-mini {
    position: fixed;
    left: 20px;
    bottom: 145px;
    width: 155px;
    padding: 5px;
    border: 2px solid white;
    border-radius: 14px;
    background: white;
    box-shadow: 0 12px 35px #0003;
    cursor: pointer;
    z-index: 99990;
    animation: momcMiniEntry .55s ease both;
    transition: transform .25s ease;
}

#momc-promo-mini:hover {
    transform: translateY(-6px) scale(1.04);
}

#momc-promo-mini img {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 9px;
}

.momc-mini-label {
    display: block;
    padding: 7px 3px;
    background: #102b4e;
    color: white;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

@keyframes momc3DEntry {
    0% {
        opacity: 0;
        transform: translateY(100px)
                   rotateX(35deg)
                   rotateY(-25deg)
                   scale(.65);
    }
    70% {
        opacity: 1;
        transform: translateY(-8px)
                   rotateX(-3deg)
                   scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0)
                   rotateX(0)
                   rotateY(0)
                   scale(1);
    }
}

@keyframes momcFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes momcMiniEntry {
    from {
        opacity: 0;
        transform: translateX(-100px) scale(.6);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media(max-width: 600px) {
    #momc-promo-overlay {
        padding: 20px;
    }

    .momc-promo-card {
        max-width: 92vw;
        border-radius: 15px;
        padding: 5px;
    }

    .momc-promo-card img {
        max-height: 75vh;
        border-radius: 11px;
    }

    #momc-promo-mini {
        width: 105px;
        left: 12px;
        bottom: 145px;
    }

    #momc-promo-mini img {
        max-height: 115px;
    }

    #momc-promo-close {
        width: 34px;
        height: 34px;
        right: -10px;
        top: -12px;
    }
}

@media(prefers-reduced-motion: reduce) {
    #momc-promo-overlay,
    .momc-promo-card,
    #momc-promo-mini {
        animation: none;
        transition: none;
    }
}
