
#fit4u-bf-overlay,
#fit4u-bf-overlay * {
    box-sizing: border-box;
}

#fit4u-bf-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

#fit4u-bf-overlay.is-visible {
    display: flex;
}

#fit4u-bf-popup {
    position: relative;
    width: min(100%, 680px);
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 12px;
    background: #111;
    box-shadow: 0 20px 70px rgba(0,0,0,.6);
}

/* BUTON INCHIDERE */
#fit4u-bf-close {
    position: absolute;
    top: -13px;
    right: -13px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #ed2025;
    color: #fff;
    font: 26px Arial, sans-serif;
    cursor: pointer;
}

/* IMAGINE */
.fit4u-bf-image-link {
    display: block;
    flex: 0 1 auto;
    min-height: 0;
    overflow: hidden;
    border-radius: 6px;
    text-align: center;
}

.fit4u-bf-picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fit4u-bf-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: calc(85dvh - 90px);
    object-fit: contain;
}

/* BUTON VEZI OFERTELE */
.fit4u-bf-button {
    display: block;
    flex-shrink: 0;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 7px;
    background: #ed2025;
    color: #fff !important;
    text-decoration: none !important;
    text-align: center;
    text-transform: uppercase;
    font: 800 14px Arial, sans-serif;
    letter-spacing: 1px;
    transition: background .2s ease;
}

.fit4u-bf-button:hover {
    background: #c8191e;
    color: #fff !important;
}

/* Bannerul Complianz ramane deasupra */
#cmplz-cookiebanner-container,
.cmplz-cookiebanner {
    z-index: 2147483647 !important;
}

/* MOBILE */
@media (max-width: 767px) {
    #fit4u-bf-overlay {
        padding: 10px;
    }

    #fit4u-bf-popup {
        width: min(80vw, 340px);
        max-height: 85vh;
        max-height: 85dvh;
        padding: 6px;
        border-radius: 9px;
    }

    #fit4u-bf-close {
        width: 34px;
        height: 34px;
        top: -12px;
        right: -12px;
        font-size: 23px;
    }

    .fit4u-bf-image {
        max-height: calc(85dvh - 65px);
    }

    .fit4u-bf-button {
        margin-top: 7px;
        padding: 12px 10px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fit4u-bf-button {
        transition: none;
    }
}
