.flipbook-popup-overlay-66589c0f {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(13, 20, 26, 0.8) !important;
    z-index: 2147483647 !important; /* Max z-index to ensure it's on top */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

body.admin-bar .flipbook-popup-overlay-66589c0f {
    top: var(--wp-admin--admin-bar--height, 32px) !important;
    height: calc(100vh - var(--wp-admin--admin-bar--height, 32px)) !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .flipbook-popup-overlay-66589c0f {
        top: 46px !important;
        height: calc(100vh - 46px) !important;
    }
}

.flipbook-popup-modal-66589c0f {
    background: #f3f5ed;
    color: #0d141a;
    padding: 40px;
    border-radius: 8px;
    max-width: 1200px; /* Increased from 800px */
    width: 95vw; /* Allow it to be wider on smaller screens too */
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    max-height: 95vh; /* Increased from 90vh */
    overflow-y: auto;
    z-index: 2147483647 !important;
}

.flipbook-popup-close-66589c0f {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #1e2c1e;
    padding: 0;
    line-height: 1;
}

.flipbook-popup-step-66589c0f h2 {
    font-family: 'Playfair Display', serif;
    margin-top: 0;
    color: #1e2c1e;
    font-size: 2em;
    margin-bottom: 10px;
}

.flipbook-popup-step-66589c0f p {
    margin-bottom: 25px;
    font-size: 16px;
    color: #54595F;
}

#flipbook-popup-form-66589c0f {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

#flipbook-popup-form-66589c0f input[type="email"] {
    padding: 12px 15px;
    border: 1px solid #B8C0CC;
    border-radius: 4px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

#flipbook-popup-form-66589c0f button {
    background: #5e7d61;
    color: #ffffff;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#flipbook-popup-form-66589c0f button:hover {
    background: #1e2c1e;
}

.flipbook-container-66589c0f {
    margin-top: 20px;
    min-height: 70vh; /* Increased significantly to force Elfsight to expand */
    width: 100%;
    display: flex;
    justify-content: center;
}

/* Force Elfsight wrapper to grow */
.flipbook-container-66589c0f > div {
    width: 100% !important;
    height: 100% !important;
    min-height: 70vh !important;
}
