/* Default state: popup wrapper is controlled by JS fadeIn/fadeOut, but we can set initial hidden state */
.shoplic-popup-wrapper {
    display: none; /* Initially hidden, JS will manage display */
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999999999999; /* High z-index to be on top */
}

/* Overlay, used for background and centering content */
.shoplic-popup-wrapper .shoplic-popup-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black background */
}

/* When body has .prompt-open, it means a popup is active */
body.prompt-open {
    overflow: hidden !important;
}

/* Active popup wrapper should be visible (JS adds .shoplic-popup-active-popup and handles display with fadeIn) */
body.prompt-open .shoplic-popup-wrapper.shoplic-popup-active-popup {
    /* display: flex; */ /* JS fadeIn will handle this, but flex is on overlay now */
}

/* Popup content box */
.shoplic-popup-wrapper .shoplic-popup-content {
    position: relative; /* For positioning close buttons */
    background: white;
    border-radius: 0px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    /* display: none; is managed by JS fadeIn/fadeOut */
    /* transition: transform 0.3s ease-out; */ /* Animation can be added later if needed */
}

/* Popup body containing the main content (image/text) */
.shoplic-popup-wrapper .shoplic-popup-body {
    overflow: hidden; /* If content inside is too large */
    border-radius: 0px; /* Match parent if it's the only content */
}

/* Images inside popup body should be full width */
.shoplic-popup-wrapper .shoplic-popup-body img {
    width: 100% !important;
}

/* Inner content wrapper (often an 'a' tag or 'div' for the image) */
.shoplic-popup-wrapper .shoplic-popup-inner {
    display: block; /* Ensure it takes up space */
    max-width: 600px; /* Max width for the content itself */
    max-height: 80vh; /* Max height for the content itself */
}

.shoplic-popup-wrapper .shoplic-popup-inner img {
    display: block;
    width: 100%; /* Make image responsive within its container */
    height: auto;
    max-width: 100%; /* Ensure it doesn't exceed .shoplic-popup-inner's max-width */
    max-height: 80vh; /* Ensure it doesn't exceed .shoplic-popup-inner's max-height */
    border-radius: 0px; /* If image is the only content and fills the box */
}

/* Placeholder for when no image is set */
.shoplic-popup-wrapper .shoplic-popup-placeholder {
    padding: 60px 40px;
    background: #f5f5f5;
    text-align: center;
    color: #666;
    min-width: 300px;
    border-radius: 0px;
}

/* Close button */
.shoplic-popup-wrapper .shoplic-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent !important;
    color: black !important;
    border: none !important;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10; /* Above content */
    transition: background-color 0.2s;
}

/* "Don't show today" button */
.shoplic-popup-wrapper .prompt_notoday {
    display: block; /* Or inline-block, depending on desired layout */
    margin: 10px auto; /* Center it if block */
    padding: 8px 15px;
    background-color: #f0f0f0;
    border: none !important;
    border-radius: 0px;
    color: #333;
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    transition: background-color 0.2s;
}
.shoplic-popup-wrapper .prompt_notoday:hover {
    background-color: #e0e0e0;
}

.prompt_modal_controller {
    display: flex !important;
    justify-content: space-between;
    background-color: transparent;
    background-color: black !important;
    padding-inline: 10px !important;
    border: 0px !important;
    
    * {
        background-color: transparent !important;
        color: white !important;
        cursor: pointer !important;
        margin: 0px !important;
        font-size: 14px !important;
        padding: 0px !important;
    }
    .prompt_close {
        display: block !important;
        margin-top: 4px !important;
        font-weight: 500;
        border: none !important;
    }
}


/* Z-index for other specific site elements (if needed to be below popup) */
.consulting_banner,
.set {
    z-index: 9999 !important; /* Lower than popup's 999999 */
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
    .shoplic-popup-wrapper .shoplic-popup-content {
        max-width: 95%;
        max-height: 95vh;
    }

    .shoplic-popup-wrapper .shoplic-popup-inner {
        /* max-width will be controlled by .shoplic-popup-content */
    }

    .shoplic-popup-wrapper .shoplic-popup-inner img {
        /* max-height might need adjustment if too tall on mobile */
    }

    .shoplic-popup-wrapper .shoplic-popup-placeholder {
        padding: 40px 20px;
        min-width: auto;
    }

    .shoplic-popup-wrapper .shoplic-popup-close {
        top: 5px;
        right: 5px;
        width: 25px;
        height: 25px;
        font-size: 16px;
        line-height: 25px;
    }
    .shoplic-popup-wrapper .prompt_notoday {
        font-size: 12px;
        padding: 6px 10px;
    }
}

/* Basic fade-in for the wrapper (controlled by JS addClass .shoplic-popup-active-popup and fadeIn) */
/* JS fadeIn/fadeOut handles display and opacity, so keyframe animations might be redundant or conflicting if not coordinated */
/*
.shoplic-popup-popup-wrapper {
    animation: fadeInWrapper 0.3s ease-out;
}
.shoplic-popup-popup-wrapper .shoplic-popup-popup-content {
    animation: fadeInContent 0.3s ease-out;
}

@keyframes fadeInWrapper {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInContent {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
*/
