/* Download button hover effect */
.downloadbtnimg {
    cursor: pointer !important;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.downloadbtnimg:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

/* Loading overlay */
.cart-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spinner animation */
.cart-loading-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Additional hover states for better UX */
.downloadbtnimg:active {
    transform: scale(0.98);
}

/* Ensure pointer cursor on all child elements */
.downloadbtnimg * {
    cursor: pointer !important;
}

/* Prevent text selection on button */
.downloadbtnimg {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Loading state styles */
.cart-loading-overlay.show {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cart-loading-overlay .spinner {
        width: 30px;
        height: 30px;
        border-width: 3px;
    }
}
