dialog.bfd-popup:not([open]) {
    display: none;
}

.bfd-popup {
    position: fixed;
    inset: 0;
    width: min(42rem, calc(100% - 24px));
    max-height: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    background: #121012;
    color: #fff;
    box-shadow: 0 16px 48px #0008;
}

.bfd-popup::backdrop {
    background: #0009;
}

.bfd-popup .bfd-popup-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 68vh;
    max-height: 68dvh;
    object-fit: contain;
}

.bfd-popup .bfd-popup-image-mobile {
    display: none;
}

@media (max-width: 767px) {
    .bfd-popup .bfd-popup-image-desktop {
        display: none;
    }

    .bfd-popup .bfd-popup-image-mobile {
        display: block;
    }
}

.bfd-popup-actions {
    padding: 14px;
    text-align: center;
}

.bfd-popup .bfd-popup-cta {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: #ff8dba;
    color: #170b14;
    font-weight: 700;
    text-decoration: none;
}

.bfd-popup .bfd-popup-close {
    position: absolute;
    z-index: 1;
    top: 8px;
    right: 8px;
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 0;
    place-items: center;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #121012;
    color: #fff;
    font-size: 24px;
    line-height: 1;
}
