/* HID Popups Styles */

.hid-popup-wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.hid-popup-wrapper.hid-popup-active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: hidPopupFadeIn var(--animation-duration) ease-in-out;
}

.hid-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.hid-popup-content {
    position: relative;
    background: white;
    max-width: var(--max-width);
    max-height: var(--max-height);
    width: 100%;
    border: 2px solid white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hid-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    background: white;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    transition: all 0.3s ease;
}

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

.hid-popup-body {
    overflow-y: auto;
    padding: 20px;
    flex: 1;
}

.hid-popup-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

.hid-popup-body iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

/* Animations */
@keyframes hidPopupFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hid-popup-content {
        max-width: 90% !important;
        max-height: 80% !important;
        margin: 20px;
    }
    
    .hid-popup-close {
        top: 5px;
        right: 5px;
        font-size: 24px;
        width: 30px;
        height: 30px;
    }
    
    .hid-popup-body {
        padding: 15px;
    }
}

/* Manual trigger buttons */
.hid-popup-trigger {
    cursor: pointer;
}

button.hid-popup-trigger {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button.hid-popup-trigger:hover {
    background: #005a87;
}
