.cdw-wrapper {
    max-width: 100%;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cdw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Solid Distinct Card Background */
.cdw-card {
    background-color: #f1f5f9 !important; /* Visible light slate background */
    border: 1px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cdw-card:hover {
    background-color: #e2e8f0 !important; /* Slightly darker shade on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

.cdw-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cdw-meta {
    flex-grow: 1;
    overflow: hidden;
}

.cdw-name {
    margin: 0 !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    line-height: 1.3 !important;
}

.cdw-date {
    display: block !important;
    font-size: 0.8rem !important;
    color: #64748b !important;
    margin-top: 4px !important;
}

/* Donation Amount Badge */
.cdw-badge {
    background-color: #059669 !important; /* Green Badge */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
}

/* Donor Comment Section */
.cdw-card-body {
    margin-top: 1rem !important;
    padding: 0.85rem !important;
    background-color: #f8d64b !important; /* White box for comments to make them pop */
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
}

.cdw-comment {
    margin: 0 !important;
    font-size: 0.88rem !important;
    color: #334155 !important;
    font-style: italic !important;
    line-height: 1.5 !important;
}

/* Load More Button Styling */
.cdw-actions {
    margin-top: 2rem;
    text-align: center;
}

.cdw-load-more-btn {
    background-color: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    padding: 0.75rem 1.75rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer;
}

.cdw-load-more-btn:hover {
    background-color: #1d4ed8 !important;
}

.cdw-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 2rem 0;
}