.lsa-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Default overlay dimming */
    z-index: 999999; /* Increased to cover sticky headers */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lsa-modal-overlay.lsa-modal-show {
    opacity: 1;
    visibility: visible;
}

.lsa-modal-container {
    position: relative;
    background: #fff;
    padding: 20px;
    box-sizing: border-box;
    max-height: 90vh;
    overflow-y: auto;
    /* Default shadow if not set by Elementor */
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* Ensure it behaves well if it's an anchor tag */
    display: block; 
    text-decoration: none;
    color: inherit;
}

.lsa-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #333;
    z-index: 10;
    font-weight: bold;
}

.lsa-modal-content {
    /* Ensure content doesn't break out */
    max-width: 100%;
}
