/* .floating-banner-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    max-width: 250px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    background-color: white;
    padding: 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.floating-banner-widget img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.floating-banner-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    font-size: 16px;
    cursor: pointer;
    line-height: 25px;
    text-align: center;
    padding: 0;
} */


/* .floating-banner-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 80vw; 
    max-width: 800px;
    aspect-ratio: 16 / 9; 
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.floating-banner-widget img {
    width: 100%;
    height: 100%;
    object-fit: cover;
} */
.floating-banner-widget {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 50vw;
    max-width: 800px;
    display: none;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.floating-banner-widget img {
    width: 100%;
    height: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Tambahkan class helper */
.floating-banner-landscape {
    aspect-ratio: 16 / 9;
}

.floating-banner-portrait {
    aspect-ratio: 3 / 4;
}

.floating-banner-widget .close-floating {
    position: absolute;
    top: 10px;
    right: 12px;
    font-size: 14px;
    color: #000;
    text-decoration: none;
    background: #fff;
    padding: 0 10px;
    border-radius: 10%;
    line-height: 28px;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    z-index: 10;
}

/* @media (max-width: 768px) {
    .floating-banner-widget {
        aspect-ratio: 3 / 4;
        width: 90vw;
        max-width: 100%;
    }
} */
@media (max-width: 768px) {
    .floating-banner-widget {
        width: 95vw;
        max-width: 100%;
    }
}


