#fpf-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

#fpf-modal-overlay.is-open {
    display: flex;
}

body.fpf-modal-open {
    overflow: hidden;
}

#fpf-modal {
    position: relative;
    width: 100%;
    max-width: 820px;
    height: 85vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

#fpf-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.08);
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

#fpf-modal-close:hover {
    background: rgba(0, 0, 0, 0.18);
}

#fpf-modal-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.single_add_to_cart_button.fpf-disabled,
.single_add_to_cart_button.fpf-disabled:hover {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
