body.storebuild-offer-open {
    overflow: hidden;
}

.storebuild-offer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    /* Flexbox centering by default */
    display: none; 
    justify-content: center;
    align-items: center;
    pointer-events: none; /* Allow clicks through empty space if not modal */
}

/* Modal Overlay */
.storebuild-offer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: auto; /* Catch clicks on overlay */
    transition: opacity 0.3s ease;
}

/* Content Wrapper */
.storebuild-offer-content {
    position: relative;
    z-index: 2;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    pointer-events: auto;
    max-width: 95vw;
    max-height: 95vh;
    overflow-y: auto;
    /* Elementor compatibility reset */
    display: flex;
    flex-direction: column;
}

.storebuild-offer-body {
    flex: 1;
    overflow-y: auto;
}

/* Close Button */
.storebuild-offer-close {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    color: #333;
    padding: 0 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.storebuild-offer-close:hover {
    opacity: 1;
}

/* Placements */

/* Center (Default) */
.placement-center .storebuild-offer-content {
    margin: auto;
    border-radius: 8px;
}

/* Top Bar */
.placement-top {
    height: auto;
    bottom: auto;
    align-items: flex-start;
}
.placement-top .storebuild-offer-overlay {
    display: none; /* Usually top bars push content or overlay just the bar */
}
.placement-top .storebuild-offer-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
}

/* Bottom Bar */
.placement-bottom {
    top: auto;
    height: auto;
    bottom: 0;
    align-items: flex-end;
}
.placement-bottom .storebuild-offer-overlay {
    background: transparent; /* Usually non-blocking visually */
    pointer-events: none;
}
.placement-bottom .storebuild-offer-content {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0;
}

/* Bottom Right */
.placement-bottom_right {
    top: auto;
    left: auto;
    right: 20px;
    bottom: 20px;
    display: flex !important; /* Force flex display for positioning */
    width: auto;
    height: auto;
    justify-content: flex-end;
    align-items: flex-end;
}
.placement-bottom_right .storebuild-offer-overlay {
    background: transparent;
    pointer-events: none;
}
.placement-bottom_right .storebuild-offer-content {
    margin: 0;
    border-radius: 8px;
}

/* Bottom Left */
.placement-bottom_left {
    top: auto;
    left: 20px;
    right: auto;
    bottom: 20px;
    display: flex !important;
    width: auto;
    height: auto;
    justify-content: flex-start;
    align-items: flex-end;
}
.placement-bottom_left .storebuild-offer-overlay {
    background: transparent;
    pointer-events: none;
}
.placement-bottom_left .storebuild-offer-content {
    margin: 0;
    border-radius: 8px;
}

/* Elementor Fixes */
.storebuild-offer-content .elementor-section {
    width: 100%;
}
