/* Discount Popup Styles */
.discount-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.discount-popup-container.show {
    opacity: 1;
}

.discount-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.discount-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.discount-popup.show {
    transform: translate(-50%, -50%) scale(1);
}

.discount-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px 0;
    position: relative;
}

.discount-popup-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.discount-popup-icon i {
    font-size: 28px;
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.discount-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
}

.discount-popup-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.discount-popup-close i {
    font-size: 16px;
}

.discount-popup-content {
    padding: 0 25px 25px;
    text-align: center;
}

.discount-popup-title {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.discount-popup-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.discount-popup-details {
    margin-bottom: 25px;
}

.discount-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 15px;
}

.discount-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    display: inline-block;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.discount-condition,
.discount-usage,
.discount-expiry {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.discount-condition::before {
    content: "💰";
}

.discount-usage::before {
    content: "🎯";
}

.discount-expiry::before {
    content: "⏰";
}

.discount-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.discount-popup-action {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    border: none;
    color: #fff;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.discount-popup-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(45deg, #45a049, #4CAF50);
}

.discount-popup-action i {
    font-size: 18px;
}

.discount-popup-dismiss {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    padding: 12px 25px;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.discount-popup-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .discount-popup {
        max-width: 90%;
        margin: 20px;
    }
    
    .discount-popup-title {
        font-size: 20px;
    }
    
    .discount-popup-message {
        font-size: 14px;
    }
    
    .discount-popup-actions {
        flex-direction: column;
    }
    
    .discount-popup-action,
    .discount-popup-dismiss {
        width: 100%;
    }
}

/* Dark theme adjustments */
.theme-dark-blue .discount-popup {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.theme-dark-blue .discount-badge {
    background: linear-gradient(45deg, #ff6b6b, #ff8e53);
}

/* Animation for popup entrance */
@keyframes slideInFromTop {
    0% {
        transform: translate(-50%, -60%) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.discount-popup.show {
    animation: slideInFromTop 0.4s ease-out;
}

/* Loading state */
.discount-popup.loading {
    pointer-events: none;
}

.discount-popup.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success animation */
.discount-popup.success .discount-popup-icon {
    background: rgba(76, 175, 80, 0.3);
}

.discount-popup.success .discount-popup-icon i {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
} 