/**
 * Super Simple Popups - Frontend Styles
 */

/* Popup wrapper - hidden by default */
.ssp-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

/* Overlay - 90% opaque black background */
.ssp-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

/* Popup container */
.ssp-popup-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 50vh;
    max-width: 800px;
    background-color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Close button */
.ssp-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    font-size: 30px;
    line-height: 1;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssp-popup-close:hover {
    opacity: 0.7;
}

/* Popup content */
.ssp-popup-content {
    padding: 20px;
    padding-top: 60px; /* Space for close button */
}

/* Ensure content doesn't get hidden behind close button */
.ssp-popup-content > *:first-child {
    margin-top: 0;
}
