/* ============================================
   C9 Smart Popup
   ============================================ */

.c9-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.c9-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.c9-popup-container {
    position: relative;
    max-width: fit-content;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c9-popup-overlay.active .c9-popup-container {
    transform: scale(1);
}

/* Close Button */
.c9-popup-close {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    min-height: 20px;
    padding: 10px;
}

.c9-popup-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #eeeeee;
    transform: rotate(90deg);
}

/* Content Area */
.c9-popup-content {
    padding: 0;
}

/* Mobile */
@media (max-width: 640px) {
    .c9-popup-overlay {
        padding: 16px;
        align-items: center;
    }

    .c9-popup-container {
        max-height: 85vh;
    }

}

body.c9-popup-open {
    overflow: hidden;
}