/* Popup Studio Unified Styles */
.popup-studio-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-studio-overlay.show {
    display: flex !important;
    opacity: 1;
}

.popup-studio-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    overflow: visible;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup-content-wrapper {
    background: transparent;
    border-radius: inherit;
    overflow: visible;
    max-height: 100%;
    height: 100%;
}

.popup-studio-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4444;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: white;
    z-index: 999999;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    font-weight: bold;
    transition: all 0.2s ease;
}

.popup-studio-close:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.popup-studio-content {
    padding: 30px;
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.popup-studio-content h2 {
    margin: 0 0 15px 0;
    color: #333;
}

.popup-studio-content p {
    margin: 0 0 20px 0;
    color: #666;
}

.popup-studio-content button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.popup-studio-content button:hover {
    background: #005a87;
}

/* Custom close button styling */
[data-popup-close] {
    cursor: pointer !important;
}

/* Preview mode specific styles */
.popup-studio-preview-header {
    background: #23282d;
    color: white;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999999;
    font-size: 14px;
    border-bottom: 3px solid #0073aa;
}

/* Responsive adjustments for positioning */
@media (max-width: 768px) {
    .popup-studio-container {
        max-width: 95vw !important;
        max-height: 95vh !important;
    }
    
    .popup-studio-overlay[style*="padding"] {
        padding: 20px !important;
    }
} 