/* ProTech Popup Styles - Namespace: protech-popup */
.protech-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.protech-popup-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    margin: 20px;
    animation: protechPopupFadeIn 0.3s ease-out;
}

.protech-popup-container.protech-popup-center {
    /* Default center position */
}

.protech-popup-container.protech-popup-top-left {
    position: absolute;
    top: 20px;
    left: 20px;
    margin: 0;
}

.protech-popup-container.protech-popup-top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    margin: 0;
}

.protech-popup-container.protech-popup-bottom-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    margin: 0;
}

.protech-popup-container.protech-popup-bottom-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    margin: 0;
}

.protech-popup-content {
    position: relative;
    
    
    overflow: hidden;
    
}

.protech-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    line-height: 1;
    z-index: 10001;
    transition: all 0.2s ease;
}

.protech-popup-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.protech-popup-close span {
    display: block;
    line-height: 1;
}

.protech-popup-image {
    display: block;
    line-height: 0;
}

.protech-popup-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.protech-popup-image a {
    display: block;
    line-height: 0;
}

@keyframes protechPopupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes protechPopupFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.protech-popup-overlay.protech-popup-hiding {
    animation: protechPopupFadeOut 0.3s ease-in;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .protech-popup-container {
        max-width: 95vw;
        max-height: 80vh;
        margin: 10px;
    }
    
    .protech-popup-container.protech-popup-top-left,
    .protech-popup-container.protech-popup-top-right,
    .protech-popup-container.protech-popup-bottom-left,
    .protech-popup-container.protech-popup-bottom-right {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        margin: 10px;
    }
}