/* TA Free Download Manager - Frontend Styles */

.ta-fdn-download-wrapper {
    margin: 0;
    padding: 0;
    clear: both;
}

/* Style to match WooCommerce add to cart button */
.ta-fdn-download-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    background: #27282C !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    text-align: center;
    text-decoration: none !important;
    vertical-align: middle;
}

/* Match WooCommerce button styling if theme uses it */
.woocommerce .ta-fdn-download-button,
.woocommerce-page .ta-fdn-download-button {
    background-color: var(--wc-button-bg, #27282C) !important;
    color: var(--wc-button-text, #fff) !important;
}

.ta-fdn-download-button:hover {
    background: rgb(20, 21, 24) !important;
    opacity: 0.9;
}

.woocommerce .ta-fdn-download-button:hover, .woocommerce-page .ta-fdn-download-button:hover {
    background-color: #1a1b1e !important;
}

.ta-fdn-download-button:active {
    transform: none;
}

.ta-fdn-download-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.ta-fdn-download-button svg {
    animation: ta-fdn-bounce 2s infinite;
}

.ta-fdn-download-button.loading svg {
    animation: ta-fdn-spin 1s linear infinite;
}

@keyframes ta-fdn-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    60% {
        transform: translateY(-2px);
    }
}

@keyframes ta-fdn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.ta-fdn-download-info {
    margin-top: 10px;
    text-align: left;
    font-size: 14px;
}

.ta-fdn-download-info small {
    color: #46a049;
    font-weight: 500;
    font-size: 13px;
    display: inline-block;
}

.ta-fdn-error-message {
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    text-align: center;
}

.ta-fdn-success-message {
    margin-top: 10px;
    padding: 10px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .ta-fdn-download-button {
        font-size: 14px !important;
        padding: 10px 20px !important;
    }
}
