/* Style the dynban container */
.factro-dynban-container {
    position: fixed;
    right: 0px;
    width: 200px;
    height: auto;
    z-index: 9999;
    display: none;
    padding: 0;
    top: 50%;
    transform: translateY(-50%); /* Centers the dynban vertically */
    max-height: 80vh; /* Limit the height of the dynban */

    @media screen and (min-width: 1550px) {
        transform: none;
        top: 285px;
        right: 20px;
        width: 250px;
    }

    @media screen and (min-width: 1650px) {
        right: 20px;
        width: 300px;
    }

    @media screen and (min-width: 1750px) {
        right: 20px;
        width: 350px;
    }

    @media screen and (min-width: 1850px) {
        right: 20px;
        width: 400px;
    }

    @media screen and (min-width: 2000px) {
        right: 80px
    }

    @media screen and (min-width: 2200px) {
        right: 100px
    }

    @media screen and (min-width: 2400px) {
        right: 180px
    }
}

/* dynban popup styling, similar to the modal popup */
.factro-dynban-popup {
    background: #fff;
    padding: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border-radius: 15px; /* Rounded corners */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Ensure the content fits properly */
}

.close-dynban-popup {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
}

/* Image styling */
.dynban-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the container while maintaining aspect ratio */
    border-radius: 15px; /* Match the container's border-radius */
}

/* Show the dynban after scroll or time */
.factro-dynban-container.show {
    display: block;
}

/* Media query to hide dynban on mobile devices (width <= 768px) */
@media screen and (max-width: 768px) {
    .factro-dynban-container {
        display: none !important;
    }
}
