.mycred-donation-container {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.mycred-donation-wrapper {
    display: flex;
    align-items: center;
    gap: 15px; /* Spasi antara tombol dan teks dukungan di layar desktop */
}

.mycred-donation-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 120px;
}

.mycred-donation-button:hover {
    background-color: #45a049;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mycred-donation-button.donated {
    background-color: #9c27b0;
}

.mycred-donation-button.donated:hover {
    background-color: #7b1fa2;
}

.mycred-donation-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mycred-support-text {
    font-size: 14px;
    color: #666;
    flex: 1;
    text-align: left;
}

.mycred-donation-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.mycred-donation-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #e7f3fe;
    border-left: 4px solid #2196F3;
    border-radius: 4px;
}

.mycred-donation-info p {
    margin: 5px 0;
    font-size: 14px;
}

.mycred-donation-info p strong {
    color: #333;
}

.mycred-donation-amount {
    width: 100%;
    padding: 8px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mycred-donation-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.mycred-donation-cancel {
    background-color: #f44336;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.mycred-donation-submit {
    background-color: #2196F3;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.mycred-error {
    color: #f44336;
    margin: 10px 0;
    font-size: 14px;
}

.mycred-success {
    color: #4CAF50;
    margin: 10px 0;
    font-size: 14px;
}

/* Loading state */
.mycred-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.mycred-donation-button:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.mycred-donation-button:focus-visible {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .mycred-donation-button {
        border: 2px solid #000;
    }
    
    .mycred-donation-button:hover {
        background-color: #000;
        color: #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .mycred-donation-button {
        transition: none;
    }
    
    .mycred-loading {
        animation: none;
    }
}

/* Responsive design for small screens */
@media (max-width: 768px) {
    .mycred-donation-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
    }
    
    .mycred-support-text {
        order: -1;
        margin-bottom: 8px;
        margin-top: 0;
        flex: none;
        text-align: center;
        width: 100%;
    }
    
    .mycred-donation-button {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 20px;
        min-width: auto;
    }
    
    .mycred-donation-form {
        padding: 12px;
    }
    
    .mycred-donation-info {
        padding: 8px;
    }
    
    .mycred-donation-amount {
        padding: 7px;
    }
    
    .mycred-donation-actions {
        flex-direction: column;
    }
    
    .mycred-donation-cancel,
    .mycred-donation-submit {
        width: 100%;
        text-align: center;
    }
}