/* Feature Image Ad Unit — Square (front styles) */

.fiau-thumb-wrap{
    position:relative !important;
    display:inline-block;
}
.fiau-thumb-wrap img{
    display:block;
}
.fiau-overlay{
    position:absolute;
    right:12px;
    bottom:12px;
    z-index:9999;
}

/* White card */
.fiau-card.fiau-square{
    position:relative;
    width:140px;
    height:140px;
    background:#ffffff;
    border-radius:18px;
    box-shadow:0 10px 24px rgba(0,0,0,.18);
    overflow:hidden;
    outline:1px solid rgba(0,0,0,.06);
    display:block;
    text-decoration:none;
}
.fiau-card .fiau-prod{
    width:100%;
    height:100%;
    object-fit:cover;
}

/* Close button – top-right (dark) */
.fiau-close{
    position:absolute;
    top:8px;
    right:8px;
    width:30px;
    height:30px;
    border-radius:999px;
    background:#0a0a0a;
    color:#fff;
    font-size:16px;
    font-weight:900;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    opacity:.9;
}
.fiau-close:hover{
    opacity:1;
}

/* Cart button – bottom-left, RED circular button */
.fiau-cart{
    position:absolute;
    bottom:8px;
    left:8px;
    width:40px;
    height:40px;
    border-radius:50%;
    background:#e60000;        /* RED */
    color:#fff;
    border:none;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    opacity:.96;
    animation:fiauCartBlink 1.6s infinite;
    padding:0;
}

.fiau-cart-icon{
    width:20px;
    height:20px;
}

/* Blinking cart to indicate ad (RED glow) */
@keyframes fiauCartBlink{
    0%{
        opacity:1;
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(230,0,0,0.40);
    }
    50%{
        opacity:0.6;
        transform:scale(1.05);
        box-shadow:0 0 10px 2px rgba(230,0,0,0.70);
    }
    100%{
        opacity:1;
        transform:scale(1);
        box-shadow:0 0 0 0 rgba(230,0,0,0.0);
    }
}

@media(max-width:480px){
    .fiau-card.fiau-square{
        width:120px;
        height:120px;
        border-radius:16px;
    }
    .fiau-close{
        width:28px;
        height:28px;
    }
    .fiau-cart{
        width:36px;
        height:36px;
    }
    .fiau-cart-icon{
        width:18px;
        height:18px;
    }
}
