/**
 * Donation Form ACH-specific Styles
 * Styles for payment method selector and ACH options
 */

/* Payment Method Selector Styles */
.payment-method-option input[type="radio"]:checked + div {
    border-color: #16a34a !important; /* green-600 */
    background-color: #f0fdf4 !important; /* green-50 */
}


/* Radio indicator circle - shows checkmark when selected */
.payment-method-option input[type="radio"]:checked + div .payment-method-indicator {
    border-color: #22c55e !important; /* green-500 */
    background-color: #22c55e !important; /* green-500 */
}

.payment-method-option input[type="radio"]:checked + div .payment-method-indicator svg {
    opacity: 1 !important;
}

/* Recommended Badge Styles */
.recommended-badge {
    background-color: #16a34a; /* green-600 */
    color: #ffffff;
    font-size: 0.75rem; /* text-xs */
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px; /* rounded-full */
    line-height: 1;
}

/* Savings Message Highlighting */
.savings-message {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.savings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background-color: #dcfce7; /* green-100 */
    color: #166534; /* green-800 */
    font-size: 0.75rem; /* text-xs */
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem; /* rounded-md */
}

/* ACH Section Highlighting */
.payment-method-option input[type="radio"][value="ach"]:checked + div {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1); /* green-600 with opacity */
}

/* ACH Options Styles */
.ach-option input[type="radio"]:checked + div {
    border-color: #16a34a !important; /* green-600 */
    background-color: #f0fdf4 !important; /* green-50 */
}

.ach-option input[type="radio"]:checked + div .text-gray-700 {
    color: #15803d !important; /* green-700 */
}

/* Payment/Card Element Container Transitions */
#card-element-container,
#payment-element-container {
    transition: opacity 0.3s ease-in-out;
}

/* Processing Timeline Note */
.ach-timeline-note {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #dbeafe; /* blue-100 */
    border-left: 4px solid #3b82f6; /* blue-500 */
    border-radius: 0.375rem; /* rounded-md */
    margin-top: 1rem;
}

.ach-timeline-note svg {
    width: 1.25rem; /* w-5 */
    height: 1.25rem; /* h-5 */
    color: #3b82f6; /* blue-500 */
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.ach-timeline-note-text {
    font-size: 0.875rem; /* text-sm */
    color: #1e3a8a; /* blue-900 */
}

/* ACH Success Message Additional Styles */
.ach-success-timeline {
    background-color: #dbeafe; /* blue-100 */
    border: 1px solid #93c5fd; /* blue-300 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem;
    margin-top: 1rem;
}

.ach-success-timeline-title {
    font-size: 0.875rem; /* text-sm */
    font-weight: 600;
    color: #1e3a8a; /* blue-900 */
    margin-bottom: 0.5rem;
}

.ach-success-timeline-text {
    font-size: 0.875rem; /* text-sm */
    color: #1e40af; /* blue-800 */
}
