/* Popup Overlay */
.affinite-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show overlay */
.affinite-popup-overlay.show {
    display: flex;
    opacity: 1;
}

/* Popup Container */
.affinite-popup-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

/* Show popup animation */
.affinite-popup-overlay.show .affinite-popup-container {
    transform: scale(1);
}

.affinite-popup-loader{
	display:none;
}

/* Close Button */
.affinite-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.affinite-popup-close:hover {
    background-color: #f0f0f0;
    color: #333;
}
.affinite-popup-content {
    padding: 0px;
	background-color: #F0F2F5;
}

.affinite-popup-header{
	padding: 10px 20px;
	background-color: #ffffff;
}
.affinite-popup-body{
	padding: 20px;
}


/* Responsive Design */
@media (max-width: 768px) {
    .affinite-popup-container {
        width: 95%;
        margin: 20px;
    }
    
    .affinite-popup-content {
        padding: 20px;
    }
    
    .affinite-popup-actions {
        flex-direction: column;
    }
    
    .affinite-btn {
        width: 100%;
    }
}

/* Animation for fade in/out */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

.affinite-loader-title{
	width:100%;
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	color: #000000;
}
.affinite-popup-body-content-loader{
	width:100%;
	display:grid;
	justify-content: center;
	padding:40px;
}
.affinite-popup-body-content-loader img{
	width:100px;
	height:100px;
}