/* =========================================================================
   TelestoPOP - Frontend Popup Styles
   ========================================================================= */

.telestopop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.telestopop-overlay.telestopop-visible {
    background: rgba(0, 0, 0, 0.65);
}

.telestopop-popup {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    line-height: 0;
}

.telestopop-visible .telestopop-popup {
    transform: scale(1);
    opacity: 1;
}

.telestopop-image {
    max-width: 100%;
    max-height: 85vh;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.telestopop-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    line-height: 0;
}

.telestopop-link:hover .telestopop-image {
    opacity: 0.95;
}

.telestopop-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.telestopop-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

.telestopop-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .telestopop-popup {
        max-width: 95vw;
    }

    .telestopop-close {
        top: -8px;
        right: -8px;
        width: 32px;
        height: 32px;
        font-size: 20px;
        line-height: 32px;
    }
}
