.rf-sportbook-bf-popup[hidden] {
    display: none !important;
}

.rf-sportbook-bf-popup {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.72);
}

.rf-sportbook-bf-popup__panel {
    position: relative;
    display: inline-flex;
    max-width: 100%;
    max-height: 100%;
    line-height: 0;
}

.rf-sportbook-bf-popup__link,
.rf-sportbook-bf-popup__link img {
    display: block;
}

.rf-sportbook-bf-popup__link img {
    width: auto;
    height: auto;
    max-width: min(600px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    object-fit: contain;
    border-radius: 8px;
}

.rf-sportbook-bf-popup__close {
    position: absolute;
    z-index: 1;
    top: 9px;
    right: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.rf-sportbook-bf-popup__close:focus-visible,
.rf-sportbook-bf-popup__link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

html.rf-sportbook-bf-popup-open {
    overflow: hidden;
}
