/* DonationAlerts Payment Plugin Styles */

.da-payment-button-container {
    margin: 20px 0;
    text-align: center;
}

.da-payment-button {
    background: linear-gradient(135deg, #f59c07 0%, #f57507 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 156, 7, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.da-payment-button:hover {
    background: linear-gradient(135deg, #f57507 0%, #f59c07 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 156, 7, 0.4);
}

.da-payment-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.da-payment-status {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: 500;
}

.da-loading {
    color: #f59c07;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
}

.da-success {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.da-error {
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

/* Payment Forms */
.da-payment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border: 1px solid #e9ecef;
}

.da-payment-form input,
.da-payment-form select {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.da-payment-form input:focus,
.da-payment-form select:focus {
    outline: none;
    border-color: #f59c07;
    box-shadow: 0 0 5px rgba(245, 156, 7, 0.3);
}

.da-payment-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    display: block;
}

/* Amount Presets */
.da-amount-presets {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.da-amount-preset {
    background: #fff;
    border: 2px solid #e9ecef;
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.da-amount-preset:hover {
    border-color: #f59c07;
    color: #f59c07;
}

.da-amount-preset.active {
    background: #f59c07;
    border-color: #f59c07;
    color: white;
}

/* Custom Amount Input */
.da-custom-amount {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    font-weight: 600;
}

.da-custom-amount:focus {
    border-color: #f59c07;
    outline: none;
}

/* Payment Messages */
.da-payment-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.da-payment-message.da-success {
    background: #28a745;
}

.da-payment-message.da-error {
    background: #dc3545;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modal Styles */
.da-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.da-modal > div {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.da-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.da-modal-close:hover {
    color: #333;
}

/* Transaction History Table */
.da-transactions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.da-transactions-table th,
.da-transactions-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.da-transactions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.da-transactions-table tr:hover {
    background: #f8f9fa;
}

/* Payment Reminder */
.da-payment-reminder {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #f59c07;
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: slideUp 0.3s ease;
}

.da-reminder-button {
    background: white;
    color: #f59c07;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* WooCommerce Integration */
.woocommerce .da-payment-button-container {
    margin: 20px 0;
}

.woocommerce .da-payment-button {
    width: 100%;
    max-width: 300px;
}

.woocommerce .da-payment-form {
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .da-payment-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .da-amount-presets {
        justify-content: center;
    }
    
    .da-amount-preset {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .da-payment-message {
        top: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
    
    .da-modal > div {
        margin: 20px;
        padding: 20px;
    }
    
    .da-transactions-table {
        font-size: 14px;
    }
    
    .da-transactions-table th,
    .da-transactions-table td {
        padding: 8px;
    }
}

/* Loading Animation */
.da-loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f59c07;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Quantity Selector */
.da-quantity {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin: 0 10px;
}

.da-quantity-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

/* Payment Method Selector */
.da-payment-method {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Success Page Styles */
.da-success-page {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.da-success-page h2 {
    color: #28a745;
    margin-bottom: 20px;
}

.da-success-page .da-success-icon {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 20px;
}

/* Error Page Styles */
.da-error-page {
    text-align: center;
    padding: 40px 20px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 10px;
    margin: 20px 0;
}

.da-error-page h2 {
    color: #721c24;
    margin-bottom: 20px;
}

.da-error-page .da-error-icon {
    font-size: 48px;
    color: #dc3545;
    margin-bottom: 20px;
}

/* Admin Styles */
.wp-admin .da-payment-button-container {
    margin: 20px 0;
}

.wp-admin .da-payment-form {
    background: white;
    border: 1px solid #ddd;
}

/* Print Styles */
@media print {
    .da-payment-button,
    .da-payment-form,
    .da-payment-reminder {
        display: none !important;
    }
}
