/* Fifth Axis PDF Generator Styles */

.fifth-axis-pdf-actions {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    border-radius: 4px;
}

.fifth-axis-pdf-btn {
    background: #0066cc !important;
    color: white !important;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.fifth-axis-pdf-btn:hover {
    background: #0052a3 !important;
    color: white !important;
}

.fifth-axis-pdf-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.fifth-axis-pdf-description {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.fifth-axis-pdf-checkout-actions {
    margin: 15px 0;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 4px;
    text-align: center;
}

.fifth-axis-pdf-btn-small {
    color: #0066cc !important;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fifth-axis-pdf-btn-small:hover {
    color: #0052a3 !important;
    text-decoration: underline;
}

.fifth-axis-pdf-btn-small .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Loading state */
.fifth-axis-pdf-btn.loading {
    opacity: 0.7;
    pointer-events: none;
}

.fifth-axis-pdf-btn.loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success message */
.fifth-axis-pdf-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Error message */
.fifth-axis-pdf-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 10px 0;
}

/* My Account PDF quotes section */
.fifth-axis-pdf-quotes {
    margin: 20px 0;
}

.fifth-axis-pdf-quotes h3 {
    color: #0066cc;
    margin-bottom: 15px;
}

.pdf-quotes-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.pdf-quotes-table th,
.pdf-quotes-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.pdf-quotes-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.pdf-quotes-table tr:nth-child(even) {
    background: #f9f9f9;
}

.pdf-quotes-table .download-link {
    color: #0066cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pdf-quotes-table .download-link:hover {
    text-decoration: underline;
}

.pdf-quotes-table .quote-total {
    font-weight: 600;
}

.pdf-quotes-table .quote-date {
    color: #666;
    font-size: 14px;
}

/* Responsive design */
@media (max-width: 768px) {
    .fifth-axis-pdf-actions {
        margin: 15px 0;
        padding: 12px;
    }
    
    .fifth-axis-pdf-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 20px;
    }
    
    .pdf-quotes-table {
        font-size: 14px;
    }
    
    .pdf-quotes-table th,
    .pdf-quotes-table td {
        padding: 8px 6px;
    }
}
