/* Popup Discount Styles */
.kmtheme-popup-discount {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 100vh !important;
    min-height: -webkit-fill-available !important; /* iOS Safari */
    z-index: 999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    animation: fadeIn 0.3s ease-in-out;
    visibility: visible !important;
    opacity: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.kmtheme-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.kmtheme-popup-content {
    position: relative !important;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%) !important;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1 !important;
    margin: 20px;
    -webkit-overflow-scrolling: touch;
}

.kmtheme-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10;
}

.kmtheme-popup-close:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.kmtheme-popup-inner {
    text-align: center;
    padding: 20px 0;
}

.kmtheme-popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.kmtheme-popup-icon i {
    font-size: 36px;
    color: #fff;
}

.kmtheme-popup-title {
    font-size: 48px;
    font-weight: 700;
    color: #ff6b6b;
    margin: 0 0 10px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.kmtheme-popup-text {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0 0 15px;
    line-height: 1.3;
}

.kmtheme-popup-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0 0 25px;
    line-height: 1.5;
    font-style: italic;
}

.kmtheme-popup-hide-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kmtheme-popup-hide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.kmtheme-popup-hide-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .kmtheme-popup-discount {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .kmtheme-popup-content {
        padding: 30px 25px !important;
        max-width: 90% !important;
        width: 90% !important;
        max-height: 85vh !important;
        margin: 15px !important;
    }
    
    .kmtheme-popup-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .kmtheme-popup-icon i {
        font-size: 30px;
    }
    
    .kmtheme-popup-title {
        font-size: 40px;
    }
    
    .kmtheme-popup-text {
        font-size: 20px;
    }
    
    .kmtheme-popup-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .kmtheme-popup-hide-btn {
        padding: 10px 25px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .kmtheme-popup-discount {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .kmtheme-popup-content {
        padding: 25px 20px !important;
        max-width: 95% !important;
        width: 95% !important;
        max-height: 85vh !important;
        margin: 10px !important;
    }
    
    .kmtheme-popup-icon {
        width: 60px;
        height: 60px;
    }
    
    .kmtheme-popup-icon i {
        font-size: 26px;
    }
    
    .kmtheme-popup-title {
        font-size: 36px;
    }
    
    .kmtheme-popup-text {
        font-size: 18px;
    }
    
    .kmtheme-popup-subtitle {
        font-size: 13px;
        margin-bottom: 18px;
    }
    
    .kmtheme-popup-hide-btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Hide popup when closed */
.kmtheme-popup-discount.hidden {
    display: none !important;
}

